Botan
1.10.16
|
#include <tls_record.h>
Public Member Functions | |
void | add_input (const byte input[], size_t input_size) |
size_t | get_record (byte &msg_type, MemoryRegion< byte > &buffer) |
SecureVector< byte > | get_record (byte &msg_type) |
Record_Reader () | |
void | reset () |
void | set_keys (const CipherSuite &suite, const SessionKeys &keys, Connection_Side side) |
void | set_version (Version_Code version) |
~Record_Reader () | |
TLS Record Reader
Definition at line 79 of file tls_record.h.
|
inline |
Definition at line 102 of file tls_record.h.
|
inline |
Definition at line 104 of file tls_record.h.
void Botan::Record_Reader::add_input | ( | const byte | input[], |
size_t | input_size | ||
) |
Definition at line 111 of file rec_read.cpp.
References Botan::SecureQueue::write().
Referenced by Botan::TLS_Server::close(), and Botan::TLS_Client::is_closed().
size_t Botan::Record_Reader::get_record | ( | byte & | msg_type, |
MemoryRegion< byte > & | buffer | ||
) |
msg_type | (output variable) |
buffer | (output variable) |
Definition at line 119 of file rec_read.cpp.
References Botan::ALERT, Botan::APPLICATION_DATA, Botan::BAD_RECORD_MAC, Botan::CHANGE_CIPHER_SPEC, Botan::CLIENT_HELLO_SSLV2, Botan::copy_mem(), Botan::Buffered_Computation::final(), Botan::get_byte(), Botan::HANDSHAKE, Botan::Pipe::LAST_MESSAGE, Botan::make_u16bit(), Botan::SecureQueue::peek(), Botan::Pipe::process_msg(), Botan::PROTOCOL_VERSION, Botan::SecureQueue::read(), Botan::Pipe::read_all(), Botan::MemoryRegion< T >::resize(), Botan::MemoryRegion< T >::size(), Botan::SecureQueue::size(), Botan::SSL_V3, Botan::UNEXPECTED_MESSAGE, Botan::Buffered_Computation::update(), and Botan::Buffered_Computation::update_be().
Referenced by Botan::TLS_Server::close(), and Botan::TLS_Client::is_closed().
SecureVector<byte> Botan::Record_Reader::get_record | ( | byte & | msg_type | ) |
void Botan::Record_Reader::reset | ( | ) |
Definition at line 17 of file rec_read.cpp.
References Botan::Pipe::reset().
Referenced by Botan::TLS_Server::close(), Botan::TLS_Client::is_closed(), and Botan::TLS_Client::~TLS_Client().
void Botan::Record_Reader::set_keys | ( | const CipherSuite & | suite, |
const SessionKeys & | keys, | ||
Connection_Side | side | ||
) |
Definition at line 46 of file rec_read.cpp.
References Botan::Library_State::algorithm_factory(), Botan::Pipe::append(), Botan::block_size_of(), Botan::CipherSuite::cipher_algo(), Botan::CLIENT, Botan::SessionKeys::client_cipher_key(), Botan::SessionKeys::client_iv(), Botan::SessionKeys::client_mac_key(), Botan::DECRYPTION, Botan::get_cipher(), Botan::Global_State_Management::global_state(), Botan::have_block_cipher(), Botan::have_hash(), Botan::have_stream_cipher(), Botan::CipherSuite::mac_algo(), Botan::Algorithm_Factory::make_mac(), Botan::Buffered_Computation::output_length(), Botan::Pipe::reset(), Botan::SessionKeys::server_cipher_key(), Botan::SessionKeys::server_iv(), Botan::SessionKeys::server_mac_key(), and Botan::SymmetricAlgorithm::set_key().
Referenced by Botan::TLS_Server::close(), and Botan::TLS_Client::is_closed().
void Botan::Record_Reader::set_version | ( | Version_Code | version | ) |
Definition at line 34 of file rec_read.cpp.
References Botan::SSL_V3, Botan::TLS_V10, and Botan::TLS_V11.
Referenced by Botan::TLS_Server::close(), and Botan::TLS_Client::is_closed().