Botan
2.1.0
Crypto and TLS for C++11
|
#include <emsa_pkcs1.h>
Public Member Functions | |
EMSA * | clone () override |
EMSA_PKCS1v15 (HashFunction *hash) | |
secure_vector< uint8_t > | encoding_of (const secure_vector< uint8_t > &, size_t, RandomNumberGenerator &rng) 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 21 of file emsa_pkcs1.h.
|
explicit |
hash | the hash function to use |
Definition at line 83 of file emsa_pkcs1.cpp.
References Botan::pkcs_hash_id().
|
inlineoverridevirtual |
Implements Botan::EMSA.
Definition at line 29 of file emsa_pkcs1.h.
References m_hash.
|
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 54 of file emsa_pkcs1.cpp.
|
overridevirtual |
|
overridevirtual |
Add more data to the signature computation
input | some data |
length | length of input in bytes |
Implements Botan::EMSA.
Definition at line 43 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 65 of file emsa_pkcs1.cpp.