Driver: Remove legacy encryption algorithms.

There is probably some followup cleanup which can be done, but keeping
the general structure intact might help if there are future changes on
available (non-E2EE) algorithms.
This commit is contained in:
Kyle Simpson
2025-02-21 16:02:16 +00:00
parent 47cf0b27eb
commit f05b262dfe
8 changed files with 44 additions and 273 deletions

View File

@@ -15,7 +15,6 @@ use crate::{
test_utils,
tracks::LoopState,
};
use crypto_secretbox::XSalsa20Poly1305;
use flume::Receiver;
use std::{io::Cursor, net::UdpSocket, sync::Arc};
use tokio::runtime::Handle;
@@ -63,11 +62,8 @@ impl Mixer {
.connect("127.0.0.1:5316")
.expect("Failed to connect to local dest port.");
#[allow(deprecated)]
let mode = CryptoMode::Normal;
let cipher = mode
.cipher_from_key(&[0u8; XSalsa20Poly1305::KEY_SIZE])
.unwrap();
let mode = CryptoMode::Aes256Gcm;
let cipher = mode.cipher_from_key(&[0u8; 32]).unwrap();
let crypto_state = mode.into();
#[cfg(feature = "receive")]