org.rx.net.shadowsocks.encryption.ICrypto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib Show documentation
Show all versions of rxlib Show documentation
A set of utilities for Java
package org.rx.net.shadowsocks.encryption;
import io.netty.buffer.ByteBuf;
public interface ICrypto {
void setForUdp(boolean forUdp);
void encrypt(byte[] data, ByteBuf stream);
void encrypt(byte[] data, int length, ByteBuf stream);
void decrypt(byte[] data, ByteBuf stream);
void decrypt(byte[] data, int length, ByteBuf stream);
}