Botan 2.19.1
Crypto and TLS for C&
|
#include <tls_messages.h>
Public Member Functions | |
Certificate_Verify (const std::vector< uint8_t > &buf, Protocol_Version version) | |
Certificate_Verify (Handshake_IO &io, Handshake_State &state, const Policy &policy, RandomNumberGenerator &rng, const Private_Key *key) | |
Handshake_Type | type () const override |
std::string | type_string () const |
bool | verify (const X509_Certificate &cert, const Handshake_State &state, const Policy &policy) const |
Certificate Verify Message
Definition at line 460 of file tls_messages.h.
Botan::TLS::Certificate_Verify::Certificate_Verify | ( | Handshake_IO & | io, |
Handshake_State & | state, | ||
const Policy & | policy, | ||
RandomNumberGenerator & | rng, | ||
const Private_Key * | key | ||
) |
Definition at line 22 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::Handshake_IO::send(), Botan::TLS::Callbacks::tls_sign_message(), and Botan::TLS::Handshake_Hash::update().
Botan::TLS::Certificate_Verify::Certificate_Verify | ( | const std::vector< uint8_t > & | buf, |
Protocol_Version | version | ||
) |
Definition at line 43 of file msg_cert_verify.cpp.
References Botan::TLS::TLS_Data_Reader::assert_done(), Botan::TLS::TLS_Data_Reader::get_range(), Botan::TLS::TLS_Data_Reader::get_uint16_t(), and Botan::TLS::Protocol_Version::supports_negotiable_signature_algorithms().
|
inlineoverridevirtual |
Implements Botan::TLS::Handshake_Message.
Definition at line 463 of file tls_messages.h.
References Botan::TLS::CERTIFICATE_VERIFY.
|
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::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 85 of file msg_cert_verify.cpp.
References BOTAN_UNUSED, Botan::TLS::Handshake_State::callbacks(), Botan::TLS::Policy::check_peer_key_acceptable(), Botan::TLS::Handshake_Hash::get_contents(), Botan::TLS::Handshake_State::hash(), Botan::TLS::Handshake_State::parse_sig_format(), Botan::X509_Certificate::subject_public_key(), and Botan::TLS::Callbacks::tls_verify_message().