Botan  1.10.9
Public Member Functions | List of all members
Botan::EMSA Class Referenceabstract

#include <emsa.h>

Inheritance diagram for Botan::EMSA:
Botan::EMSA1 Botan::EMSA2 Botan::EMSA3 Botan::EMSA3_Raw Botan::EMSA4 Botan::EMSA_Raw Botan::EMSA1_BSI

Public Member Functions

virtual SecureVector< byteencoding_of (const MemoryRegion< byte > &msg, size_t output_bits, RandomNumberGenerator &rng)=0
 
virtual SecureVector< byteraw_data ()=0
 
virtual void update (const byte input[], size_t length)=0
 
virtual bool verify (const MemoryRegion< byte > &coded, const MemoryRegion< byte > &raw, size_t key_bits)=0
 
virtual ~EMSA ()
 

Detailed Description

Encoding Method for Signatures, Appendix

Definition at line 19 of file emsa.h.

Constructor & Destructor Documentation

virtual Botan::EMSA::~EMSA ( )
inlinevirtual

Definition at line 55 of file emsa.h.

55 {}

Member Function Documentation

virtual SecureVector<byte> Botan::EMSA::encoding_of ( const MemoryRegion< byte > &  msg,
size_t  output_bits,
RandomNumberGenerator rng 
)
pure virtual

Return the encoding of a message

Parameters
msgthe result of raw_data()
output_bitsthe desired output bit size
rnga random number generator
Returns
encoded signature

Implemented in Botan::EMSA3_Raw, and Botan::EMSA3.

Referenced by Botan::PK_Signer::signature().

virtual SecureVector<byte> Botan::EMSA::raw_data ( )
pure virtual
virtual void Botan::EMSA::update ( const byte  input[],
size_t  length 
)
pure virtual

Add more data to the signature computation

Parameters
inputsome data
lengthlength of input in bytes

Implemented in Botan::EMSA3_Raw, and Botan::EMSA3.

Referenced by Botan::PK_Signer::update(), and Botan::PK_Verifier::update().

virtual bool Botan::EMSA::verify ( const MemoryRegion< byte > &  coded,
const MemoryRegion< byte > &  raw,
size_t  key_bits 
)
pure virtual

Verify the encoding

Parameters
codedthe received (coded) message representative
rawthe computed (local, uncoded) message representative
key_bitsthe size of the key in bits
Returns
true if coded is a valid encoding of raw, otherwise false

Implemented in Botan::EMSA3_Raw, and Botan::EMSA3.


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