diff options
author | Daniel Seither <[email protected]> | 2015-06-20 18:39:40 +0200 |
---|---|---|
committer | Daniel Seither <[email protected]> | 2015-06-20 19:05:07 +0200 |
commit | bd5427214f0acba796f43bd6289f860fbed73519 (patch) | |
tree | 38f783fa532670fe7de910108f06e480f4bc3c8e /src/lib/pk_pad/eme.cpp | |
parent | 9dc9dd03af7f0f175c05ab9886f5e71d3d3a760d (diff) |
lib/pk_pad: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/pk_pad/eme.cpp')
-rw-r--r-- | src/lib/pk_pad/eme.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pk_pad/eme.cpp b/src/lib/pk_pad/eme.cpp index dc4c36082..9398b4c83 100644 --- a/src/lib/pk_pad/eme.cpp +++ b/src/lib/pk_pad/eme.cpp @@ -26,7 +26,7 @@ secure_vector<byte> EME::encode(const secure_vector<byte>& msg, size_t key_bits, RandomNumberGenerator& rng) const { - return pad(&msg[0], msg.size(), key_bits, rng); + return pad(msg.data(), msg.size(), key_bits, rng); } /* @@ -44,7 +44,7 @@ secure_vector<byte> EME::decode(const byte msg[], size_t msg_len, secure_vector<byte> EME::decode(const secure_vector<byte>& msg, size_t key_bits) const { - return unpad(&msg[0], msg.size(), key_bits); + return unpad(msg.data(), msg.size(), key_bits); } } |