mirror of
https://github.com/Noratrieb/tls.git
synced 2026-01-15 17:15:04 +01:00
crypto...
This commit is contained in:
parent
b3b5e4c4ae
commit
b4faf77116
5 changed files with 298 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
mod crypt;
|
||||
pub mod proto;
|
||||
|
||||
use std::{
|
||||
|
|
@ -58,7 +59,6 @@ impl<W: Read + Write> ClientSetupConnection<W> {
|
|||
proto::ExtensionCH::SupportedGroups {
|
||||
groups: vec![proto::NamedGroup::X25519].into(),
|
||||
},
|
||||
// passing this doesnt work and shows up as TLSv1.2 in wireshark and gives a handshake error
|
||||
proto::ExtensionCH::KeyShare {
|
||||
entries: vec![proto::KeyShareEntry::X25519 {
|
||||
len: public.as_bytes().len().try_into().unwrap(),
|
||||
|
|
@ -179,6 +179,8 @@ impl<W: Read + Write> ClientSetupConnection<W> {
|
|||
|
||||
println!("we have established a shared secret. dont leak it!! anywhere here is it: {:x?}", dh_shared_secret.as_bytes());
|
||||
|
||||
dbg!(proto::TLSPlaintext::read(&mut stream))?;
|
||||
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue