aboutsummaryrefslogtreecommitdiffstats
path: root/doc/cryptobox.rst
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/cryptobox.rst
parent50339fd935441332cdb55bcf3877b1dcdb26834c (diff)
Vaguely document the cryptobox functions
Diffstat (limited to 'doc/cryptobox.rst')
-rw-r--r--doc/cryptobox.rst24
1 files changed, 24 insertions, 0 deletions
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.
+