aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/eme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pk_pad/eme.cpp')
-rw-r--r--src/pk_pad/eme.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pk_pad/eme.cpp b/src/pk_pad/eme.cpp
index 74bba5ac1..320f19034 100644
--- a/src/pk_pad/eme.cpp
+++ b/src/pk_pad/eme.cpp
@@ -26,7 +26,7 @@ SecureVector<byte> EME::encode(const MemoryRegion<byte>& msg,
u32bit key_bits,
RandomNumberGenerator& rng) const
{
- return pad(msg, msg.size(), key_bits, rng);
+ return pad(&msg[0], msg.size(), key_bits, rng);
}
/*
@@ -44,7 +44,7 @@ SecureVector<byte> EME::decode(const byte msg[], u32bit msg_len,
SecureVector<byte> EME::decode(const MemoryRegion<byte>& msg,
u32bit key_bits) const
{
- return unpad(msg, msg.size(), key_bits);
+ return unpad(&msg[0], msg.size(), key_bits);
}
}