aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/emsa1/emsa1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pk_pad/emsa1/emsa1.cpp')
-rw-r--r--src/pk_pad/emsa1/emsa1.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/pk_pad/emsa1/emsa1.cpp b/src/pk_pad/emsa1/emsa1.cpp
index 12e9cca01..26d709c28 100644
--- a/src/pk_pad/emsa1/emsa1.cpp
+++ b/src/pk_pad/emsa1/emsa1.cpp
@@ -1,7 +1,9 @@
-/*************************************************
-* EMSA1 Source File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* EMSA1
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#include <botan/emsa1.h>
@@ -38,25 +40,25 @@ SecureVector<byte> emsa1_encoding(const MemoryRegion<byte>& msg,
}
-/*************************************************
-* EMSA1 Update Operation *
-*************************************************/
+/*
+* EMSA1 Update Operation
+*/
void EMSA1::update(const byte input[], u32bit length)
{
hash->update(input, length);
}
-/*************************************************
-* Return the raw (unencoded) data *
-*************************************************/
+/*
+* Return the raw (unencoded) data
+*/
SecureVector<byte> EMSA1::raw_data()
{
return hash->final();
}
-/*************************************************
-* EMSA1 Encode Operation *
-*************************************************/
+/*
+* EMSA1 Encode Operation
+*/
SecureVector<byte> EMSA1::encoding_of(const MemoryRegion<byte>& msg,
u32bit output_bits,
RandomNumberGenerator&)
@@ -66,9 +68,9 @@ SecureVector<byte> EMSA1::encoding_of(const MemoryRegion<byte>& msg,
return emsa1_encoding(msg, output_bits);
}
-/*************************************************
-* EMSA1 Decode/Verify Operation *
-*************************************************/
+/*
+* EMSA1 Decode/Verify Operation
+*/
bool EMSA1::verify(const MemoryRegion<byte>& coded,
const MemoryRegion<byte>& raw, u32bit key_bits) throw()
{