|
Botan 1.10.17
|
#include <eac_obj.h>
Public Member Functions | |
| SecureVector< byte > | BER_encode () const |
| bool | check_signature (class Public_Key &key) const |
| bool | check_signature (class Public_Key &key, const MemoryRegion< byte > &sig) const |
| virtual void | encode (Pipe &pipe, X509_Encoding encoding=PEM) const =0 |
| SecureVector< byte > | get_concat_sig () const |
| std::string | PEM_encode () const |
| AlgorithmIdentifier | signature_algorithm () const |
| virtual SecureVector< byte > | tbs_data () const =0 |
Protected Member Functions | |
| void | do_decode () |
| void | init (DataSource &in) |
| virtual | ~EAC1_1_obj () |
Protected Attributes | |
| ECDSA_Signature | m_sig |
| std::string | PEM_label_pref |
| std::vector< std::string > | PEM_labels_allowed |
| AlgorithmIdentifier | sig_algo |
| SecureVector< byte > | tbs_bits |
TR03110 v1.1 EAC CV Certificate
|
inlineprotectedvirtual |
|
inherited |
BER encode this object.
Definition at line 19 of file signed_obj.cpp.
References encode(), Botan::Pipe::end_msg(), Botan::RAW_BER, Botan::Pipe::read_all(), and Botan::Pipe::start_msg().
Referenced by Botan::CVC_EAC::create_ado_req(), and encode().
|
inline |
Definition at line 30 of file eac_obj.h.
References Botan::EAC_Signed_Object::check_signature(), Botan::ECDSA_Signature::DER_encode(), and m_sig.
|
inherited |
Check the signature of this object.
| key | the public key associated with this signed object |
| sig | the signature we are checking |
Definition at line 48 of file signed_obj.cpp.
References Botan::Public_Key::algo_name(), Botan::OIDS::lookup(), Botan::AlgorithmIdentifier::oid, sig_algo, and Botan::split_on().
Referenced by Botan::EAC1_1_obj< Derived >::check_signature(), and get_concat_sig().
|
protectedinherited |
Definition at line 79 of file signed_obj.cpp.
|
pure virtualinherited |
Write this object DER encoded into a specified pipe.
| pipe | the pipe to write the encoded object to |
| encoding | the encoding type to use |
Implemented in Botan::EAC1_1_ADO, Botan::EAC1_1_gen_CVC< Derived >, Botan::EAC1_1_gen_CVC< EAC1_1_CVC >, and Botan::EAC1_1_gen_CVC< EAC1_1_Req >.
References BER_encode(), Botan::PEM, and PEM_encode().
Referenced by BER_encode(), and PEM_encode().
|
inlinevirtual |
Return the signature as a concatenation of the encoded parts.
Implements Botan::EAC_Signed_Object.
Definition at line 27 of file eac_obj.h.
References Botan::ECDSA_Signature::get_concatenation(), and m_sig.
Referenced by Botan::EAC1_1_ADO::operator==(), Botan::EAC1_1_CVC::operator==(), and Botan::EAC1_1_Req::operator==().
|
inlineprotected |
Definition at line 38 of file eac_obj.h.
References Botan::Decoding_Error::Decoding_Error(), m_sig, Botan::EAC_Signed_Object::PEM_label_pref, and Botan::EAC_Signed_Object::tbs_bits.
|
inherited |
PEM encode this object.
Definition at line 31 of file signed_obj.cpp.
References encode(), Botan::Pipe::end_msg(), Botan::PEM, Botan::Pipe::read_all_as_string(), and Botan::Pipe::start_msg().
Referenced by encode().
|
inherited |
Get the signature algorithm identifier used to sign this object.
Definition at line 43 of file signed_obj.cpp.
References sig_algo.
Referenced by Botan::CVC_EAC::create_ado_req(), get_concat_sig(), Botan::DE_EAC::link_cvca(), and Botan::DE_EAC::sign_request().
|
pure virtualinherited |
Get the TBS (to-be-signed) data in this object.
Implemented in Botan::EAC1_1_ADO, Botan::EAC1_1_gen_CVC< Derived >, Botan::EAC1_1_gen_CVC< EAC1_1_CVC >, and Botan::EAC1_1_gen_CVC< EAC1_1_Req >.
|
protected |
Definition at line 36 of file eac_obj.h.
Referenced by check_signature(), Botan::EAC1_1_ADO::encode(), Botan::EAC1_1_gen_CVC< Derived >::encode(), get_concat_sig(), and init().
|
protectedinherited |
Definition at line 87 of file signed_obj.h.
Referenced by Botan::EAC1_1_obj< Derived >::init().
|
protectedinherited |
Definition at line 88 of file signed_obj.h.
|
protectedinherited |
Definition at line 85 of file signed_obj.h.
Referenced by check_signature(), and signature_algorithm().
|
protectedinherited |
Definition at line 86 of file signed_obj.h.
Referenced by Botan::EAC1_1_gen_CVC< Derived >::encode(), Botan::EAC1_1_obj< Derived >::init(), Botan::EAC1_1_gen_CVC< Derived >::make_signed(), and Botan::EAC1_1_gen_CVC< Derived >::tbs_data().