aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/eme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pk_pad/eme.cpp')
-rw-r--r--src/pk_pad/eme.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/pk_pad/eme.cpp b/src/pk_pad/eme.cpp
deleted file mode 100644
index f90239d8c..000000000
--- a/src/pk_pad/eme.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
-* EME Base Class
-* (C) 1999-2008 Jack Lloyd
-*
-* Distributed under the terms of the Botan license
-*/
-
-#include <botan/eme.h>
-
-namespace Botan {
-
-/*
-* Encode a message
-*/
-secure_vector<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);
- }
-
-/*
-* Encode a message
-*/
-secure_vector<byte> EME::encode(const secure_vector<byte>& msg,
- size_t key_bits,
- RandomNumberGenerator& rng) const
- {
- return pad(&msg[0], msg.size(), key_bits, rng);
- }
-
-/*
-* Decode a message
-*/
-secure_vector<byte> EME::decode(const byte msg[], size_t msg_len,
- size_t key_bits) const
- {
- return unpad(msg, msg_len, key_bits);
- }
-
-/*
-* Decode a message
-*/
-secure_vector<byte> EME::decode(const secure_vector<byte>& msg,
- size_t key_bits) const
- {
- return unpad(&msg[0], msg.size(), key_bits);
- }
-
-}