aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/emsa1
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-03-30 18:27:18 +0000
committerlloyd <[email protected]>2009-03-30 18:27:18 +0000
commit96d6eb6f29c55e16a37cf11899547886f735b065 (patch)
tree9f13901e9b44c98d58b2589c9b09c6a7443eb7cd /src/pk_pad/emsa1
parent3cc3dd72c5f87b76852a55c1f2d1821dba967d8c (diff)
Thomas Moschny passed along a request from the Fedora packagers which came
up during the Fedora submission review, that each source file include some text about the license. One handy Perl script later and each file now has the line Distributed under the terms of the Botan license after the copyright notices. While I was in there modifying every file anyway, I also stripped out the remainder of the block comments (lots of astericks before and after the text); this is stylistic thing I picked up when I was first learning C++ but in retrospect it is not a good style as the structure makes it harder to modify comments (with the result that comments become fewer, shorter and are less likely to be updated, which are not good things).
Diffstat (limited to 'src/pk_pad/emsa1')
-rw-r--r--src/pk_pad/emsa1/emsa1.cpp34
-rw-r--r--src/pk_pad/emsa1/emsa1.h16
2 files changed, 27 insertions, 23 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()
{
diff --git a/src/pk_pad/emsa1/emsa1.h b/src/pk_pad/emsa1/emsa1.h
index 64255e748..a5dac07e2 100644
--- a/src/pk_pad/emsa1/emsa1.h
+++ b/src/pk_pad/emsa1/emsa1.h
@@ -1,7 +1,9 @@
-/*************************************************
-* EMSA1 Header File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* EMSA1
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#ifndef BOTAN_EMSA1_H__
#define BOTAN_EMSA1_H__
@@ -11,9 +13,9 @@
namespace Botan {
-/*************************************************
-* EMSA1 *
-*************************************************/
+/*
+* EMSA1
+*/
class BOTAN_DLL EMSA1 : public EMSA
{
public: