8#include <botan/asn1_obj.h>
10#include <botan/ber_dec.h>
11#include <botan/der_enc.h>
19 m_oid(oid), m_parameters(param) {}
31 const uint8_t DER_NULL[] = {0x05, 0x00};
34 m_parameters.assign(DER_NULL, DER_NULL + 2);
42 m_oid(
OID::from_string(oid)), m_parameters() {
43 const uint8_t DER_NULL[] = {0x05, 0x00};
46 m_parameters.assign(DER_NULL, DER_NULL + 2);
51 return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
void decode_from(BER_Decoder &) override
void encode_into(DER_Encoder &) const override
bool parameters_are_null_or_empty() const
const std::vector< uint8_t > & parameters() const
bool parameters_are_null() const
AlgorithmIdentifier()=default
BER_Decoder & decode(bool &out)
BER_Decoder & raw_bytes(std::vector< uint8_t, Alloc > &out)
BER_Decoder start_sequence()
DER_Encoder & start_sequence()
DER_Encoder & raw_bytes(const uint8_t val[], size_t len)
DER_Encoder & encode(bool b)
bool operator!=(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
bool operator==(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)