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.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/pk_pad/eme.cpp b/src/pk_pad/eme.cpp
index ca618889b..74bba5ac1 100644
--- a/src/pk_pad/eme.cpp
+++ b/src/pk_pad/eme.cpp
@@ -1,15 +1,17 @@
-/*************************************************
-* EME Base Class Source File *
-* (C) 1999-2008 Jack Lloyd *
-*************************************************/
+/*
+* 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 *
-*************************************************/
+/*
+* Encode a message
+*/
SecureVector<byte> EME::encode(const byte msg[], u32bit msg_len,
u32bit key_bits,
RandomNumberGenerator& rng) const
@@ -17,9 +19,9 @@ SecureVector<byte> EME::encode(const byte msg[], u32bit msg_len,
return pad(msg, msg_len, key_bits, rng);
}
-/*************************************************
-* Encode a message *
-*************************************************/
+/*
+* Encode a message
+*/
SecureVector<byte> EME::encode(const MemoryRegion<byte>& msg,
u32bit key_bits,
RandomNumberGenerator& rng) const
@@ -27,18 +29,18 @@ SecureVector<byte> EME::encode(const MemoryRegion<byte>& msg,
return pad(msg, msg.size(), key_bits, rng);
}
-/*************************************************
-* Decode a message *
-*************************************************/
+/*
+* 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 *
-*************************************************/
+/*
+* Decode a message
+*/
SecureVector<byte> EME::decode(const MemoryRegion<byte>& msg,
u32bit key_bits) const
{