diff options
| author | mat <github@matdoes.dev> | 2022-04-30 21:30:45 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-30 21:30:45 -0500 |
| commit | 80d49a76073d417e118b85636df2a923043b0250 (patch) | |
| tree | 8e27492a181d82fcf524e8b5b5b997e9231e3aed /azalea-protocol/src/read.rs | |
| parent | cc70d80932269ca3d044224481ab46082e0a8449 (diff) | |
| download | azalea-drasl-80d49a76073d417e118b85636df2a923043b0250.tar.xz | |
azalea_auth::encryption -> azalea_crypto
Diffstat (limited to 'azalea-protocol/src/read.rs')
| -rwxr-xr-x | azalea-protocol/src/read.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 2a74d8de..9afdb0e9 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -6,7 +6,7 @@ use std::{ use crate::{connect::PacketFlow, mc_buf::Readable, packets::ProtocolPacket}; use async_compression::tokio::bufread::ZlibDecoder; -use azalea_auth::encryption::Aes128CfbDec; +use azalea_crypto::Aes128CfbDec; use tokio::io::{AsyncRead, AsyncReadExt}; async fn frame_splitter<R: ?Sized>(mut stream: &mut R) -> Result<Vec<u8>, String> @@ -122,7 +122,7 @@ where // (but only on linux and release mode for some reason LMAO) if buf.remaining() == 0 { if let Some(cipher) = self.as_mut().cipher.get_mut() { - azalea_auth::encryption::decrypt_packet(cipher, buf.filled_mut()); + azalea_crypto::decrypt_packet(cipher, buf.filled_mut()); } } match r { |
