aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/mgf1
diff options
context:
space:
mode:
authorDaniel Seither <[email protected]>2015-06-20 18:39:40 +0200
committerDaniel Seither <[email protected]>2015-06-20 19:05:07 +0200
commitbd5427214f0acba796f43bd6289f860fbed73519 (patch)
tree38f783fa532670fe7de910108f06e480f4bc3c8e /src/lib/pk_pad/mgf1
parent9dc9dd03af7f0f175c05ab9886f5e71d3d3a760d (diff)
lib/pk_pad: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/pk_pad/mgf1')
-rw-r--r--src/lib/pk_pad/mgf1/mgf1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pk_pad/mgf1/mgf1.cpp b/src/lib/pk_pad/mgf1/mgf1.cpp
index f947c5dd2..950961f89 100644
--- a/src/lib/pk_pad/mgf1/mgf1.cpp
+++ b/src/lib/pk_pad/mgf1/mgf1.cpp
@@ -25,7 +25,7 @@ void mgf1_mask(HashFunction& hash,
secure_vector<byte> buffer = hash.final();
size_t xored = std::min<size_t>(buffer.size(), out_len);
- xor_buf(out, &buffer[0], xored);
+ xor_buf(out, buffer.data(), xored);
out += xored;
out_len -= xored;