aboutsummaryrefslogtreecommitdiff
path: root/azalea-crypto/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-05-08 02:36:02 +0500
committermat <git@matdoes.dev>2026-05-08 04:35:25 +0500
commit5e0484c925bd7dd7c1d05fdfaf9cee2e66c07dea (patch)
tree51b513f34282186e36ff95871525be8211323f55 /azalea-crypto/src
parent64b3c5145bb03483f593a0a8a18dd97f2c132499 (diff)
downloadazalea-drasl-5e0484c925bd7dd7c1d05fdfaf9cee2e66c07dea.tar.xz
upgrade deps
Diffstat (limited to 'azalea-crypto/src')
-rw-r--r--azalea-crypto/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-crypto/src/lib.rs b/azalea-crypto/src/lib.rs
index 4676f18f..ddb4b746 100644
--- a/azalea-crypto/src/lib.rs
+++ b/azalea-crypto/src/lib.rs
@@ -6,7 +6,7 @@ pub mod signing;
use aes::{
Aes128,
- cipher::{BlockDecryptMut, BlockEncryptMut, KeyIvInit, inout::InOutBuf},
+ cipher::{BlockModeDecrypt, BlockModeEncrypt, KeyIvInit, inout::InOutBuf},
};
use rand::{TryRng, rngs::SysRng};
use sha1::{Digest, Sha1};
@@ -92,12 +92,12 @@ pub fn create_cipher(key: &[u8]) -> (Aes128CfbEnc, Aes128CfbDec) {
pub fn encrypt_packet(cipher: &mut Aes128CfbEnc, packet: &mut [u8]) {
let (chunks, rest) = InOutBuf::from(packet).into_chunks();
assert!(rest.is_empty());
- cipher.encrypt_blocks_inout_mut(chunks);
+ cipher.encrypt_blocks_inout(chunks);
}
pub fn decrypt_packet(cipher: &mut Aes128CfbDec, packet: &mut [u8]) {
let (chunks, rest) = InOutBuf::from(packet).into_chunks();
assert!(rest.is_empty());
- cipher.decrypt_blocks_inout_mut(chunks);
+ cipher.decrypt_blocks_inout(chunks);
}
#[cfg(test)]