Botan 3.5.0
Crypto and TLS for C&
|
#include <pss_params.h>
Public Member Functions | |
std::vector< uint8_t > | BER_encode () const |
void | decode_from (BER_Decoder &from) override |
void | encode_into (DER_Encoder &to) const override |
const AlgorithmIdentifier & | hash_algid () const |
std::string | hash_function () const |
const AlgorithmIdentifier & | mgf_algid () const |
std::string | mgf_function () const |
const AlgorithmIdentifier & | mgf_hash_algid () const |
template<typename Alloc > | |
PSS_Params (const std::vector< uint8_t, Alloc > &vec) | |
PSS_Params (const uint8_t der[], size_t der_len) | |
PSS_Params (std::string_view hash_fn, size_t salt_len) | |
size_t | salt_length () const |
std::vector< uint8_t > | serialize () const |
size_t | trailer_field () const |
Static Public Member Functions | |
static PSS_Params | from_emsa_name (std::string_view emsa_name) |
Definition at line 16 of file pss_params.h.
Botan::PSS_Params::PSS_Params | ( | std::string_view | hash_fn, |
size_t | salt_len ) |
Definition at line 31 of file pss_params.cpp.
Referenced by from_emsa_name().
Botan::PSS_Params::PSS_Params | ( | const uint8_t | der[], |
size_t | der_len ) |
Definition at line 37 of file pss_params.cpp.
References decode_from().
|
inline |
Definition at line 25 of file pss_params.h.
|
inherited |
Return the encoding of this object. This is a convenience method when just one object needs to be serialized. Use DER_Encoder for complicated encodings.
Definition at line 19 of file asn1_obj.cpp.
References Botan::ASN1_Object::encode_into().
Referenced by decode_from(), Botan::Certificate_Store_In_SQL::find_all_certs(), Botan::Certificate_Store_In_SQL::find_cert(), Botan::X509_Certificate::fingerprint(), Botan::Certificate_Store_In_SQL::insert_cert(), Botan::X509_Object::PEM_encode(), and Botan::Certificate_Store_In_SQL::revoke_cert().
|
overridevirtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 67 of file pss_params.cpp.
References Botan::ASN1_Object::BER_encode(), Botan::BER_Decoder::decode(), Botan::BER_Decoder::decode_optional(), Botan::BER_Decoder::end_cons(), Botan::ExplicitContextSpecific, Botan::AlgorithmIdentifier::parameters(), Botan::BER_Decoder::start_sequence(), and Botan::AlgorithmIdentifier::USE_NULL_PARAM.
Referenced by PSS_Params().
|
overridevirtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 48 of file pss_params.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), Botan::DER_Encoder::start_context_specific(), Botan::DER_Encoder::start_sequence(), and trailer_field().
|
static |
Definition at line 18 of file pss_params.cpp.
References Botan::SCAN_Name::algo_name(), Botan::SCAN_Name::arg(), Botan::SCAN_Name::arg_as_integer(), Botan::SCAN_Name::arg_count(), BOTAN_ASSERT_NOMSG, Botan::fmt(), and PSS_Params().
|
inline |
|
inline |
Definition at line 37 of file pss_params.h.
References hash_algid(), Botan::AlgorithmIdentifier::oid(), and Botan::OID::to_formatted_string().
|
inline |
|
inline |
Definition at line 39 of file pss_params.h.
References mgf_algid(), Botan::AlgorithmIdentifier::oid(), and Botan::OID::to_formatted_string().
|
inline |
Definition at line 31 of file pss_params.h.
|
inline |
Definition at line 33 of file pss_params.h.
std::vector< uint8_t > Botan::PSS_Params::serialize | ( | ) | const |
Definition at line 42 of file pss_params.cpp.
References Botan::DER_Encoder::encode().
|
inline |
Definition at line 35 of file pss_params.h.
Referenced by encode_into().