public class AESCCMPacketCipher extends java.lang.Object implements AESCCMModePacketCipher
| Constructor and Description |
|---|
AESCCMPacketCipher() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
ctrProcessBlock(byte[] counter,
byte[] counterOut,
byte[] in,
int inOff,
byte[] out,
int outOff,
int[][] workingkeys,
byte[] s) |
int |
getOutputSize(boolean encryption,
CipherParameters params,
int len)
Returns the expected output size for direction and parameters.
|
static AESCCMModePacketCipher |
newInstance() |
int |
processPacket(boolean forEncryption,
CipherParameters params,
byte[] in,
int inOff,
int inLen,
byte[] output,
int outOff)
Process a packet.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCCMMacSize, getMacSizepublic static AESCCMModePacketCipher newInstance()
public int getOutputSize(boolean encryption,
CipherParameters params,
int len)
PacketCiphergetOutputSize in interface PacketCipherencryption - encryption if trueparams - The cipher parameterslen - the input length.public int processPacket(boolean forEncryption,
CipherParameters params,
byte[] in,
int inOff,
int inLen,
byte[] output,
int outOff)
throws PacketCipherException
PacketCipherprocessPacket in interface PacketCipherforEncryption - encryption if trueparams - The key parametersin - The input byte arrayinOff - Offset within byte array to start reading input.inLen - the number of bytes of input to process.output - The output arrayoutOff - the offset within the output array to start writing output.PacketCipherException - if the transformation encounters an error.protected static void ctrProcessBlock(byte[] counter,
byte[] counterOut,
byte[] in,
int inOff,
byte[] out,
int outOff,
int[][] workingkeys,
byte[] s)
public java.lang.String toString()
toString in class java.lang.Object