aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/kdf/hkdf/hkdf.cpp
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/hkdf/hkdf.cpp
parent026329021ca6693be545752238c517d477166a63 (diff)
lib/kdf: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/kdf/hkdf/hkdf.cpp')
-rw-r--r--src/lib/kdf/hkdf/hkdf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kdf/hkdf/hkdf.cpp b/src/lib/kdf/hkdf/hkdf.cpp
index e725c3a4a..b643db6d9 100644
--- a/src/lib/kdf/hkdf/hkdf.cpp
+++ b/src/lib/kdf/hkdf/hkdf.cpp
@@ -41,7 +41,7 @@ size_t HKDF::kdf(byte out[], size_t out_len,
m_prf->final(h);
const size_t written = std::min(h.size(), out_len - offset);
- copy_mem(&out[offset], &h[0], written);
+ copy_mem(&out[offset], h.data(), written);
offset += written;
}