diff options
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); } } |