diff options
author | Simon Warta <[email protected]> | 2015-06-25 11:19:24 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-25 11:19:24 +0200 |
commit | 3f91cbe7e5143dedb388fa2ce324194a1656f82f (patch) | |
tree | 2275ca2bb523cb57cd11f794d94f24fc0b643df4 /src/lib/kdf/kdf2/kdf2.cpp | |
parent | 026329021ca6693be545752238c517d477166a63 (diff) |
lib/kdf: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/kdf/kdf2/kdf2.cpp')
-rw-r--r-- | src/lib/kdf/kdf2/kdf2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kdf/kdf2/kdf2.cpp b/src/lib/kdf/kdf2/kdf2.cpp index f1a702887..9deb1a22f 100644 --- a/src/lib/kdf/kdf2/kdf2.cpp +++ b/src/lib/kdf/kdf2/kdf2.cpp @@ -28,7 +28,7 @@ size_t KDF2::kdf(byte key[], size_t key_len, m_hash->final(h); const size_t added = std::min(h.size(), key_len - offset); - copy_mem(&key[offset], &h[0], added); + copy_mem(&key[offset], h.data(), added); offset += added; } |