Package org.bouncycastle.crypto.modes
Class AESCTRPacketCipher
java.lang.Object
org.bouncycastle.crypto.modes.AESCTRPacketCipher
- All Implemented Interfaces:
AESCTRModePacketCipher,PacketCipher
-
Method Summary
Modifier and TypeMethodDescriptionintgetOutputSize(boolean encryption, CipherParameters parameters, int len) Returns the expected output size for direction and parameters.static AESCTRModePacketCipherintprocessPacket(boolean encryption, CipherParameters parameters, 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.AESCTRModePacketCipher
checkParameters
-
Method Details
-
newInstance
-
getOutputSize
Description copied from interface:PacketCipherReturns the expected output size for direction and parameters.- Specified by:
getOutputSizein interfacePacketCipher- Parameters:
encryption- encryption if trueparameters- The cipher parameterslen- the input length.- Returns:
- the required minimum output length in bytes.
-
processPacket
public int processPacket(boolean encryption, CipherParameters parameters, byte[] input, int inOff, int len, byte[] output, int outOff) throws PacketCipherException Description copied from interface:PacketCipherProcess a packet.- Specified by:
processPacketin interfacePacketCipher- Parameters:
encryption- encryption if trueparameters- 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
-