Package net.minecraft.network
Class CipherBase
java.lang.Object
net.minecraft.network.CipherBase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
bufToByte
(io.netty.buffer.ByteBuf pBuffer) protected io.netty.buffer.ByteBuf
decipher
(io.netty.channel.ChannelHandlerContext pCtx, io.netty.buffer.ByteBuf pBuffer) protected void
encipher
(io.netty.buffer.ByteBuf pInput, io.netty.buffer.ByteBuf pOut)
-
Field Details
-
cipher
-
heapIn
private byte[] heapIn -
heapOut
private byte[] heapOut
-
-
Constructor Details
-
CipherBase
-
-
Method Details
-
bufToByte
private byte[] bufToByte(io.netty.buffer.ByteBuf pBuffer) -
decipher
protected io.netty.buffer.ByteBuf decipher(io.netty.channel.ChannelHandlerContext pCtx, io.netty.buffer.ByteBuf pBuffer) throws ShortBufferException - Throws:
ShortBufferException
-
encipher
protected void encipher(io.netty.buffer.ByteBuf pInput, io.netty.buffer.ByteBuf pOut) throws ShortBufferException - Throws:
ShortBufferException
-