public class PacketEncryptionManager extends Object
Modifier and Type | Field and Description |
---|---|
private Cipher |
cipher |
private byte[] |
conversionBuffer |
private byte[] |
encryptionBuffer |
Modifier | Constructor and Description |
---|---|
protected |
PacketEncryptionManager(Cipher cipher) |
Modifier and Type | Method and Description |
---|---|
protected io.netty.buffer.ByteBuf |
decrypt(io.netty.channel.ChannelHandlerContext context,
io.netty.buffer.ByteBuf byteBuf) |
protected void |
encrypt(io.netty.buffer.ByteBuf buffer,
io.netty.buffer.ByteBuf byteBuf) |
private byte[] |
toByteArray(io.netty.buffer.ByteBuf byteBuf) |
private final Cipher cipher
private byte[] conversionBuffer
private byte[] encryptionBuffer
protected PacketEncryptionManager(Cipher cipher)
private byte[] toByteArray(io.netty.buffer.ByteBuf byteBuf)
protected io.netty.buffer.ByteBuf decrypt(io.netty.channel.ChannelHandlerContext context, io.netty.buffer.ByteBuf byteBuf) throws ShortBufferException
ShortBufferException
protected void encrypt(io.netty.buffer.ByteBuf buffer, io.netty.buffer.ByteBuf byteBuf) throws ShortBufferException
ShortBufferException