Botan
1.10.9
|
#include <ecdsa_sig.h>
Public Member Functions | |
MemoryVector< byte > | DER_encode () const |
ECDSA_Signature () | |
ECDSA_Signature (const BigInt &r, const BigInt &s) | |
ECDSA_Signature (const MemoryRegion< byte > &ber) | |
MemoryVector< byte > | get_concatenation () const |
const BigInt & | get_r () const |
const BigInt & | get_s () const |
bool | operator== (const ECDSA_Signature &other) const |
Friends | |
class | ECDSA_Signature_Decoder |
Class representing an ECDSA signature
Definition at line 21 of file ecdsa_sig.h.
|
inline |
Definition at line 26 of file ecdsa_sig.h.
Definition at line 27 of file ecdsa_sig.h.
Botan::ECDSA_Signature::ECDSA_Signature | ( | const MemoryRegion< byte > & | ber | ) |
Definition at line 13 of file ecdsa_sig.cpp.
References Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), Botan::SEQUENCE, Botan::BER_Decoder::start_cons(), and Botan::BER_Decoder::verify_end().
MemoryVector< byte > Botan::ECDSA_Signature::DER_encode | ( | ) | const |
Definition at line 23 of file ecdsa_sig.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), Botan::DER_Encoder::get_contents(), get_r(), get_s(), Botan::SEQUENCE, and Botan::DER_Encoder::start_cons().
Referenced by Botan::EAC1_1_obj< EAC1_1_Req >::check_signature().
MemoryVector< byte > Botan::ECDSA_Signature::get_concatenation | ( | ) | const |
return the r||s
Definition at line 33 of file ecdsa_sig.cpp.
References Botan::BigInt::bytes(), and Botan::BigInt::encode_1363().
Referenced by Botan::EAC1_1_obj< EAC1_1_Req >::get_concat_sig().
|
inline |
Definition at line 32 of file ecdsa_sig.h.
Referenced by DER_encode(), and operator==().
|
inline |
Definition at line 33 of file ecdsa_sig.h.
Referenced by DER_encode(), and operator==().
|
inline |
|
friend |
Definition at line 24 of file ecdsa_sig.h.