aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/kdf/kdf1
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-25 11:19:24 +0200
committerSimon Warta <[email protected]>2015-06-25 11:19:24 +0200
commit3f91cbe7e5143dedb388fa2ce324194a1656f82f (patch)
tree2275ca2bb523cb57cd11f794d94f24fc0b643df4 /src/lib/kdf/kdf1
parent026329021ca6693be545752238c517d477166a63 (diff)
lib/kdf: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/kdf/kdf1')
-rw-r--r--src/lib/kdf/kdf1/kdf1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kdf/kdf1/kdf1.cpp b/src/lib/kdf/kdf1/kdf1.cpp
index c2a74027b..fa3432467 100644
--- a/src/lib/kdf/kdf1/kdf1.cpp
+++ b/src/lib/kdf/kdf1/kdf1.cpp
@@ -22,7 +22,7 @@ size_t KDF1::kdf(byte key[], size_t key_len,
if(key_len < m_hash->output_length())
{
secure_vector<byte> v = m_hash->final();
- copy_mem(key, &v[0], key_len);
+ copy_mem(key, v.data(), key_len);
return key_len;
}