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

#include <emsa.h>

Inheritance diagram for Botan::EMSA:
Botan::EMSA1 Botan::EMSA_PKCS1v15 Botan::EMSA_PKCS1v15_Raw Botan::EMSA_Raw Botan::EMSA_X931 Botan::PSSR Botan::EMSA1_BSI

List of all members.

Public Types

typedef SCAN_Name Spec

Public Member Functions

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

Detailed Description

Encoding Method for Signatures, Appendix

Definition at line 20 of file emsa.h.


Member Typedef Documentation

Definition at line 23 of file emsa.h.


Constructor & Destructor Documentation

virtual Botan::EMSA::~EMSA ( ) [inline, virtual]

Definition at line 58 of file emsa.h.

{}

Member Function Documentation

virtual secure_vector<byte> Botan::EMSA::encoding_of ( const secure_vector< 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::EMSA_PKCS1v15_Raw, and Botan::EMSA_PKCS1v15.

virtual secure_vector<byte> Botan::EMSA::raw_data ( ) [pure virtual]
Returns:
raw hash

Implemented in Botan::EMSA_PKCS1v15_Raw, and Botan::EMSA_PKCS1v15.

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

virtual bool Botan::EMSA::verify ( const secure_vector< byte > &  coded,
const secure_vector< 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::EMSA_PKCS1v15_Raw, and Botan::EMSA_PKCS1v15.


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