mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Trim
This commit is contained in:
parent
842c968220
commit
4757c4be53
8 changed files with 97 additions and 189 deletions
|
|
@ -193,18 +193,5 @@ namespace MinecraftClient.Crypto
|
|||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get a new AES-encrypted stream for wrapping a non-encrypted stream.
|
||||
/// </summary>
|
||||
/// <param name="underlyingStream">Stream to encrypt</param>
|
||||
/// <param name="AesKey">Key to use</param>
|
||||
/// <returns>Return an appropriate stream depending on the framework being used</returns>
|
||||
|
||||
public static IAesStream getAesStream(Stream underlyingStream, byte[] AesKey)
|
||||
{
|
||||
// return new Streams.RegularAesStream(underlyingStream, AesKey);
|
||||
return new Streams.AesCfb8Stream(underlyingStream, AesKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue