aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/eme.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-12 20:00:20 +0000
committerlloyd <[email protected]>2010-10-12 20:00:20 +0000
commit9abeb56f7d355b8ff86cbb465ba1e0a08257ec12 (patch)
tree034f8a50d241c996e6ea1889e68a8650085bf2ff /src/pk_pad/eme.cpp
parent39306575081f043d1c79ade43797d3595fd5aeec (diff)
Use size_t instead of u32bit in pk_pad
Diffstat (limited to 'src/pk_pad/eme.cpp')
-rw-r--r--src/pk_pad/eme.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pk_pad/eme.cpp b/src/pk_pad/eme.cpp
index 320f19034..cfdaa240d 100644
--- a/src/pk_pad/eme.cpp
+++ b/src/pk_pad/eme.cpp
@@ -12,8 +12,8 @@ namespace Botan {
/*
* Encode a message
*/
-SecureVector<byte> EME::encode(const byte msg[], u32bit msg_len,
- u32bit key_bits,
+SecureVector<byte> EME::encode(const byte msg[], size_t msg_len,
+ size_t key_bits,
RandomNumberGenerator& rng) const
{
return pad(msg, msg_len, key_bits, rng);
@@ -23,7 +23,7 @@ SecureVector<byte> EME::encode(const byte msg[], u32bit msg_len,
* Encode a message
*/
SecureVector<byte> EME::encode(const MemoryRegion<byte>& msg,
- u32bit key_bits,
+ size_t key_bits,
RandomNumberGenerator& rng) const
{
return pad(&msg[0], msg.size(), key_bits, rng);
@@ -32,8 +32,8 @@ SecureVector<byte> EME::encode(const MemoryRegion<byte>& msg,
/*
* Decode a message
*/
-SecureVector<byte> EME::decode(const byte msg[], u32bit msg_len,
- u32bit key_bits) const
+SecureVector<byte> EME::decode(const byte msg[], size_t msg_len,
+ size_t key_bits) const
{
return unpad(msg, msg_len, key_bits);
}
@@ -42,7 +42,7 @@ SecureVector<byte> EME::decode(const byte msg[], u32bit msg_len,
* Decode a message
*/
SecureVector<byte> EME::decode(const MemoryRegion<byte>& msg,
- u32bit key_bits) const
+ size_t key_bits) const
{
return unpad(&msg[0], msg.size(), key_bits);
}