This commit is contained in:
lbl
2026-02-24 16:08:44 +08:00
parent 4708ed2b16
commit ecdb359bbd
5 changed files with 11 additions and 7 deletions
+3 -1
View File
@@ -18,7 +18,9 @@ impl PacketCrypto {
pub(crate) fn new_from_str(s: Option<&str>) -> Self {
Self {
crypto: s.map(chacha20_poly1305::PacketCrypto::new_from_str).map(Arc::new),
crypto: s
.map(chacha20_poly1305::PacketCrypto::new_from_str)
.map(Arc::new),
}
}
pub(crate) fn encrypt_reserve(&self) -> usize {