|
Botan
2.1.0
Crypto and TLS for C++11
|
#include <asn1_attribute.h>
Public Member Functions | |
| Attribute ()=default | |
| Attribute (const OID &, const std::vector< uint8_t > &) | |
| Attribute (const std::string &, const std::vector< uint8_t > &) | |
| void | decode_from (class BER_Decoder &from) override |
| void | encode_into (class DER_Encoder &to) const override |
Public Attributes | |
| OID | oid |
| std::vector< uint8_t > | parameters |
Definition at line 20 of file asn1_attribute.h.
|
default |
| Botan::Attribute::Attribute | ( | const OID & | attr_oid, |
| const std::vector< uint8_t > & | attr_value | ||
| ) |
Definition at line 18 of file asn1_attribute.cpp.
| Botan::Attribute::Attribute | ( | const std::string & | attr_oid, |
| const std::vector< uint8_t > & | attr_value | ||
| ) |
Definition at line 24 of file asn1_attribute.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 44 of file asn1_attribute.cpp.
References Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), oid, parameters, Botan::BER_Decoder::raw_bytes(), Botan::SEQUENCE, Botan::SET, 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 31 of file asn1_attribute.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), oid, parameters, Botan::DER_Encoder::raw_bytes(), Botan::SEQUENCE, Botan::SET, and Botan::DER_Encoder::start_cons().
| OID Botan::Attribute::oid |
Definition at line 27 of file asn1_attribute.h.
Referenced by decode_from(), and encode_into().
| std::vector<uint8_t> Botan::Attribute::parameters |
Definition at line 30 of file asn1_attribute.h.
Referenced by decode_from(), and encode_into().
1.8.9.1