diff options
Diffstat (limited to 'src/pbkdf/pgps2k/pgp_s2k.cpp')
-rw-r--r-- | src/pbkdf/pgps2k/pgp_s2k.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pbkdf/pgps2k/pgp_s2k.cpp b/src/pbkdf/pgps2k/pgp_s2k.cpp index 98e05073e..9cec7304c 100644 --- a/src/pbkdf/pgps2k/pgp_s2k.cpp +++ b/src/pbkdf/pgps2k/pgp_s2k.cpp @@ -46,8 +46,8 @@ OctetString OpenPGP_S2K::derive_key(size_t key_len, } hash_buf = hash->final(); - key.copy(generated, &hash_buf[0], hash->OUTPUT_LENGTH); - generated += hash->OUTPUT_LENGTH; + key.copy(generated, &hash_buf[0], hash->output_length()); + generated += hash->output_length(); ++pass; } |