diff options
author | lloyd <[email protected]> | 2008-09-28 17:42:51 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-28 17:42:51 +0000 |
commit | b80031b5b58c309fb6dd77d23ac706360a60850c (patch) | |
tree | feace348f9940ecf257fb02bbb1aa5b4e6d2d32b | |
parent | d84014e4b717da0618fc2f4c85dd1ef41ac6d0fa (diff) |
Oops, add unknown modinfos and headers
-rw-r--r-- | modules/pk_pad/eme1/modinfo.txt | 10 | ||||
-rw-r--r-- | modules/pk_pad/eme_pkcs/eme_pkcs.h | 28 | ||||
-rw-r--r-- | modules/pk_pad/eme_pkcs/modinfo.txt | 10 | ||||
-rw-r--r-- | modules/pk_pad/emsa1/emsa1.h | 36 | ||||
-rw-r--r-- | modules/pk_pad/emsa1/modinfo.txt | 10 | ||||
-rw-r--r-- | modules/pk_pad/emsa2/emsa2.h | 38 | ||||
-rw-r--r-- | modules/pk_pad/emsa2/modinfo.txt | 10 | ||||
-rw-r--r-- | modules/pk_pad/emsa3/emsa3.h | 38 | ||||
-rw-r--r-- | modules/pk_pad/emsa3/modinfo.txt | 10 | ||||
-rw-r--r-- | modules/pk_pad/emsa4/emsa4.h | 38 | ||||
-rw-r--r-- | modules/pk_pad/emsa4/modinfo.txt | 10 | ||||
-rw-r--r-- | modules/pk_pad/emsa_raw/emsa_raw.h | 32 | ||||
-rw-r--r-- | modules/pk_pad/emsa_raw/modinfo.txt | 10 |
13 files changed, 280 insertions, 0 deletions
diff --git a/modules/pk_pad/eme1/modinfo.txt b/modules/pk_pad/eme1/modinfo.txt new file mode 100644 index 000000000..5383d59b6 --- /dev/null +++ b/modules/pk_pad/eme1/modinfo.txt @@ -0,0 +1,10 @@ +realname "EME1" + +define EME1 + +load_on auto + +<add> +eme1.h +eme1.cpp +</add> diff --git a/modules/pk_pad/eme_pkcs/eme_pkcs.h b/modules/pk_pad/eme_pkcs/eme_pkcs.h new file mode 100644 index 000000000..9ec500c54 --- /dev/null +++ b/modules/pk_pad/eme_pkcs/eme_pkcs.h @@ -0,0 +1,28 @@ +/************************************************* +* EME PKCS#1 v1.5 Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_EME_PKCS1_H__ +#define BOTAN_EME_PKCS1_H__ + +#include <botan/pk_util.h> + +namespace Botan { + +/************************************************* +* EME_PKCS1v15 * +*************************************************/ +class BOTAN_DLL EME_PKCS1v15 : public EME + { + public: + u32bit maximum_input_size(u32bit) const; + private: + SecureVector<byte> pad(const byte[], u32bit, u32bit, + RandomNumberGenerator&) const; + SecureVector<byte> unpad(const byte[], u32bit, u32bit) const; + }; + +} + +#endif diff --git a/modules/pk_pad/eme_pkcs/modinfo.txt b/modules/pk_pad/eme_pkcs/modinfo.txt new file mode 100644 index 000000000..fbfe9b24d --- /dev/null +++ b/modules/pk_pad/eme_pkcs/modinfo.txt @@ -0,0 +1,10 @@ +realname "PKCS #1 v1.5 EME" + +define EME_PKCS1v15 + +load_on auto + +<add> +eme_pkcs.h +eme_pkcs.cpp +</add> diff --git a/modules/pk_pad/emsa1/emsa1.h b/modules/pk_pad/emsa1/emsa1.h new file mode 100644 index 000000000..f8d7ac043 --- /dev/null +++ b/modules/pk_pad/emsa1/emsa1.h @@ -0,0 +1,36 @@ +/************************************************* +* EMSA1 Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_EMSA1_H__ +#define BOTAN_EMSA1_H__ + +#include <botan/pk_util.h> + +namespace Botan { + +/************************************************* +* EMSA1 * +*************************************************/ +class BOTAN_DLL EMSA1 : public EMSA + { + public: + EMSA1(const std::string&); + ~EMSA1() { delete hash; } + private: + void update(const byte[], u32bit); + SecureVector<byte> raw_data(); + + SecureVector<byte> encoding_of(const MemoryRegion<byte>&, u32bit, + RandomNumberGenerator& rng); + + bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&, + u32bit) throw(); + + HashFunction* hash; + }; + +} + +#endif diff --git a/modules/pk_pad/emsa1/modinfo.txt b/modules/pk_pad/emsa1/modinfo.txt new file mode 100644 index 000000000..4040dd580 --- /dev/null +++ b/modules/pk_pad/emsa1/modinfo.txt @@ -0,0 +1,10 @@ +realname "EMSA1" + +define EMSA1 + +load_on auto + +<add> +emsa1.h +emsa1.cpp +</add> diff --git a/modules/pk_pad/emsa2/emsa2.h b/modules/pk_pad/emsa2/emsa2.h new file mode 100644 index 000000000..5db9593f8 --- /dev/null +++ b/modules/pk_pad/emsa2/emsa2.h @@ -0,0 +1,38 @@ +/************************************************* +* EMSA2 Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_EMSA2_H__ +#define BOTAN_EMSA2_H__ + +#include <botan/pk_util.h> + +namespace Botan { + +/************************************************* +* EMSA2 * +*************************************************/ +class BOTAN_DLL EMSA2 : public EMSA + { + public: + EMSA2(const std::string&); + ~EMSA2() { delete hash; } + private: + void update(const byte[], u32bit); + SecureVector<byte> raw_data(); + + SecureVector<byte> encoding_of(const MemoryRegion<byte>&, u32bit, + RandomNumberGenerator& rng); + + bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&, + u32bit) throw(); + + SecureVector<byte> empty_hash; + HashFunction* hash; + byte hash_id; + }; + +} + +#endif diff --git a/modules/pk_pad/emsa2/modinfo.txt b/modules/pk_pad/emsa2/modinfo.txt new file mode 100644 index 000000000..8d14da548 --- /dev/null +++ b/modules/pk_pad/emsa2/modinfo.txt @@ -0,0 +1,10 @@ +realname "EMSA2" + +define EMSA2 + +load_on auto + +<add> +emsa2.h +emsa2.cpp +</add> diff --git a/modules/pk_pad/emsa3/emsa3.h b/modules/pk_pad/emsa3/emsa3.h new file mode 100644 index 000000000..fa8521216 --- /dev/null +++ b/modules/pk_pad/emsa3/emsa3.h @@ -0,0 +1,38 @@ +/************************************************* +* EMSA3 Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_EMSA3_H__ +#define BOTAN_EMSA3_H__ + +#include <botan/pk_util.h> + +namespace Botan { + +/************************************************* +* EMSA3 * +*************************************************/ +class BOTAN_DLL EMSA3 : public EMSA + { + public: + EMSA3(const std::string&); + ~EMSA3() { delete hash; } + private: + void update(const byte[], u32bit); + + SecureVector<byte> raw_data(); + + SecureVector<byte> encoding_of(const MemoryRegion<byte>&, u32bit, + RandomNumberGenerator& rng); + + bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&, + u32bit) throw(); + + HashFunction* hash; + SecureVector<byte> hash_id; + }; + +} + +#endif diff --git a/modules/pk_pad/emsa3/modinfo.txt b/modules/pk_pad/emsa3/modinfo.txt new file mode 100644 index 000000000..926f9a4e8 --- /dev/null +++ b/modules/pk_pad/emsa3/modinfo.txt @@ -0,0 +1,10 @@ +realname "EMSA3" + +define EMSA3 + +load_on auto + +<add> +emsa3.h +emsa3.cpp +</add> diff --git a/modules/pk_pad/emsa4/emsa4.h b/modules/pk_pad/emsa4/emsa4.h new file mode 100644 index 000000000..f4d4a4b6d --- /dev/null +++ b/modules/pk_pad/emsa4/emsa4.h @@ -0,0 +1,38 @@ +/************************************************* +* EMSA4 Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_EMSA4_H__ +#define BOTAN_EMSA4_H__ + +#include <botan/pk_util.h> + +namespace Botan { + +/************************************************* +* EMSA4 * +*************************************************/ +class BOTAN_DLL EMSA4 : public EMSA + { + public: + EMSA4(const std::string&, const std::string&); + EMSA4(const std::string&, const std::string&, u32bit); + ~EMSA4() { delete hash; delete mgf; } + private: + void update(const byte[], u32bit); + SecureVector<byte> raw_data(); + + SecureVector<byte> encoding_of(const MemoryRegion<byte>&, u32bit, + RandomNumberGenerator& rng); + bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&, + u32bit) throw(); + + const u32bit SALT_SIZE; + HashFunction* hash; + const MGF* mgf; + }; + +} + +#endif diff --git a/modules/pk_pad/emsa4/modinfo.txt b/modules/pk_pad/emsa4/modinfo.txt new file mode 100644 index 000000000..39a34c619 --- /dev/null +++ b/modules/pk_pad/emsa4/modinfo.txt @@ -0,0 +1,10 @@ +realname "EMSA4" + +define EMSA4 + +load_on auto + +<add> +emsa4.h +emsa4.cpp +</add> diff --git a/modules/pk_pad/emsa_raw/emsa_raw.h b/modules/pk_pad/emsa_raw/emsa_raw.h new file mode 100644 index 000000000..a9e21d0e0 --- /dev/null +++ b/modules/pk_pad/emsa_raw/emsa_raw.h @@ -0,0 +1,32 @@ +/************************************************* +* EMSA-Raw Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_EMSA_RAW_H__ +#define BOTAN_EMSA_RAW_H__ + +#include <botan/pk_util.h> + +namespace Botan { + +/************************************************* +* EMSA-Raw * +*************************************************/ +class BOTAN_DLL EMSA_Raw : public EMSA + { + private: + void update(const byte[], u32bit); + SecureVector<byte> raw_data(); + + SecureVector<byte> encoding_of(const MemoryRegion<byte>&, u32bit, + RandomNumberGenerator&); + bool verify(const MemoryRegion<byte>&, const MemoryRegion<byte>&, + u32bit) throw(); + + SecureVector<byte> message; + }; + +} + +#endif diff --git a/modules/pk_pad/emsa_raw/modinfo.txt b/modules/pk_pad/emsa_raw/modinfo.txt new file mode 100644 index 000000000..2a88d10fa --- /dev/null +++ b/modules/pk_pad/emsa_raw/modinfo.txt @@ -0,0 +1,10 @@ +realname "EMSA-Raw" + +define EMSA_RAW + +load_on auto + +<add> +emsa_raw.h +emsa_raw.cpp +</add> |