diff options
Diffstat (limited to 'src/kdf/kdf.cpp')
-rw-r--r-- | src/kdf/kdf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdf/kdf.cpp b/src/kdf/kdf.cpp index 86f5f2476..04f44f2f4 100644 --- a/src/kdf/kdf.cpp +++ b/src/kdf/kdf.cpp @@ -16,7 +16,7 @@ SecureVector<byte> KDF::derive_key(u32bit key_len, const MemoryRegion<byte>& secret, const std::string& salt) const { - return derive_key(key_len, secret, secret.size(), + return derive_key(key_len, &secret[0], secret.size(), reinterpret_cast<const byte*>(salt.data()), salt.length()); } |