diff options
author | lloyd <[email protected]> | 2008-10-26 02:23:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-26 02:23:38 +0000 |
commit | dea1aa500fd7da2968448677fd628e8a4dddb6fb (patch) | |
tree | 48e401fe5cbb07a094b59ef742167ad5070a1dbe /src/core/pk_pad.cpp | |
parent | 17231ebbb95cc45cca50eabc4799c3058fc78ee9 (diff) |
Put pk_pad.{h,cpp} from core into pk_pad/ dir (cleaner I think)
Diffstat (limited to 'src/core/pk_pad.cpp')
-rw-r--r-- | src/core/pk_pad.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/core/pk_pad.cpp b/src/core/pk_pad.cpp deleted file mode 100644 index 23dc9a95b..000000000 --- a/src/core/pk_pad.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/************************************************* -* EME/EMSA Base Class Source File * -* (C) 1999-2008 Jack Lloyd * -*************************************************/ - -#include <botan/pk_pad.h> - -namespace Botan { - -/************************************************* -* Encode a message * -*************************************************/ -SecureVector<byte> EME::encode(const byte msg[], u32bit msg_len, - u32bit key_bits, - RandomNumberGenerator& rng) const - { - return pad(msg, msg_len, key_bits, rng); - } - -/************************************************* -* Encode a message * -*************************************************/ -SecureVector<byte> EME::encode(const MemoryRegion<byte>& msg, - u32bit key_bits, - RandomNumberGenerator& rng) const - { - return pad(msg, msg.size(), key_bits, rng); - } - -/************************************************* -* Decode a message * -*************************************************/ -SecureVector<byte> EME::decode(const byte msg[], u32bit msg_len, - u32bit key_bits) const - { - return unpad(msg, msg_len, key_bits); - } - -/************************************************* -* Decode a message * -*************************************************/ -SecureVector<byte> EME::decode(const MemoryRegion<byte>& msg, - u32bit key_bits) const - { - return unpad(msg, msg.size(), key_bits); - } - -} |