From bd5427214f0acba796f43bd6289f860fbed73519 Mon Sep 17 00:00:00 2001 From: Daniel Seither Date: Sat, 20 Jun 2015 18:39:40 +0200 Subject: lib/pk_pad: Convert &vec[0] to vec.data() --- src/lib/pk_pad/mgf1/mgf1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/pk_pad/mgf1') 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 buffer = hash.final(); size_t xored = std::min(buffer.size(), out_len); - xor_buf(out, &buffer[0], xored); + xor_buf(out, buffer.data(), xored); out += xored; out_len -= xored; -- cgit v1.2.3