Botan
1.10.9
|
Functions | |
EAC1_1_ADO | create_ado_req (Private_Key const &key, EAC1_1_Req const &req, ASN1_Car const &car, RandomNumberGenerator &rng) |
EAC1_1_Req | create_cvc_req (Private_Key const &key, ASN1_Chr const &chr, std::string const &hash_alg, RandomNumberGenerator &rng) |
EAC1_1_CVC | create_self_signed_cert (Private_Key const &key, EAC1_1_CVC_Options const &opt, RandomNumberGenerator &rng) |
This namespace represents general EAC 1.1 convenience functions.
EAC1_1_ADO BOTAN_DLL Botan::CVC_EAC::create_ado_req | ( | Private_Key const & | priv_key, |
EAC1_1_Req const & | req, | ||
ASN1_Car const & | car, | ||
RandomNumberGenerator & | rng | ||
) |
Create an ADO from a request object.
priv_key | the private key used to sign the ADO |
req | the request forming the body of the ADO |
car | the CAR forming the body of the ADO, i.e. the CHR of the entity associated with the provided private key |
rng | the rng to use |
Definition at line 156 of file cvc_self.cpp.
References Botan::EAC_Signed_Object::BER_encode(), Botan::DER_Encoder::encode(), Botan::DER_Encoder::get_contents(), Botan::EAC1_1_ADO::make_signed(), Botan::AlgorithmIdentifier::oid, and Botan::EAC_Signed_Object::signature_algorithm().
EAC1_1_Req BOTAN_DLL Botan::CVC_EAC::create_cvc_req | ( | Private_Key const & | priv_key, |
ASN1_Chr const & | chr, | ||
std::string const & | hash_alg, | ||
RandomNumberGenerator & | rng | ||
) |
Create a CVC request. The key encoding will be according to the provided private key.
priv_key | the private key associated with the requesting entity |
chr | the chr to appear in the certificate (to be provided without sequence number) |
hash_alg | the string defining the hash algorithm to be used for the creation of the signature |
rng | the rng to use |
Definition at line 119 of file cvc_self.cpp.
References Botan::ECDSA_PublicKey::algo_name(), Botan::APPLICATION, Botan::DER_Encoder::encode(), Botan::DER_Encoder::get_contents(), Botan::OIDS::lookup(), Botan::EAC1_1_gen_CVC< Derived >::make_signed(), Botan::OCTET_STRING, Botan::AlgorithmIdentifier::oid, Botan::MemoryRegion< T >::push_back(), Botan::DER_Encoder::raw_bytes(), and Botan::AlgorithmIdentifier::USE_NULL_PARAM.
Referenced by Botan::DE_EAC::create_cvc_req().
EAC1_1_CVC BOTAN_DLL Botan::CVC_EAC::create_self_signed_cert | ( | Private_Key const & | key, |
EAC1_1_CVC_Options const & | opts, | ||
RandomNumberGenerator & | rng | ||
) |
Create a selfsigned CVCA
rng | the rng to use |
key | the ECDSA private key to be used to sign the certificate |
opts | used to set several parameters. Necessary are: car, holder_auth_templ, hash_alg, ced, cex and hash_alg |
Definition at line 90 of file cvc_self.cpp.
References Botan::ECDSA_PublicKey::algo_name(), Botan::EAC1_1_CVC_Options::car, Botan::EAC1_1_CVC_Options::ced, Botan::EAC1_1_CVC_Options::cex, Botan::EAC1_1_CVC_Options::hash_alg, Botan::EAC1_1_CVC_Options::holder_auth_templ, Botan::OIDS::lookup(), Botan::make_cvc_cert(), Botan::AlgorithmIdentifier::USE_NULL_PARAM, and Botan::ASN1_EAC_String::value().
Referenced by Botan::DE_EAC::create_cvca().