diff options
author | Jack Lloyd <[email protected]> | 2019-05-20 16:15:16 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-05-20 16:15:16 -0400 |
commit | 4658a632c1a2e01c9b4487aa19269fc627108ce4 (patch) | |
tree | 9a4bdb9fa1caa6681d670e5b4b8b68d57008ccea /src/lib/tls/msg_client_kex.cpp | |
parent | 81ea951957a133fcb7c8a6645312edf7904b26e9 (diff) | |
parent | 67df17d31d61f013d537abc7744f707435351125 (diff) |
Merge GH #1954 Add BoGo test shim
Diffstat (limited to 'src/lib/tls/msg_client_kex.cpp')
-rw-r--r-- | src/lib/tls/msg_client_kex.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/tls/msg_client_kex.cpp b/src/lib/tls/msg_client_kex.cpp index b3dff072e..f55568c8e 100644 --- a/src/lib/tls/msg_client_kex.cpp +++ b/src/lib/tls/msg_client_kex.cpp @@ -256,6 +256,7 @@ Client_Key_Exchange::Client_Key_Exchange(const std::vector<uint8_t>& contents, TLS_Data_Reader reader("ClientKeyExchange", contents); const std::vector<uint8_t> encrypted_pre_master = reader.get_range<uint8_t>(2, 0, 65535); + reader.assert_done(); PK_Decryptor_EME decryptor(*server_rsa_kex_key, rng, "PKCS1v15"); @@ -386,6 +387,8 @@ Client_Key_Exchange::Client_Key_Exchange(const std::vector<uint8_t>& contents, */ m_pre_master = rng.random_vec(ka_key->public_value().size()); } + + reader.assert_done(); } else throw Internal_Error("Client_Key_Exchange: Unknown key exchange negotiated"); |