diff options
author | lloyd <[email protected]> | 2010-10-12 20:00:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-12 20:00:20 +0000 |
commit | 9abeb56f7d355b8ff86cbb465ba1e0a08257ec12 (patch) | |
tree | 034f8a50d241c996e6ea1889e68a8650085bf2ff /src/pk_pad/eme.h | |
parent | 39306575081f043d1c79ade43797d3595fd5aeec (diff) |
Use size_t instead of u32bit in pk_pad
Diffstat (limited to 'src/pk_pad/eme.h')
-rw-r--r-- | src/pk_pad/eme.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/pk_pad/eme.h b/src/pk_pad/eme.h index 1bc3ba3c9..4e89ef9d3 100644 --- a/src/pk_pad/eme.h +++ b/src/pk_pad/eme.h @@ -24,7 +24,7 @@ class BOTAN_DLL EME * @param keybits the size of the key in bits * @return upper bound of input in bytes */ - virtual u32bit maximum_input_size(u32bit keybits) const = 0; + virtual size_t maximum_input_size(size_t keybits) const = 0; /** * Encode an input @@ -35,8 +35,8 @@ class BOTAN_DLL EME * @return encoded plaintext */ SecureVector<byte> encode(const byte in[], - u32bit in_length, - u32bit key_length, + size_t in_length, + size_t key_length, RandomNumberGenerator& rng) const; /** @@ -47,7 +47,7 @@ class BOTAN_DLL EME * @return encoded plaintext */ SecureVector<byte> encode(const MemoryRegion<byte>& in, - u32bit key_length, + size_t key_length, RandomNumberGenerator& rng) const; /** @@ -58,8 +58,8 @@ class BOTAN_DLL EME * @return plaintext */ SecureVector<byte> decode(const byte in[], - u32bit in_length, - u32bit key_length) const; + size_t in_length, + size_t key_length) const; /** * Decode an input @@ -68,7 +68,7 @@ class BOTAN_DLL EME * @return plaintext */ SecureVector<byte> decode(const MemoryRegion<byte>& in, - u32bit key_length) const; + size_t key_length) const; virtual ~EME() {} private: @@ -81,8 +81,8 @@ class BOTAN_DLL EME * @return encoded plaintext */ virtual SecureVector<byte> pad(const byte in[], - u32bit in_length, - u32bit key_length, + size_t in_length, + size_t key_length, RandomNumberGenerator& rng) const = 0; /** @@ -93,8 +93,8 @@ class BOTAN_DLL EME * @return plaintext */ virtual SecureVector<byte> unpad(const byte in[], - u32bit in_length, - u32bit key_length) const = 0; + size_t in_length, + size_t key_length) const = 0; }; } |