public interface PacketEncryption
| Modifier and Type | Method and Description |
|---|---|
int |
decrypt(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
Decrypts the given data.
|
int |
encrypt(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
Encrypts the given data.
|
int |
getDecryptOutputSize(int length)
Gets the output size from decrypting.
|
int |
getEncryptOutputSize(int length)
Gets the output size from encrypting.
|
int getDecryptOutputSize(int length)
length - Length of the data being decrypted.int getEncryptOutputSize(int length)
length - Length of the data being encrypted.int decrypt(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
throws Exception
input - Input data to decrypt.inputOffset - Offset of the data to start decrypting at.inputLength - Length of the data to be decrypted.output - Array to output decrypted data to.outputOffset - Offset of the output array to start at.Exception - If an error occurs.int encrypt(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
throws Exception
input - Input data to encrypt.inputOffset - Offset of the data to start encrypting at.inputLength - Length of the data to be encrypted.output - Array to output encrypted data to.outputOffset - Offset of the output array to start at.Exception - If an error occurs.Copyright © 2022. All rights reserved.