Botan 3.5.0
Crypto and TLS for C&
|
#include <emsa_pkcs1.h>
Public Member Functions | |
EMSA_PKCS1v15_Raw () | |
EMSA_PKCS1v15_Raw (std::string_view hash_algo) | |
std::vector< uint8_t > | encoding_of (const std::vector< uint8_t > &, size_t, RandomNumberGenerator &rng) override |
std::string | hash_function () const override |
std::string | name () const override |
std::vector< uint8_t > | raw_data () override |
void | update (const uint8_t[], size_t) override |
bool | verify (const std::vector< uint8_t > &, const std::vector< uint8_t > &, size_t) override |
Static Public Member Functions | |
static std::unique_ptr< EMSA > | create (std::string_view algo_spec) |
static std::unique_ptr< EMSA > | create_or_throw (std::string_view algo_spec) |
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 50 of file emsa_pkcs1.h.
Botan::EMSA_PKCS1v15_Raw::EMSA_PKCS1v15_Raw | ( | ) |
Definition at line 76 of file emsa_pkcs1.cpp.
Botan::EMSA_PKCS1v15_Raw::EMSA_PKCS1v15_Raw | ( | std::string_view | hash_algo | ) |
hash_algo | the digest id for that hash is included in the signature. |
Definition at line 81 of file emsa_pkcs1.cpp.
References Botan::HashFunction::create_or_throw(), and Botan::pkcs_hash_id().
|
staticinherited |
Factory method for EMSA (message-encoding methods for signatures with appendix) objects
algo_spec | the name of the EMSA to create |
Definition at line 35 of file emsa.cpp.
References Botan::SCAN_Name::algo_name(), Botan::SCAN_Name::arg(), Botan::SCAN_Name::arg_as_integer(), Botan::SCAN_Name::arg_count(), Botan::SCAN_Name::arg_count_between(), and Botan::HashFunction::create().
Referenced by Botan::EMSA::create_or_throw().
|
staticinherited |
Factory method for EMSA (message-encoding methods for signatures with appendix) objects
algo_spec | the name of the EMSA to create |
Definition at line 131 of file emsa.cpp.
References Botan::EMSA::create().
|
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 103 of file emsa_pkcs1.cpp.
|
inlineoverridevirtual |
Return the hash function being used by this padding scheme
Implements Botan::EMSA.
Definition at line 68 of file emsa_pkcs1.h.
|
inlineoverridevirtual |
Implements Botan::EMSA.
Definition at line 70 of file emsa_pkcs1.h.
|
overridevirtual |
Implements Botan::EMSA.
Definition at line 92 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 88 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 109 of file emsa_pkcs1.cpp.