diff options
author | lloyd <[email protected]> | 2010-10-13 02:45:00 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-13 02:45:00 +0000 |
commit | 63121e1e169616f724bf79b8aac1a2b4423c8904 (patch) | |
tree | 2375d5b5daaad8990b2cee951d137f2e7638e79b /src/pbkdf/pbkdf2 | |
parent | 879d062c2b93e32362e338d1c6f9b1eda0f88493 (diff) |
Use output_length() instead of OUTPUT_LENGTH pseudo-property
Diffstat (limited to 'src/pbkdf/pbkdf2')
-rw-r--r-- | src/pbkdf/pbkdf2/pbkdf2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pbkdf/pbkdf2/pbkdf2.cpp b/src/pbkdf/pbkdf2/pbkdf2.cpp index 5002f2ad6..7e4d1cd8a 100644 --- a/src/pbkdf/pbkdf2/pbkdf2.cpp +++ b/src/pbkdf/pbkdf2/pbkdf2.cpp @@ -37,12 +37,12 @@ OctetString PKCS5_PBKDF2::derive_key(size_t key_len, byte* T = &key[0]; - SecureVector<byte> U(mac->OUTPUT_LENGTH); + SecureVector<byte> U(mac->output_length()); u32bit counter = 1; while(key_len) { - size_t T_size = std::min<size_t>(mac->OUTPUT_LENGTH, key_len); + size_t T_size = std::min<size_t>(mac->output_length(), key_len); mac->update(salt, salt_size); mac->update_be(counter); |