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 constexpr uint8_t DER_NULL[] = {0x05, 0x00};
34 m_parameters.assign(DER_NULL, DER_NULL + 2);
42 constexpr uint8_t DER_NULL[2] = {0x05, 0x00};
45 m_parameters.assign(DER_NULL, DER_NULL + 2);
50 return (m_parameters.size() == 2 && (m_parameters[0] == 0x05) && (m_parameters[1] == 0x00));
void encode_into(DER_Encoder &to) const override
bool parameters_are_null_or_empty() const
const std::vector< uint8_t > & parameters() const
bool parameters_are_null() const
void decode_from(BER_Decoder &from) override
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)