aboutsummaryrefslogtreecommitdiffstats
path: root/src/handshake/noise.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/handshake/noise.rs')
-rw-r--r--src/handshake/noise.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/handshake/noise.rs b/src/handshake/noise.rs
index a93d544..d66304c 100644
--- a/src/handshake/noise.rs
+++ b/src/handshake/noise.rs
@@ -9,7 +9,6 @@ use hmac::Hmac;
// AEAD (from libsodium)
use sodiumoxide::crypto::aead::chacha20poly1305;
-use rand::rngs::OsRng;
use rand::{CryptoRng, RngCore};
use generic_array::typenum::*;
@@ -323,7 +322,6 @@ pub fn create_response<T: Copy, R: RngCore + CryptoRng>(
state: TemporaryState, // state from "consume_initiation"
msg: &mut NoiseResponse, // resulting response
) -> Result<KeyPair, HandshakeError> {
-
// unpack state
let (receiver, eph_r_pk, hs, ck) = state;