diff --git a/zssp/src/zssp.rs b/zssp/src/zssp.rs index 682e997d2..2fc9bf72f 100644 --- a/zssp/src/zssp.rs +++ b/zssp/src/zssp.rs @@ -131,18 +131,18 @@ enum Offer { } struct SessionKey { - ratchet_key: Secret, // Key used in derivation of the next session key - //receive_key: Secret, // Receive side AES-GCM key - //send_key: Secret, // Send side AES-GCM key - receive_cipher_pool: [Mutex>; 4], // Pool of reusable sending ciphers + ratchet_key: Secret, // Key used in derivation of the next session key + //receive_key: Secret, // Receive side AES-GCM key + //send_key: Secret, // Send side AES-GCM key + receive_cipher_pool: [Mutex>; 4],// Pool of reusable sending ciphers send_cipher_pool: [Mutex>; 4], // Pool of reusable receiving ciphers - rekey_at_time: i64, // Rekey at or after this time (ticks) - created_at_counter: u64, // Counter at which session was created - rekey_at_counter: u64, // Rekey at or after this counter - expire_at_counter: u64, // Hard error when this counter value is reached or exceeded - ratchet_count: u64, // Number of rekey events - bob: bool, // Was this side "Bob" in this exchange? - confirmed: bool, // Is this key confirmed by the other side? + rekey_at_time: i64, // Rekey at or after this time (ticks) + created_at_counter: u64, // Counter at which session was created + rekey_at_counter: u64, // Rekey at or after this counter + expire_at_counter: u64, // Hard error when this counter value is reached or exceeded + ratchet_count: u64, // Number of rekey events + bob: bool, // Was this side "Bob" in this exchange? + confirmed: bool, // Is this key confirmed by the other side? } impl Context {