Botan 2.19.2
Crypto and TLS for C&
|
#include <emsa.h>
Public Member Functions | |
virtual EMSA * | clone ()=0 |
virtual AlgorithmIdentifier | config_for_x509 (const Private_Key &key, const std::string &cert_hash_name) const |
virtual secure_vector< uint8_t > | encoding_of (const secure_vector< uint8_t > &msg, size_t output_bits, RandomNumberGenerator &rng)=0 |
virtual std::string | name () const =0 |
virtual secure_vector< uint8_t > | raw_data ()=0 |
virtual void | update (const uint8_t input[], size_t length)=0 |
virtual bool | verify (const secure_vector< uint8_t > &coded, const secure_vector< uint8_t > &raw, size_t key_bits)=0 |
virtual | ~EMSA ()=default |
EMSA, from IEEE 1363s Encoding Method for Signatures, Appendix
Any way of encoding/padding signatures
|
virtualdefault |
|
pure virtual |
Implemented in Botan::EMSA1, Botan::EMSA_PKCS1v15, Botan::EMSA_PKCS1v15_Raw, Botan::PSSR, Botan::PSSR_Raw, Botan::EMSA_Raw, Botan::EMSA_X931, Botan::ISO_9796_DS2, and Botan::ISO_9796_DS3.
|
virtual |
Prepare sig_algo for use in choose_sig_format for x509 certs
key | used for checking compatibility with the encoding scheme |
cert_hash_name | is checked to equal the hash for the encoding |
Reimplemented in Botan::EMSA1, Botan::EMSA_PKCS1v15, and Botan::PSSR.
Definition at line 38 of file emsa.cpp.
References name().
|
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, and Botan::EMSA_PKCS1v15_Raw.
|
pure virtual |
Implemented in Botan::EMSA1, Botan::EMSA_PKCS1v15, Botan::EMSA_PKCS1v15_Raw, Botan::PSSR, Botan::PSSR_Raw, Botan::EMSA_Raw, Botan::EMSA_X931, Botan::ISO_9796_DS2, and Botan::ISO_9796_DS3.
Referenced by config_for_x509().
|
pure virtual |
Implemented in Botan::EMSA_PKCS1v15, and Botan::EMSA_PKCS1v15_Raw.
|
pure virtual |
Add more data to the signature computation
input | some data |
length | length of input in bytes |
Implemented in Botan::EMSA_PKCS1v15, and Botan::EMSA_PKCS1v15_Raw.
|
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, and Botan::EMSA_PKCS1v15_Raw.