You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
975 B
Java
28 lines
975 B
Java
package net.minecraft.network;
|
|
|
|
import io.netty.buffer.ByteBuf;
|
|
import io.netty.channel.ChannelHandlerContext;
|
|
import io.netty.handler.codec.MessageToByteEncoder;
|
|
import javax.crypto.Cipher;
|
|
import javax.crypto.ShortBufferException;
|
|
|
|
public class NettyEncryptingEncoder extends MessageToByteEncoder
|
|
{
|
|
private final NettyEncryptionTranslator field_150750_a;
|
|
private static final String __OBFID = "CL_00001239";
|
|
|
|
public NettyEncryptingEncoder(Cipher cipher)
|
|
{
|
|
this.field_150750_a = new NettyEncryptionTranslator(cipher);
|
|
}
|
|
|
|
protected void encode(ChannelHandlerContext p_encode_1_, ByteBuf p_encode_2_, ByteBuf p_encode_3_) throws ShortBufferException
|
|
{
|
|
this.field_150750_a.func_150504_a(p_encode_2_, p_encode_3_);
|
|
}
|
|
|
|
protected void encode(ChannelHandlerContext p_encode_1_, Object p_encode_2_, ByteBuf p_encode_3_) throws ShortBufferException
|
|
{
|
|
this.encode(p_encode_1_, (ByteBuf)p_encode_2_, p_encode_3_);
|
|
}
|
|
} |