comments remove

This commit is contained in:
2026-03-20 15:05:22 +07:00
parent bc8662034f
commit ea3492c6a7
19 changed files with 43 additions and 149 deletions
+1 -2
View File
@@ -56,7 +56,7 @@ pub struct SessionKeys {
pub ecdh: ECDH,
pub auth_key: [u8; 32],
pub current_aead: Option<([u8; 32], [u8; 12], [u8; 32], [u8; 12])>,
is_initiator: bool, // Сохраним роль для правильного возврата параметров
is_initiator: bool,
}
impl SessionKeys {
@@ -159,7 +159,6 @@ impl SessionKeys {
self.auth_key = HKDF::expand_key::<32>(&hkdf, b"auth_key").map_err(|e| e.to_string())?;
// Определяем порядок: (Write Key, Write IV, Read Key, Read IV)
let keys = if is_server {
(s_key, s_iv, c_key, c_iv)
} else {