aboutsummaryrefslogtreecommitdiffstats
path: root/src/kdf/kdf2/kdf2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kdf/kdf2/kdf2.cpp')
-rw-r--r--src/kdf/kdf2/kdf2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdf/kdf2/kdf2.cpp b/src/kdf/kdf2/kdf2.cpp
index 8106ba07d..14cc29a31 100644
--- a/src/kdf/kdf2/kdf2.cpp
+++ b/src/kdf/kdf2/kdf2.cpp
@@ -29,7 +29,7 @@ SecureVector<byte> KDF2::derive(u32bit out_len,
SecureVector<byte> hash_result = hash->final();
u32bit added = std::min<u32bit>(hash_result.size(), out_len);
- output.append(&hash_result[0], added);
+ output += std::make_pair(&hash_result[0], added);
out_len -= added;
++counter;