Botan 2.19.3
Crypto and TLS for C&
|
#include <emsa_pkcs1.h>
Public Member Functions | |
EMSA * | clone () override |
AlgorithmIdentifier | config_for_x509 (const Private_Key &key, const std::string &cert_hash_name) const override |
EMSA_PKCS1v15 (HashFunction *hash) | |
secure_vector< uint8_t > | encoding_of (const secure_vector< uint8_t > &, size_t, RandomNumberGenerator &rng) override |
std::string | name () const override |
secure_vector< uint8_t > | raw_data () override |
void | update (const uint8_t[], size_t) override |
bool | verify (const secure_vector< uint8_t > &, const secure_vector< uint8_t > &, size_t) override |
PKCS #1 v1.5 signature padding aka PKCS #1 block type 1 aka EMSA3 from IEEE 1363
Definition at line 23 of file emsa_pkcs1.h.
|
explicit |
hash | the hash function to use |
Definition at line 105 of file emsa_pkcs1.cpp.
References Botan::pkcs_hash_id().
|
inlineoverridevirtual |
Implements Botan::EMSA.
Definition at line 31 of file emsa_pkcs1.h.
|
overridevirtual |
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 from Botan::EMSA.
Definition at line 86 of file emsa_pkcs1.cpp.
References Botan::Public_Key::algo_name(), Botan::OID::from_string(), name(), Botan::sig_algo_and_pad_ok(), and Botan::AlgorithmIdentifier::USE_NULL_PARAM.
|
overridevirtual |
Return the encoding of a message
msg | the result of raw_data() |
output_bits | the desired output bit size |
rng | a random number generator |
Implements Botan::EMSA.
Definition at line 57 of file emsa_pkcs1.cpp.
|
inlineoverridevirtual |
Implements Botan::EMSA.
Definition at line 43 of file emsa_pkcs1.h.
Referenced by config_for_x509().
|
overridevirtual |
Implements Botan::EMSA.
Definition at line 51 of file emsa_pkcs1.cpp.
|
overridevirtual |
Add more data to the signature computation
input | some data |
length | length of input in bytes |
Implements Botan::EMSA.
Definition at line 46 of file emsa_pkcs1.cpp.
|
overridevirtual |
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 |
Implements Botan::EMSA.
Definition at line 68 of file emsa_pkcs1.cpp.