Skip to content

Commit

Permalink
Reduce padding length to 8192 in dialer.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Jan 4, 2025
1 parent 62fd027 commit c1f6ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/sillad-sosistab3/src/dialer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl<D: Dialer> Dialer for SosistabDialer<D> {
let eph_sk = x25519_dalek::EphemeralSecret::random_from_rng(rand::thread_rng());
let eph_pk: x25519_dalek::PublicKey = (&eph_sk).into();
// we generate a whole lot of random padding
let padding_len: u64 = rand::thread_rng().gen_range(0..=32768);
let padding_len: u64 = rand::thread_rng().gen_range(0..=8192);
let padding = vec![0; padding_len as usize].tap_mut(|v| rand::thread_rng().fill_bytes(v));
let padding_hash = blake3::hash(&padding);
// generate the handshake
Expand Down

0 comments on commit c1f6ec7

Please sign in to comment.