8 #include <botan/cvc_cert.h>
9 #include <botan/oids.h>
34 void 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];
77 EAC1_1_CVC::EAC1_1_CVC(
const std::string& in)
102 byte holder_auth_templ,
109 enc_chat_val.
push_back(holder_auth_templ);
void init(DataSource &in)
SecureVector< byte > get_contents()
DER_Encoder & raw_bytes(const byte val[], size_t len)
AlgorithmIdentifier sig_algo
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)
DER_Encoder & encode(bool b)
RandomNumberGenerator * rng
bool operator==(const EAC1_1_CVC &) const
std::string lookup(const OID &oid)
static MemoryVector< byte > make_signed(PK_Signer &signer, const MemoryRegion< byte > &tbs_bits, RandomNumberGenerator &rng)
SecureVector< byte > get_concat_sig() const
SecureVector< byte > tbs_data() const
ECDSA_PublicKey * decode_eac1_1_key(const MemoryRegion< byte > &, AlgorithmIdentifier &)
u32bit get_chat_value() const
DER_Encoder & start_cons(ASN1_Tag type_tag, ASN1_Tag class_tag=UNIVERSAL)
static SecureVector< byte > build_cert_body(MemoryRegion< byte > const &tbs)
SecureVector< byte > tbs_bits
std::string iso_8859() const