aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/emsa_x931
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/emsa_x931
parent9dc9dd03af7f0f175c05ab9886f5e71d3d3a760d (diff)
lib/pk_pad: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/pk_pad/emsa_x931')
-rw-r--r--src/lib/pk_pad/emsa_x931/emsa_x931.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pk_pad/emsa_x931/emsa_x931.cpp b/src/lib/pk_pad/emsa_x931/emsa_x931.cpp
index cda3b22dd..6b86a25f9 100644
--- a/src/lib/pk_pad/emsa_x931/emsa_x931.cpp
+++ b/src/lib/pk_pad/emsa_x931/emsa_x931.cpp
@@ -35,7 +35,7 @@ secure_vector<byte> emsa2_encoding(const secure_vector<byte>& msg,
output[0] = (empty_input ? 0x4B : 0x6B);
output[output_length - 3 - HASH_SIZE] = 0xBA;
set_mem(&output[1], output_length - 4 - HASH_SIZE, 0xBB);
- buffer_insert(output, output_length - (HASH_SIZE + 2), &msg[0], msg.size());
+ buffer_insert(output, output_length - (HASH_SIZE + 2), msg.data(), msg.size());
output[output_length-2] = hash_id;
output[output_length-1] = 0xCC;