aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-03-05 01:00:28 +0000
committerlloyd <[email protected]>2013-03-05 01:00:28 +0000
commit0643e437fceaabf3baf8a6e7cf0141d15b12a9f9 (patch)
treea16d01194ccf9924dc53a651694e32c7be285d7e /doc
parent50339fd935441332cdb55bcf3877b1dcdb26834c (diff)
Vaguely document the cryptobox functions
Diffstat (limited to 'doc')
-rw-r--r--doc/contents.rst1
-rw-r--r--doc/cryptobox.rst24
2 files changed, 25 insertions, 0 deletions
diff --git a/doc/contents.rst b/doc/contents.rst
index b694bc6c9..ba9396c99 100644
--- a/doc/contents.rst
+++ b/doc/contents.rst
@@ -23,6 +23,7 @@ Contents
kdf
pbkdf
passhash
+ cryptobox
srp
rng
fpe
diff --git a/doc/cryptobox.rst b/doc/cryptobox.rst
new file mode 100644
index 000000000..ac3fd269a
--- /dev/null
+++ b/doc/cryptobox.rst
@@ -0,0 +1,24 @@
+
+Cryptobox
+==================================================
+
+This is a set of simple routines that cover some common cases. They
+are defined in the header `cryptobox.h`, inside namespace
+`Botan::CryptoBox`.
+
+ .. cpp:function:: std::string encrypt(const byte input[], size_t input_len, \
+ const std::string& passphrase, \
+ RandomNumberGenerator& rng)
+
+ Encrypt the contents using *passphrase*.
+
+ .. cpp:function:: std::string decrypt(const byte input[], size_t input_len, \
+ const std::string& passphrase)
+
+ Decrypts something encrypted with encrypt.
+
+ .. cpp:function:: std::string decrypt(const std::string& input,
+ const std::string& passphrase)
+
+ Decrypts something encrypted with encrypt.
+