Botan
1.10.9
|
Functions | |
EAC1_1_Req | create_cvc_req (Private_Key const &prkey, ASN1_Chr const &chr, std::string const &hash_alg, RandomNumberGenerator &rng) |
EAC1_1_CVC | create_cvca (Private_Key const &key, std::string const &hash, ASN1_Car const &car, bool iris, bool fingerpr, u32bit cvca_validity_months, RandomNumberGenerator &rng) |
EAC1_1_CVC | link_cvca (EAC1_1_CVC const &signer, Private_Key const &key, EAC1_1_CVC const &signee, RandomNumberGenerator &rng) |
EAC1_1_CVC | sign_request (EAC1_1_CVC const &signer_cert, Private_Key const &key, EAC1_1_Req const &signee, u32bit seqnr, u32bit seqnr_len, bool domestic, u32bit dvca_validity_months, u32bit ca_is_validity_months, RandomNumberGenerator &rng) |
This namespace represents EAC 1.1 CVC convenience functions following the specific german requirements.
EAC1_1_Req BOTAN_DLL Botan::DE_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 implicitCA.
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 | a random number generator |
Definition at line 317 of file cvc_self.cpp.
References Botan::CVC_EAC::create_cvc_req(), Botan::EC_DOMPAR_ENC_IMPLICITCA, and Botan::EC_PublicKey::set_parameter_encoding().
EAC1_1_CVC BOTAN_DLL Botan::DE_EAC::create_cvca | ( | Private_Key const & | priv_key, |
std::string const & | hash, | ||
ASN1_Car const & | car, | ||
bool | iris, | ||
bool | fingerpr, | ||
u32bit | cvca_validity_months, | ||
RandomNumberGenerator & | rng | ||
) |
Create a CVCA certificate.
priv_key | the private key associated with the CVCA certificate to be created |
hash | the string identifying the hash algorithm to be used for signing the certificate to be created |
car | the CAR of the certificate to be created |
iris | indicates whether the entity associated with the certificate shall be entitled to read the biometrical iris image |
fingerpr | indicates whether the entity associated with the certificate shall be entitled to read the biometrical fingerprint image |
cvca_validity_months | length of time in months this will be valid |
rng | a random number generator |
Definition at line 183 of file cvc_self.cpp.
References Botan::EAC_Time::add_months(), Botan::EAC1_1_CVC_Options::car, Botan::EAC1_1_CVC_Options::ced, Botan::EAC1_1_CVC_Options::cex, Botan::CVC_EAC::create_self_signed_cert(), Botan::EAC1_1_CVC_Options::hash_alg, Botan::EAC1_1_CVC_Options::holder_auth_templ, and Botan::system_time().
EAC1_1_CVC BOTAN_DLL Botan::DE_EAC::link_cvca | ( | EAC1_1_CVC const & | signer, |
Private_Key const & | priv_key, | ||
EAC1_1_CVC const & | to_be_signed, | ||
RandomNumberGenerator & | rng | ||
) |
Create a link certificate between two CVCA certificates. The key encoding will be implicitCA.
signer | the cvca certificate associated with the signing entity |
priv_key | the private key associated with the signer |
to_be_signed | the certificate which whose CAR/CHR will be the holder of the link certificate |
rng | a random number generator |
Definition at line 208 of file cvc_self.cpp.
References Botan::EAC_Time::as_string(), Botan::EC_DOMPAR_ENC_EXPLICIT, Botan::EAC1_1_CVC::get_car(), Botan::EAC1_1_CVC::get_cex(), Botan::EAC1_1_CVC::get_chat_value(), Botan::EAC1_1_gen_CVC< Derived >::get_chr(), Botan::make_cvc_cert(), Botan::AlgorithmIdentifier::oid, rng, Botan::EC_PublicKey::set_parameter_encoding(), Botan::EAC_Signed_Object::signature_algorithm(), Botan::EAC1_1_gen_CVC< Derived >::subject_public_key(), and Botan::system_time().
EAC1_1_CVC BOTAN_DLL Botan::DE_EAC::sign_request | ( | EAC1_1_CVC const & | signer_cert, |
Private_Key const & | priv_key, | ||
EAC1_1_Req const & | req, | ||
u32bit | seqnr, | ||
u32bit | seqnr_len, | ||
bool | domestic, | ||
u32bit | dvca_validity_months, | ||
u32bit | ca_is_validity_months, | ||
RandomNumberGenerator & | rng | ||
) |
Sign a CVC request.
signer_cert | the certificate of the signing entity |
priv_key | the private key of the signing entity |
req | the request to be signed |
seqnr | the sequence number of the certificate to be created |
seqnr_len | the number of digits the sequence number will be encoded in |
domestic | indicates whether to sign a domestic or a foreign certificate: set to true for domestic |
dvca_validity_months | validity period in months |
ca_is_validity_months | validity period in months |
rng | a random number generator |
Definition at line 249 of file cvc_self.cpp.
References Botan::EAC_Time::add_months(), Botan::EC_DOMPAR_ENC_IMPLICITCA, Botan::EAC1_1_CVC::get_chat_value(), Botan::EAC1_1_gen_CVC< Derived >::get_chr(), Botan::ASN1_EAC_String::iso_8859(), Botan::make_cvc_cert(), Botan::AlgorithmIdentifier::oid, Botan::EC_PublicKey::set_parameter_encoding(), Botan::EAC_Signed_Object::signature_algorithm(), Botan::EAC1_1_gen_CVC< Derived >::subject_public_key(), Botan::system_time(), Botan::to_string(), and Botan::ASN1_EAC_String::value().