diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pk_pad/emsa2/modinfo.txt | 4 | ||||
-rw-r--r-- | src/pk_pad/emsa3/modinfo.txt | 4 | ||||
-rw-r--r-- | src/pk_pad/hash_id/hash_id.cpp (renamed from src/hash_id.cpp) | 0 | ||||
-rw-r--r-- | src/pk_pad/hash_id/hash_id.h | 22 |
4 files changed, 30 insertions, 0 deletions
diff --git a/src/pk_pad/emsa2/modinfo.txt b/src/pk_pad/emsa2/modinfo.txt index 8d14da548..f0910d450 100644 --- a/src/pk_pad/emsa2/modinfo.txt +++ b/src/pk_pad/emsa2/modinfo.txt @@ -8,3 +8,7 @@ load_on auto emsa2.h emsa2.cpp </add> + +<requires> +hash_id +</requires> diff --git a/src/pk_pad/emsa3/modinfo.txt b/src/pk_pad/emsa3/modinfo.txt index 926f9a4e8..284b9b07d 100644 --- a/src/pk_pad/emsa3/modinfo.txt +++ b/src/pk_pad/emsa3/modinfo.txt @@ -8,3 +8,7 @@ load_on auto emsa3.h emsa3.cpp </add> + +<requires> +hash_id +</requires> diff --git a/src/hash_id.cpp b/src/pk_pad/hash_id/hash_id.cpp index 27225b3b5..27225b3b5 100644 --- a/src/hash_id.cpp +++ b/src/pk_pad/hash_id/hash_id.cpp diff --git a/src/pk_pad/hash_id/hash_id.h b/src/pk_pad/hash_id/hash_id.h new file mode 100644 index 000000000..157c45552 --- /dev/null +++ b/src/pk_pad/hash_id/hash_id.h @@ -0,0 +1,22 @@ +/************************************************* +* Hash Function Identification Header File * +* (C) 1999-2007 Jack Lloyd * +*************************************************/ + +#ifndef BOTAN_HASHID_H__ +#define BOTAN_HASHID_H__ + +#include <botan/secmem.h> +#include <string> + +namespace Botan { + +/************************************************* +* Return the values of various defined HashIDs * +*************************************************/ +BOTAN_DLL MemoryVector<byte> pkcs_hash_id(const std::string&); +BOTAN_DLL byte ieee1363_hash_id(const std::string&); + +} + +#endif |