Botan  1.11.15
Public Types | Public Member Functions
Botan::EMSA_X931 Class Reference

#include <emsa_x931.h>

Inheritance diagram for Botan::EMSA_X931:
Botan::EMSA

List of all members.

Public Types

typedef SCAN_Name Spec

Public Member Functions

 EMSA_X931 (HashFunction *hash)

Detailed Description

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.


Member Typedef Documentation

typedef SCAN_Name Botan::EMSA::Spec [inherited]

Definition at line 23 of file emsa.h.


Constructor & Destructor Documentation

Parameters:
hashthe 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());
   }

The documentation for this class was generated from the following files: