aboutsummaryrefslogtreecommitdiffstats
path: root/src/pk_pad/eme_pkcs
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/eme_pkcs
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/eme_pkcs')
-rw-r--r--src/pk_pad/eme_pkcs/eme_pkcs.cpp28
-rw-r--r--src/pk_pad/eme_pkcs/eme_pkcs.h16
2 files changed, 24 insertions, 20 deletions
diff --git a/src/pk_pad/eme_pkcs/eme_pkcs.cpp b/src/pk_pad/eme_pkcs/eme_pkcs.cpp
index 494f238b4..c2f9c91d2 100644
--- a/src/pk_pad/eme_pkcs/eme_pkcs.cpp
+++ b/src/pk_pad/eme_pkcs/eme_pkcs.cpp
@@ -1,15 +1,17 @@
-/*************************************************
-* PKCS1 EME Source File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* PKCS1 EME
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#include <botan/eme_pkcs.h>
namespace Botan {
-/*************************************************
-* PKCS1 Pad Operation *
-*************************************************/
+/*
+* PKCS1 Pad Operation
+*/
SecureVector<byte> EME_PKCS1v15::pad(const byte in[], u32bit inlen,
u32bit olen,
RandomNumberGenerator& rng) const
@@ -32,9 +34,9 @@ SecureVector<byte> EME_PKCS1v15::pad(const byte in[], u32bit inlen,
return out;
}
-/*************************************************
-* PKCS1 Unpad Operation *
-*************************************************/
+/*
+* PKCS1 Unpad Operation
+*/
SecureVector<byte> EME_PKCS1v15::unpad(const byte in[], u32bit inlen,
u32bit key_len) const
{
@@ -54,9 +56,9 @@ SecureVector<byte> EME_PKCS1v15::unpad(const byte in[], u32bit inlen,
return SecureVector<byte>(in + seperator + 1, inlen - seperator - 1);
}
-/*************************************************
-* Return the max input size for a given key size *
-*************************************************/
+/*
+* Return the max input size for a given key size
+*/
u32bit EME_PKCS1v15::maximum_input_size(u32bit keybits) const
{
if(keybits / 8 > 10)
diff --git a/src/pk_pad/eme_pkcs/eme_pkcs.h b/src/pk_pad/eme_pkcs/eme_pkcs.h
index 76817826d..1aeedf5d7 100644
--- a/src/pk_pad/eme_pkcs/eme_pkcs.h
+++ b/src/pk_pad/eme_pkcs/eme_pkcs.h
@@ -1,7 +1,9 @@
-/*************************************************
-* EME PKCS#1 v1.5 Header File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
+/*
+* EME PKCS#1 v1.5
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
#ifndef BOTAN_EME_PKCS1_H__
#define BOTAN_EME_PKCS1_H__
@@ -10,9 +12,9 @@
namespace Botan {
-/*************************************************
-* EME_PKCS1v15 *
-*************************************************/
+/*
+* EME_PKCS1v15
+*/
class BOTAN_DLL EME_PKCS1v15 : public EME
{
public: