8#include <botan/cvc_cert.h>
34void EAC1_1_CVC::force_decode()
54 if(enc_chat_val.
size() != 1)
55 throw Decoding_Error(
"CertificateHolderAuthorizationValue was not of length 1");
62 m_chat_val = enc_chat_val[0];
102 byte holder_auth_templ,
109 enc_chat_val.
push_back(holder_auth_templ);
std::string iso_8859() const
DER_Encoder & start_cons(ASN1_Tag type_tag, ASN1_Tag class_tag=UNIVERSAL)
DER_Encoder & raw_bytes(const byte val[], size_t len)
SecureVector< byte > get_contents()
DER_Encoder & encode(bool b)
EAC1_1_CVC(DataSource &source)
u32bit get_chat_value() const
bool operator==(const EAC1_1_CVC &) const
static SecureVector< byte > build_cert_body(MemoryRegion< byte > const &tbs)
SecureVector< byte > tbs_data() const
static MemoryVector< byte > make_signed(PK_Signer &signer, const MemoryRegion< byte > &tbs_bits, RandomNumberGenerator &rng)
void init(DataSource &in)
SecureVector< byte > get_concat_sig() const
SecureVector< byte > tbs_bits
AlgorithmIdentifier sig_algo
std::string lookup(const OID &oid)
ECDSA_PublicKey * decode_eac1_1_key(const MemoryRegion< byte > &, AlgorithmIdentifier &)
EAC1_1_CVC make_cvc_cert(PK_Signer &signer, MemoryRegion< byte > const &public_key, ASN1_Car const &car, ASN1_Chr const &chr, byte holder_auth_templ, ASN1_Ced ced, ASN1_Cex cex, RandomNumberGenerator &rng)
Decoding_Error(const std::string &name)
Internal_Error(const std::string &err)