|
Botan
2.13.0
Crypto and TLS for C++11
|
#include <alg_id.h>
Public Types | |
| enum | Encoding_Option { USE_NULL_PARAM, USE_EMPTY_PARAM } |
Public Member Functions | |
| AlgorithmIdentifier ()=default | |
| AlgorithmIdentifier (const OID &oid, Encoding_Option enc) | |
| AlgorithmIdentifier (const std::string &oid_name, Encoding_Option enc) | |
| AlgorithmIdentifier (const OID &oid, const std::vector< uint8_t > ¶ms) | |
| AlgorithmIdentifier (const std::string &oid_name, const std::vector< uint8_t > ¶ms) | |
| std::vector< uint8_t > | BER_encode () const |
| void | decode_from (class BER_Decoder &) override |
| void | encode_into (class DER_Encoder &) const override |
| const OID & | get_oid () const |
| const std::vector< uint8_t > & | get_parameters () const |
Public Attributes | |
| BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES | __pad0__: OID oid |
| std::vector< uint8_t > | parameters |
|
default |
| Botan::AlgorithmIdentifier::AlgorithmIdentifier | ( | const OID & | oid, |
| Encoding_Option | enc | ||
| ) |
| Botan::AlgorithmIdentifier::AlgorithmIdentifier | ( | const std::string & | oid_name, |
| Encoding_Option | enc | ||
| ) |
| Botan::AlgorithmIdentifier::AlgorithmIdentifier | ( | const OID & | oid, |
| const std::vector< uint8_t > & | params | ||
| ) |
Definition at line 18 of file alg_id.cpp.
| Botan::AlgorithmIdentifier::AlgorithmIdentifier | ( | const std::string & | oid_name, |
| const std::vector< uint8_t > & | params | ||
| ) |
Definition at line 27 of file alg_id.cpp.
|
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 16 of file asn1_obj.cpp.
References Botan::ASN1_Object::encode_into().
Referenced by Botan::PSSR::config_for_x509(), 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 108 of file alg_id.cpp.
References Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), parameters, Botan::BER_Decoder::raw_bytes(), Botan::SEQUENCE, and Botan::BER_Decoder::start_cons().
|
overridevirtual |
Encode whatever this object is into to
| to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 97 of file alg_id.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), get_oid(), get_parameters(), Botan::DER_Encoder::raw_bytes(), Botan::SEQUENCE, and Botan::DER_Encoder::start_cons().
|
inline |
Definition at line 37 of file alg_id.h.
Referenced by Botan::X509::create_self_signed_cert(), encode_into(), Botan::X509_Object::hash_used_for_signature(), Botan::OCSP::CertID::is_id_for(), Botan::load_private_key(), Botan::load_public_key(), Botan::operator==(), Botan::pbes2_decrypt(), Botan::X509_Certificate::to_string(), Botan::X509_Object::verify_signature(), Botan::OCSP::Response::verify_signature(), and Botan::X509_CA::X509_CA().
|
inline |
Definition at line 38 of file alg_id.h.
Referenced by Botan::EMSA1::config_for_x509(), Botan::DL_Scheme_PrivateKey::DL_Scheme_PrivateKey(), Botan::EC_PrivateKey::EC_PrivateKey(), Botan::EC_PublicKey::EC_PublicKey(), encode_into(), Botan::GOST_3410_PublicKey::GOST_3410_PublicKey(), Botan::operator==(), and Botan::pbes2_decrypt().
| BOTAN_DEPRECATED_PUBLIC_MEMBER_VARIABLES Botan::AlgorithmIdentifier::__pad0__ |
| std::vector<uint8_t> Botan::AlgorithmIdentifier::parameters |
Definition at line 46 of file alg_id.h.
Referenced by AlgorithmIdentifier(), and decode_from().
1.8.9.1