|
Botan 1.10.17
|
#include <tls_messages.h>
Public Member Functions | |
| Public_Key * | key () const |
| void | send (Record_Writer &, HandshakeHash &) const |
| Server_Key_Exchange (const MemoryRegion< byte > &buf) | |
| Server_Key_Exchange (RandomNumberGenerator &rng, Record_Writer &, const Public_Key *, const Private_Key *, const MemoryRegion< byte > &, const MemoryRegion< byte > &, HandshakeHash &) | |
| 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(), Botan::HandshakeMessage::send(), Botan::PK_Signer::signature(), and Botan::PK_Signer::update().
|
inline |
Definition at line 270 of file tls_messages.h.
| Public_Key * Botan::Server_Key_Exchange::key | ( | ) | const |
Return the public key
Definition at line 136 of file s_kex.cpp.
References Botan::DH_PublicKey::DH_PublicKey(), Botan::DL_Group::DL_Group(), Botan::Internal_Error::Internal_Error(), and Botan::RSA_PublicKey::RSA_PublicKey().
Referenced by verify().
|
inherited |
Definition at line 16 of file hello.cpp.
References Botan::Record_Writer::flush(), Botan::get_byte(), Botan::HANDSHAKE, Botan::Record_Writer::send(), Botan::MemoryRegion< T >::size(), 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 Botan::Server_Key_Exchange::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::PK_Verifier::check_signature(), Botan::DER_SEQUENCE, Botan::IEEE_1363, key(), Botan::X509_Certificate::subject_public_key(), and Botan::PK_Verifier::update().