rust-nex/prudplite/src/crypto/insecure.rs

14 lines
247 B
Rust
Raw Normal View History

2026-03-24 15:48:56 +01:00
use rnex_core::PID;
use crate::crypto::Crypto;
pub struct Insecure;
impl Crypto for Insecure {
2026-04-26 13:15:56 +02:00
fn new_connection(&self, _data: &[u8]) -> Option<(PID, Vec<u8>)> {
2026-03-24 15:48:56 +01:00
Some((100, vec![]))
}
fn new() -> Self {
Self
}
}