|
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_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) |
PKCS #1 v1.5 signature padding aka PKCS #1 block type 1 aka EMSA3 from IEEE 1363
Definition at line 27 of file pkcs1_sig_padding.h.
|
explicit |
Definition at line 81 of file pkcs1_sig_padding.cpp.
References Botan::acknowledge_always_deterministic(), Botan::SignaturePaddingScheme::create_or_throw(), and Botan::pkcs_hash_id().
|
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 56 of file pkcs1_sig_padding.cpp.
|
overridevirtual |
Return the hash function being used by this padding scheme
Implements Botan::SignaturePaddingScheme.
Definition at line 87 of file pkcs1_sig_padding.cpp.
|
overridevirtual |
Implements Botan::SignaturePaddingScheme.
Definition at line 91 of file pkcs1_sig_padding.cpp.
References Botan::fmt().
|
overridevirtual |
Implements Botan::SignaturePaddingScheme.
Definition at line 52 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 48 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 66 of file pkcs1_sig_padding.cpp.
References Botan::constant_time_compare().