diff options
| author | mat <github@matdoes.dev> | 2022-04-29 20:20:56 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-29 20:20:56 -0500 |
| commit | 8317b5b28153794770a8c7b84a1b6dd50eaa3f80 (patch) | |
| tree | 888372c6a42d3f290db614602961c41e03a1e571 /azalea-protocol/src/read.rs | |
| parent | 2575da38edac2e4e546e0b49bfd308003c62263f (diff) | |
| download | azalea-drasl-8317b5b28153794770a8c7b84a1b6dd50eaa3f80.tar.xz | |
upgrade aes and cfb8
Diffstat (limited to 'azalea-protocol/src/read.rs')
| -rwxr-xr-x | azalea-protocol/src/read.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs index 1e308cfb..88fe95cf 100755 --- a/azalea-protocol/src/read.rs +++ b/azalea-protocol/src/read.rs @@ -2,7 +2,7 @@ use std::{cell::Cell, pin::Pin}; use crate::{connect::PacketFlow, mc_buf::Readable, packets::ProtocolPacket}; use async_compression::tokio::bufread::ZlibDecoder; -use azalea_auth::encryption::Aes128Cfb; +use azalea_auth::encryption::Aes128CfbDec; use tokio::io::{AsyncRead, AsyncReadExt}; async fn frame_splitter<R: ?Sized>(mut stream: &mut R) -> Result<Vec<u8>, String> @@ -97,7 +97,7 @@ struct EncryptedStream<'a, R> where R: AsyncRead + std::marker::Unpin + std::marker::Send, { - cipher: Cell<&'a mut Option<Aes128Cfb>>, + cipher: Cell<&'a mut Option<Aes128CfbDec>>, stream: &'a mut Pin<&'a mut R>, } @@ -133,7 +133,7 @@ pub async fn read_packet<'a, P: ProtocolPacket, R>( flow: &PacketFlow, stream: &'a mut R, compression_threshold: Option<u32>, - cipher: &mut Option<Aes128Cfb>, + cipher: &mut Option<Aes128CfbDec>, ) -> Result<P, String> where R: AsyncRead + std::marker::Unpin + std::marker::Send + std::marker::Sync, |
