aboutsummaryrefslogtreecommitdiffstats
path: root/doc/manual/cryptobox.rst
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-22 18:49:30 -0400
committerJack Lloyd <[email protected]>2017-09-22 18:49:30 -0400
commitf8f2912d24bad8b162b89e34ab62c415aef98843 (patch)
treef318dc75953a8b92fef0420855ea3cdcd40ca265 /doc/manual/cryptobox.rst
parent00bf32562653b468b1b7a2b3ed3eb10f95bf230e (diff)
Cryptobox code modernization
Only encrypt so it's easy to verify everything still works.
Diffstat (limited to 'doc/manual/cryptobox.rst')
-rw-r--r--doc/manual/cryptobox.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/manual/cryptobox.rst b/doc/manual/cryptobox.rst
index ea77eee5a..a3a0d02b0 100644
--- a/doc/manual/cryptobox.rst
+++ b/doc/manual/cryptobox.rst
@@ -11,6 +11,10 @@ This is a set of simple routines that encrypt some data using a
passphrase. There are defined in the header `cryptobox.h`, inside
namespace `Botan::CryptoBox`.
+It generates cipher and MAC keys using 8192 iterations of PBKDF2 with
+HMAC(SHA-512), then encrypts using Serpent in CTR mode and authenticates using a
+HMAC(SHA-512) mac of the ciphertext, truncated to 160 bits.
+
.. cpp:function:: std::string encrypt(const byte input[], size_t input_len, \
const std::string& passphrase, \
RandomNumberGenerator& rng)