Botan 3.6.1
Crypto and TLS for C&
|
#include <tls_messages.h>
Public Member Functions | |
Certificate_Verify ()=default | |
Certificate_Verify (const std::vector< uint8_t > &buf) | |
Certificate_Verify_12 (Handshake_IO &io, Handshake_State &state, const Policy &policy, RandomNumberGenerator &rng, const Private_Key *key) | |
std::vector< uint8_t > | serialize () const override |
Signature_Scheme | signature_scheme () const |
Handshake_Type | type () const override |
std::string | type_string () const |
bool | verify (const X509_Certificate &cert, const Handshake_State &state, const Policy &policy) const |
virtual Handshake_Type | wire_type () const |
Protected Attributes | |
Signature_Scheme | m_scheme |
std::vector< uint8_t > | m_signature |
Certificate Verify Message
Definition at line 777 of file tls_messages.h.
Botan::TLS::Certificate_Verify_12::Certificate_Verify_12 | ( | Handshake_IO & | io, |
Handshake_State & | state, | ||
const Policy & | policy, | ||
RandomNumberGenerator & | rng, | ||
const Private_Key * | key ) |
Definition at line 27 of file msg_cert_verify.cpp.
References BOTAN_ASSERT_NONNULL, Botan::TLS::Handshake_State::callbacks(), Botan::TLS::Handshake_State::choose_sig_format(), Botan::TLS::Handshake_Hash::get_contents(), Botan::TLS::Handshake_State::hash(), Botan::TLS::Certificate_Verify::m_scheme, Botan::TLS::Certificate_Verify::m_signature, Botan::TLS::Handshake_IO::send(), Botan::TLS::Callbacks::tls_sign_message(), and Botan::TLS::Handshake_Hash::update().
|
default |
Botan::TLS::Certificate_Verify::Certificate_Verify | ( | const std::vector< uint8_t > & | buf | ) |
Definition at line 764 of file msg_cert_verify.cpp.
|
overridevirtualinherited |
Implements Botan::TLS::Handshake_Message.
Definition at line 60 of file msg_cert_verify.cpp.
References BOTAN_ASSERT_NOMSG, Botan::get_byte(), Botan::TLS::Signature_Scheme::is_set(), Botan::TLS::Certificate_Verify::m_scheme, Botan::TLS::Certificate_Verify::m_signature, and Botan::TLS::Signature_Scheme::wire_code().
|
inlineinherited |
Definition at line 762 of file tls_messages.h.
|
inlineoverridevirtualinherited |
Implements Botan::TLS::Handshake_Message.
Definition at line 760 of file tls_messages.h.
|
inherited |
Definition at line 19 of file tls_handshake_state.cpp.
References Botan::TLS::handshake_type_to_string(), and Botan::TLS::Handshake_Message::type().
bool Botan::TLS::Certificate_Verify_12::verify | ( | const X509_Certificate & | cert, |
const Handshake_State & | state, | ||
const Policy & | policy ) const |
Check the signature on a certificate verify message
cert | the purported certificate |
state | the handshake state |
policy | the TLS policy |
Definition at line 81 of file msg_cert_verify.cpp.
References BOTAN_UNUSED, Botan::TLS::Handshake_State::callbacks(), Botan::TLS::Policy::check_peer_key_acceptable(), Botan::TLS::Handshake_State::client_hello(), Botan::TLS::Handshake_Hash::get_contents(), Botan::TLS::Handshake_State::hash(), Botan::TLS::Certificate_Verify::m_scheme, Botan::TLS::Certificate_Verify::m_signature, Botan::TLS::Handshake_State::parse_sig_format(), Botan::X509_Certificate::subject_public_key(), and Botan::TLS::Callbacks::tls_verify_message().
|
inlinevirtualinherited |
Reimplemented in Botan::TLS::Hello_Retry_Request.
Definition at line 39 of file tls_handshake_msg.h.
Referenced by Botan::TLS::Stream_Handshake_IO::send().
|
protectedinherited |
Definition at line 771 of file tls_messages.h.
Referenced by Botan::TLS::Certificate_Verify::Certificate_Verify(), Certificate_Verify_12(), Botan::TLS::Certificate_Verify_13::Certificate_Verify_13(), Botan::TLS::Certificate_Verify_13::Certificate_Verify_13(), Botan::TLS::Certificate_Verify::serialize(), verify(), and Botan::TLS::Certificate_Verify_13::verify().
|
protectedinherited |
Definition at line 770 of file tls_messages.h.
Referenced by Botan::TLS::Certificate_Verify::Certificate_Verify(), Certificate_Verify_12(), Botan::TLS::Certificate_Verify_13::Certificate_Verify_13(), Botan::TLS::Certificate_Verify::serialize(), verify(), and Botan::TLS::Certificate_Verify_13::verify().