diff options
author | René Korthaus <[email protected]> | 2016-04-13 19:07:33 +0200 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-06-14 17:33:50 +0200 |
commit | e14d6a0489ee290d289cf276fa3ff94044191af7 (patch) | |
tree | d3961328c1b6ba592a2114d3f231cd49c6c2a9a2 /src/lib/pk_pad/emsa.h | |
parent | 6816c9e71e01432792a997ad9a5d561b9cd94a48 (diff) |
Add ECKCDSA signature algorithm
Diffstat (limited to 'src/lib/pk_pad/emsa.h')
-rw-r--r-- | src/lib/pk_pad/emsa.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/pk_pad/emsa.h b/src/lib/pk_pad/emsa.h index d4fd146da..f4697d100 100644 --- a/src/lib/pk_pad/emsa.h +++ b/src/lib/pk_pad/emsa.h @@ -59,16 +59,27 @@ class BOTAN_DLL EMSA size_t key_bits) = 0; virtual ~EMSA(); + + virtual EMSA* clone() = 0; }; /** * Factory method for EMSA (message-encoding methods for signatures * with appendix) objects -* @param algo_spec the name of the EME to create +* @param algo_spec the name of the EMSA to create * @return pointer to newly allocated object of that type */ BOTAN_DLL EMSA* get_emsa(const std::string& algo_spec); +/** +* Returns the hash function used in the given EMSA scheme +* If the hash function is not specified or not understood, +* returns "SHA-512" +* @param algo_spec the name of the EMSA +* @return hash function used in the given EMSA scheme +*/ +BOTAN_DLL std::string hash_for_emsa(const std::string& algo_spec); + } #endif |