|
Botan
2.1.0
Crypto and TLS for C++11
|
#include <alg_id.h>
Public Types | |
| enum | Encoding_Option { USE_NULL_PARAM } |
Public Member Functions | |
| AlgorithmIdentifier ()=default | |
| AlgorithmIdentifier (const OID &, Encoding_Option) | |
| AlgorithmIdentifier (const std::string &, Encoding_Option) | |
| AlgorithmIdentifier (const OID &, const std::vector< uint8_t > &) | |
| AlgorithmIdentifier (const std::string &, const std::vector< uint8_t > &) | |
| void | decode_from (class BER_Decoder &) override |
| void | encode_into (class DER_Encoder &) const override |
Public Attributes | |
| OID | oid |
| std::vector< uint8_t > | parameters |
|
default |
| Botan::AlgorithmIdentifier::AlgorithmIdentifier | ( | const OID & | alg_id, |
| Encoding_Option | option | ||
| ) |
| Botan::AlgorithmIdentifier::AlgorithmIdentifier | ( | const std::string & | alg_id, |
| Encoding_Option | option | ||
| ) |
| Botan::AlgorithmIdentifier::AlgorithmIdentifier | ( | const OID & | alg_id, |
| const std::vector< uint8_t > & | param | ||
| ) |
Definition at line 18 of file alg_id.cpp.
| Botan::AlgorithmIdentifier::AlgorithmIdentifier | ( | const std::string & | alg_id, |
| const std::vector< uint8_t > & | param | ||
| ) |
Definition at line 25 of file alg_id.cpp.
|
overridevirtual |
Decode whatever this object is from from
| from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 101 of file alg_id.cpp.
References Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), oid, 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 90 of file alg_id.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), oid, parameters, Botan::DER_Encoder::raw_bytes(), Botan::SEQUENCE, and Botan::DER_Encoder::start_cons().
| OID Botan::AlgorithmIdentifier::oid |
Definition at line 36 of file alg_id.h.
Referenced by Botan::X509_Object::check_signature(), Botan::choose_sig_format(), decode_from(), Botan::EC_PrivateKey::EC_PrivateKey(), 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(), and Botan::OCSP::Response::verify_signature().
| std::vector<uint8_t> Botan::AlgorithmIdentifier::parameters |
Definition at line 39 of file alg_id.h.
Referenced by AlgorithmIdentifier(), Botan::choose_sig_format(), decode_from(), Botan::DL_Scheme_PrivateKey::DL_Scheme_PrivateKey(), Botan::DL_Scheme_PublicKey::DL_Scheme_PublicKey(), 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().
1.8.9.1