Botan 3.6.1
Crypto and TLS for C&
|
#include <tls_messages.h>
Public Member Functions | |
Client_Key_Exchange (const std::vector< uint8_t > &buf, const Handshake_State &state, const Private_Key *server_rsa_kex_key, Credentials_Manager &creds, const Policy &policy, RandomNumberGenerator &rng) | |
Client_Key_Exchange (Handshake_IO &io, Handshake_State &state, const Policy &policy, Credentials_Manager &creds, const Public_Key *server_public_key, std::string_view hostname, RandomNumberGenerator &rng) | |
const secure_vector< uint8_t > & | pre_master_secret () const |
const std::optional< std::string > & | psk_identity () const |
Handshake_Type | type () const override |
std::string | type_string () const |
virtual Handshake_Type | wire_type () const |
Client Key Exchange Message
Definition at line 485 of file tls_messages.h.
Botan::TLS::Client_Key_Exchange::Client_Key_Exchange | ( | Handshake_IO & | io, |
Handshake_State & | state, | ||
const Policy & | policy, | ||
Credentials_Manager & | creds, | ||
const Public_Key * | server_public_key, | ||
std::string_view | hostname, | ||
RandomNumberGenerator & | rng ) |
Definition at line 30 of file msg_client_kex.cpp.
References Botan::Asymmetric_Key::algo_name(), Botan::TLS::append_tls_length_value(), Botan::TLS::TLS_Data_Reader::assert_done(), Botan::OctetString::bits_of(), Botan::TLS::Handshake_State::callbacks(), Botan::TLS::Policy::choose_key_exchange_group(), Botan::TLS::Handshake_State::ciphersuite(), Botan::TLS::Handshake_State::client_hello(), Botan::Compressed, Botan::TLS::DH, Botan::TLS::ECDH, Botan::TLS::ECDHE_PSK, Botan::PK_Encryptor::encrypt(), Botan::BigInt::from_bytes(), Botan::TLS::TLS_Data_Reader::get_byte(), Botan::TLS::TLS_Data_Reader::get_range(), Botan::TLS::TLS_Data_Reader::get_string(), Botan::TLS::TLS_Data_Reader::get_uint16_t(), Botan::TLS::Handshake_State::hash(), Botan::TLS::Group_Params::is_ecdh_named_curve(), Botan::TLS::Group_Params::is_x25519(), Botan::TLS::Group_Params::is_x448(), Botan::TLS::Ciphersuite::kex_method(), Botan::OctetString::length(), Botan::TLS::Protocol_Version::major_version(), Botan::TLS::Protocol_Version::minor_version(), Botan::TLS::PSK, Botan::Credentials_Manager::psk(), Botan::Credentials_Manager::psk_identity(), Botan::RandomNumberGenerator::random_vec(), Botan::TLS::TLS_Data_Reader::remaining_bytes(), Botan::TLS::Handshake_IO::send(), Botan::TLS::Handshake_State::server_hello(), Botan::TLS::Handshake_State::server_kex(), Botan::TLS::STATIC_RSA, Botan::CT::strip_leading_zeros(), Botan::TLS::Callbacks::tls_ephemeral_key_agreement(), Botan::TLS::Callbacks::tls_generate_ephemeral_key(), Botan::to_byte_vector(), Botan::Uncompressed, Botan::TLS::Handshake_Hash::update(), and Botan::DL_Group::verify_group().
Botan::TLS::Client_Key_Exchange::Client_Key_Exchange | ( | const std::vector< uint8_t > & | buf, |
const Handshake_State & | state, | ||
const Private_Key * | server_rsa_kex_key, | ||
Credentials_Manager & | creds, | ||
const Policy & | policy, | ||
RandomNumberGenerator & | rng ) |
Definition at line 181 of file msg_client_kex.cpp.
References Botan::Asymmetric_Key::algo_name(), Botan::TLS::append_tls_length_value(), Botan::TLS::TLS_Data_Reader::assert_done(), Botan::OctetString::bits_of(), BOTAN_ASSERT, BOTAN_STATE_CHECK, Botan::TLS::Handshake_State::callbacks(), Botan::TLS::Handshake_State::ciphersuite(), Botan::TLS::Handshake_State::client_hello(), Botan::PK_Decryptor::decrypt_or_random(), Botan::TLS::DH, Botan::TLS::ECDH, Botan::TLS::ECDHE_PSK, Botan::OctetString::empty(), Botan::TLS::TLS_Data_Reader::get_range(), Botan::TLS::TLS_Data_Reader::get_string(), Botan::TLS::Policy::hide_unknown_users(), Botan::TLS::Ciphersuite::kex_method(), Botan::TLS::key_exchange_is_psk(), Botan::OctetString::length(), Botan::TLS::PSK, Botan::Credentials_Manager::psk(), Botan::PK_Key_Agreement_Key::public_value(), Botan::RandomNumberGenerator::random_vec(), Botan::TLS::Handshake_State::server_certs(), Botan::TLS::Handshake_State::server_kex(), Botan::TLS::STATIC_RSA, Botan::CT::strip_leading_zeros(), Botan::TLS::Callbacks::tls_ephemeral_key_agreement(), and Botan::Exception::what().
|
inline |
Definition at line 489 of file tls_messages.h.
|
inline |
Definition at line 494 of file tls_messages.h.
|
inlineoverridevirtual |
Implements Botan::TLS::Handshake_Message.
Definition at line 487 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().
|
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().