Botan
1.11.15
|
#include <emsa_x931.h>
Public Types | |
typedef SCAN_Name | Spec |
Public Member Functions | |
EMSA_X931 (HashFunction *hash) |
EMSA from X9.31 (EMSA2 in IEEE 1363) Useful for Rabin-Williams, also sometimes used with RSA in odd protocols.
Definition at line 21 of file emsa_x931.h.
typedef SCAN_Name Botan::EMSA::Spec [inherited] |
Botan::EMSA_X931::EMSA_X931 | ( | HashFunction * | hash | ) |
hash | the hash object to use |
Definition at line 88 of file emsa_x931.cpp.
References Botan::ieee1363_hash_id(), and Botan::HashFunction::name().
: m_hash(hash) { m_empty_hash = m_hash->final(); m_hash_id = ieee1363_hash_id(hash->name()); if(!m_hash_id) throw Encoding_Error("EMSA_X931 no hash identifier for " + hash->name()); }