aboutsummaryrefslogtreecommitdiffstats
path: root/doc/tutorial.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tutorial.tex')
-rw-r--r--doc/tutorial.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.tex b/doc/tutorial.tex
index ce33e5f9b..21fb9eed9 100644
--- a/doc/tutorial.tex
+++ b/doc/tutorial.tex
@@ -189,7 +189,7 @@ the first four lines of code from the first example with:
SecureVector<byte> the_salt = s2k->current_salt();
// 28 octets == 20 for key + 8 for IV
- SecureVector<byte> key_and_IV = s2k->derive_key(28, passphrase);
+ SecureVector<byte> key_and_IV = s2k->derive_key(28, passphrase).bits_of();
SymmetricKey key(key_and_IV, 20);
InitializationVector iv(key_and_IV + 20, 8);