|
Botan
2.13.0
Crypto and TLS for C++11
|
#include <emsa_pkcs1.h>
Public Member Functions | |
| EMSA * | clone () override |
| virtual AlgorithmIdentifier | config_for_x509 (const Private_Key &key, const std::string &cert_hash_name) const |
| EMSA_PKCS1v15_Raw (const std::string &hash_algo="") | |
| 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 |
EMSA_PKCS1v15_Raw which is EMSA_PKCS1v15 without a hash or digest id (which according to QCA docs is "identical to PKCS#11's CKM_RSA_PKCS mechanism", something I have not confirmed)
Definition at line 58 of file emsa_pkcs1.h.
| Botan::EMSA_PKCS1v15_Raw::EMSA_PKCS1v15_Raw | ( | const std::string & | hash_algo = "" | ) |
| hash_algo | if non-empty, the digest id for that hash is included in the signature. |
Definition at line 110 of file emsa_pkcs1.cpp.
References Botan::HashFunction::create_or_throw(), hash, and Botan::pkcs_hash_id().
|
inlineoverridevirtual |
Implements Botan::EMSA.
Definition at line 61 of file emsa_pkcs1.h.
|
virtualinherited |
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::EMSA_PKCS1v15, Botan::PSSR, and Botan::EMSA1.
Definition at line 38 of file emsa.cpp.
References Botan::EMSA::name().
|
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 142 of file emsa_pkcs1.cpp.
|
inlineoverridevirtual |
Implements Botan::EMSA.
Definition at line 79 of file emsa_pkcs1.h.
|
overridevirtual |
|
overridevirtual |
Add more data to the signature computation
| input | some data |
| length | length of input in bytes |
Implements Botan::EMSA.
Definition at line 125 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 149 of file emsa_pkcs1.cpp.
1.8.9.1