aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_util.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-29 00:15:14 +0000
committerlloyd <[email protected]>2008-09-29 00:15:14 +0000
commit68d3d539ad7752dc80c20c1a2ade909b1a4c4a6e (patch)
treec7e588d28427960c95eca9900844d5bf36c079df /src/pk_util.cpp
parent8269e2897e0a652bbd949d38b74873976a98adeb (diff)
Move what is left of the uncategorized library to 'core'. There is still
a lot of public key stuff in here that needs to be extracted however, and probably 2-3 other modules worth of stuff to split off (engines, etc)
Diffstat (limited to 'src/pk_util.cpp')
-rw-r--r--src/pk_util.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/pk_util.cpp b/src/pk_util.cpp
deleted file mode 100644
index 1976436ea..000000000
--- a/src/pk_util.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-/*************************************************
-* PK Utility Classes Source File *
-* (C) 1999-2008 Jack Lloyd *
-*************************************************/
-
-#include <botan/pk_util.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);
- }
-
-}