aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/write.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-30 21:30:45 -0500
committermat <github@matdoes.dev>2022-04-30 21:30:45 -0500
commit80d49a76073d417e118b85636df2a923043b0250 (patch)
tree8e27492a181d82fcf524e8b5b5b997e9231e3aed /azalea-protocol/src/write.rs
parentcc70d80932269ca3d044224481ab46082e0a8449 (diff)
downloadazalea-drasl-80d49a76073d417e118b85636df2a923043b0250.tar.xz
azalea_auth::encryption -> azalea_crypto
Diffstat (limited to 'azalea-protocol/src/write.rs')
-rwxr-xr-xazalea-protocol/src/write.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-protocol/src/write.rs b/azalea-protocol/src/write.rs
index e39ce18e..38ef174c 100755
--- a/azalea-protocol/src/write.rs
+++ b/azalea-protocol/src/write.rs
@@ -1,6 +1,6 @@
use crate::{mc_buf::Writable, packets::ProtocolPacket, read::MAXIMUM_UNCOMPRESSED_LENGTH};
use async_compression::tokio::bufread::ZlibEncoder;
-use azalea_auth::encryption::Aes128CfbEnc;
+use azalea_crypto::Aes128CfbEnc;
use std::fmt::Debug;
use tokio::{
io::{AsyncReadExt, AsyncWrite, AsyncWriteExt},
@@ -67,7 +67,7 @@ pub async fn write_packet<P, W>(
}
// if we were given a cipher, encrypt the packet
if let Some(cipher) = cipher {
- azalea_auth::encryption::encrypt_packet(cipher, &mut buf);
+ azalea_crypto::encrypt_packet(cipher, &mut buf);
}
buf = frame_prepender(&mut buf).unwrap();
stream.write_all(&buf).await.unwrap();