Botan 3.5.0
Crypto and TLS for C&
|
#include <emsa_pkcs1.h>
Public Member Functions | |
EMSA_PKCS1v15 (std::unique_ptr< HashFunction > hash) | |
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) |
PKCS #1 v1.5 signature padding aka PKCS #1 block type 1 aka EMSA3 from IEEE 1363
Definition at line 21 of file emsa_pkcs1.h.
|
explicit |
hash | the hash function to use |
Definition at line 72 of file emsa_pkcs1.cpp.
References 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 50 of file emsa_pkcs1.cpp.
|
inlineoverridevirtual |
Return the hash function being used by this padding scheme
Implements Botan::EMSA.
Definition at line 38 of file emsa_pkcs1.h.
|
inlineoverridevirtual |
Implements Botan::EMSA.
Definition at line 36 of file emsa_pkcs1.h.
|
overridevirtual |
Implements Botan::EMSA.
Definition at line 46 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 42 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 60 of file emsa_pkcs1.cpp.