|
Botan 3.14.1
Crypto and TLS for C&
|
#include <pkcs1_sig_padding.h>
Public Member Functions | |
| std::vector< uint8_t > | encoding_of (std::span< const uint8_t > msg, size_t output_bits, RandomNumberGenerator &rng) override |
| std::string | hash_function () const override |
| std::string | name () const override |
| PKCS1v15_Raw_SignaturePaddingScheme (const PK_Signature_Options_Reader &options) | |
| std::vector< uint8_t > | raw_data () override |
| void | update (const uint8_t input[], size_t length) override |
| bool | verify (std::span< const uint8_t > coded, std::span< const uint8_t > raw, size_t key_bits) override |
Static Public Member Functions | |
| static std::unique_ptr< SignaturePaddingScheme > | create_or_throw (const PK_Signature_Options_Reader &options) |
PKCS1v15_SignaturePaddingScheme_Raw which is PKCS1v15_SignaturePaddingScheme 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 55 of file pkcs1_sig_padding.h.
|
explicit |
Definition at line 103 of file pkcs1_sig_padding.cpp.
References Botan::acknowledge_always_deterministic(), BOTAN_ARG_CHECK, Botan::HashFunction::create_or_throw(), Botan::externally_computed_prehash_name(), Botan::pkcs_hash_id(), and Botan::PK_Signature_Options_Reader::using_externally_computed_prehash().
|
staticinherited |
Factory method for SignaturePaddingScheme objects
| options | the algorithm parameters |
Definition at line 36 of file sig_padding.cpp.
References Botan::HashFunction::create(), Botan::fmt(), Botan::PK_Signature_Options_Reader::hash_function_name(), Botan::PK_Signature_Options_Reader::padding(), Botan::PK_Signature_Options_Reader::to_string(), Botan::PK_Signature_Options_Reader::using_externally_computed_prehash(), Botan::PK_Signature_Options_Reader::using_hash(), and Botan::PK_Signature_Options_Reader::using_padding().
Referenced by Botan::ISO_9796_DS2::ISO_9796_DS2(), Botan::ISO_9796_DS3::ISO_9796_DS3(), Botan::PKCS1v15_SignaturePaddingScheme::PKCS1v15_SignaturePaddingScheme(), Botan::PSS_Raw::PSS_Raw(), Botan::PSSR::PSSR(), Botan::X931_SignaturePadding::X931_SignaturePadding(), and ~SignaturePaddingScheme().
|
overridevirtual |
Return the encoding of a message
| msg | the result of raw_data() |
| output_bits | the desired output bit size |
| Random Number Generators | a random number generator |
Implements Botan::SignaturePaddingScheme.
Definition at line 142 of file pkcs1_sig_padding.cpp.
|
inlineoverridevirtual |
Return the hash function being used by this padding scheme
Implements Botan::SignaturePaddingScheme.
Definition at line 69 of file pkcs1_sig_padding.h.
|
overridevirtual |
Implements Botan::SignaturePaddingScheme.
Definition at line 95 of file pkcs1_sig_padding.cpp.
References Botan::fmt().
|
overridevirtual |
Implements Botan::SignaturePaddingScheme.
Definition at line 131 of file pkcs1_sig_padding.cpp.
|
overridevirtual |
Add more data to the signature computation
| input | some data |
| length | length of input in bytes |
Implements Botan::SignaturePaddingScheme.
Definition at line 120 of file pkcs1_sig_padding.cpp.
|
overridevirtual |
Verify the encoding
| encoding | the received (coded) message representative |
| Raw Hash Function | the computed (local, uncoded) message representative |
| key_bits | the size of the key in bits |
Implements Botan::SignaturePaddingScheme.
Definition at line 148 of file pkcs1_sig_padding.cpp.
References Botan::constant_time_compare().