Botan
1.10.9
|
#include <tls_messages.h>
Public Member Functions | |
Public_Key * | key () const |
void | send (Record_Writer &, HandshakeHash &) const |
Server_Key_Exchange (RandomNumberGenerator &rng, Record_Writer &, const Public_Key *, const Private_Key *, const MemoryRegion< byte > &, const MemoryRegion< byte > &, HandshakeHash &) | |
Server_Key_Exchange (const MemoryRegion< byte > &buf) | |
Handshake_Type | type () const |
bool | verify (const X509_Certificate &, const MemoryRegion< byte > &, const MemoryRegion< byte > &) const |
Server Key Exchange Message
Definition at line 256 of file tls_messages.h.
Botan::Server_Key_Exchange::Server_Key_Exchange | ( | RandomNumberGenerator & | rng, |
Record_Writer & | writer, | ||
const Public_Key * | kex_key, | ||
const Private_Key * | priv_key, | ||
const MemoryRegion< byte > & | c_random, | ||
const MemoryRegion< byte > & | s_random, | ||
HandshakeHash & | hash | ||
) |
Create a new Server Key Exchange message
Definition at line 22 of file s_kex.cpp.
References Botan::Public_Key::algo_name(), Botan::BigInt::decode(), Botan::DER_SEQUENCE, Botan::DL_Scheme_PublicKey::get_domain(), Botan::IF_Scheme_PublicKey::get_e(), Botan::DL_Group::get_g(), Botan::IF_Scheme_PublicKey::get_n(), Botan::DL_Group::get_p(), Botan::IEEE_1363, Botan::DH_PublicKey::public_value(), and Botan::HandshakeMessage::send().
|
inline |
Definition at line 270 of file tls_messages.h.
Public_Key * Botan::Server_Key_Exchange::key | ( | ) | const |
|
inherited |
Definition at line 16 of file hello.cpp.
References Botan::Record_Writer::flush(), Botan::HANDSHAKE, Botan::Record_Writer::send(), Botan::MemoryRegion< T >::size(), Botan::HandshakeMessage::type(), and Botan::HandshakeHash::update().
Referenced by Botan::Certificate::Certificate(), Botan::Certificate_Req::Certificate_Req(), Botan::Certificate_Verify::Certificate_Verify(), Botan::Client_Hello::Client_Hello(), Botan::Client_Key_Exchange::Client_Key_Exchange(), Botan::Finished::Finished(), Botan::Hello_Request::Hello_Request(), Botan::Server_Hello::Server_Hello(), Botan::Server_Hello_Done::Server_Hello_Done(), and Server_Key_Exchange().
|
inlinevirtual |
Implements Botan::HandshakeMessage.
Definition at line 259 of file tls_messages.h.
References Botan::SERVER_KEX.
bool Botan::Server_Key_Exchange::verify | ( | const X509_Certificate & | cert, |
const MemoryRegion< byte > & | c_random, | ||
const MemoryRegion< byte > & | s_random | ||
) | const |
Verify a Server Key Exchange message
Definition at line 149 of file s_kex.cpp.
References Botan::Public_Key::algo_name(), Botan::DER_SEQUENCE, Botan::IEEE_1363, key(), and Botan::X509_Certificate::subject_public_key().