Botan
1.11.15
|
#include <emsa.h>
Public Types | |
typedef SCAN_Name | Spec |
Public Member Functions | |
virtual secure_vector< byte > | encoding_of (const secure_vector< byte > &msg, size_t output_bits, RandomNumberGenerator &rng)=0 |
virtual secure_vector< byte > | raw_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 () |
typedef SCAN_Name Botan::EMSA::Spec |
virtual Botan::EMSA::~EMSA | ( | ) | [inline, virtual] |
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
msg | the result of raw_data() |
output_bits | the desired output bit size |
rng | a random number generator |
Implemented in Botan::EMSA_PKCS1v15_Raw, and Botan::EMSA_PKCS1v15.
virtual secure_vector<byte> Botan::EMSA::raw_data | ( | ) | [pure virtual] |
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
input | some data |
length | length 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
coded | the received (coded) message representative |
raw | the computed (local, uncoded) message representative |
key_bits | the size of the key in bits |
Implemented in Botan::EMSA_PKCS1v15_Raw, and Botan::EMSA_PKCS1v15.