Botan 1.10.17
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

◆ ~EMSA()

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

Definition at line 55 of file emsa.h.

55{}

Member Function Documentation

◆ encoding_of()

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, and Botan::EMSA3_Raw.

◆ raw_data()

virtual SecureVector< byte > Botan::EMSA::raw_data ( )
pure virtual
Returns
raw hash

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

◆ update()

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, and Botan::EMSA3_Raw.

◆ verify()

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, and Botan::EMSA3_Raw.


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