From 9abeb56f7d355b8ff86cbb465ba1e0a08257ec12 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 12 Oct 2010 20:00:20 +0000 Subject: Use size_t instead of u32bit in pk_pad --- src/pk_pad/eme.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/pk_pad/eme.cpp') 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 EME::encode(const byte msg[], u32bit msg_len, - u32bit key_bits, +SecureVector 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 EME::encode(const byte msg[], u32bit msg_len, * Encode a message */ SecureVector EME::encode(const MemoryRegion& 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 EME::encode(const MemoryRegion& msg, /* * Decode a message */ -SecureVector EME::decode(const byte msg[], u32bit msg_len, - u32bit key_bits) const +SecureVector 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 EME::decode(const byte msg[], u32bit msg_len, * Decode a message */ SecureVector EME::decode(const MemoryRegion& msg, - u32bit key_bits) const + size_t key_bits) const { return unpad(&msg[0], msg.size(), key_bits); } -- cgit v1.2.3