Package org.bouncycastle.crypto.engines
Class AESNativeCCMPacketCipher
java.lang.Object
org.bouncycastle.crypto.engines.AESNativeCCMPacketCipher
- All Implemented Interfaces:
AESCCMModePacketCipher,PacketCipher
public class AESNativeCCMPacketCipher
extends Object
implements PacketCipher, AESCCMModePacketCipher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOutputSize(boolean encryption, CipherParameters params, int len) Returns the expected output size for direction and parameters.intprocessPacket(boolean forEncryption, CipherParameters params, byte[] input, int inOff, int len, byte[] output, int outOff) Process a packet.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bouncycastle.crypto.modes.AESCCMModePacketCipher
getCCMMacSize, getMacSize
-
Constructor Details
-
AESNativeCCMPacketCipher
public AESNativeCCMPacketCipher()
-
-
Method Details
-
getOutputSize
Description copied from interface:PacketCipherReturns the expected output size for direction and parameters.- Specified by:
getOutputSizein interfacePacketCipher- Parameters:
encryption- encryption if trueparams- The cipher parameterslen- the input length.- Returns:
- the required minimum output length in bytes.
-
processPacket
public int processPacket(boolean forEncryption, CipherParameters params, byte[] input, int inOff, int len, byte[] output, int outOff) throws PacketCipherException Description copied from interface:PacketCipherProcess a packet.- Specified by:
processPacketin interfacePacketCipher- Parameters:
forEncryption- encryption if trueparams- The key parametersinput- The input byte arrayinOff- Offset within byte array to start reading input.len- the number of bytes of input to process.output- The output arrayoutOff- the offset within the output array to start writing output.- Returns:
- Throws:
PacketCipherException- if the transformation encounters an error.
-
toString
-