diff options
Diffstat (limited to 'src/pk_pad/eme_pkcs')
-rw-r--r-- | src/pk_pad/eme_pkcs/eme_pkcs.cpp | 28 | ||||
-rw-r--r-- | src/pk_pad/eme_pkcs/eme_pkcs.h | 16 |
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: |