Class Camellia
java.lang.Object
org.apache.kerby.kerberos.kerb.crypto.util.Camellia
Camellia - based on RFC 3713, about half the size of CamelliaEngine.
This is based on CamelliaEngine.java from bouncycastle library.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcbcDec(byte[] data, int offset, int blocksNum, byte[] cipherState) CBC encrypt nblocks blocks of data in place, using and updating iv.voidcbcEnc(byte[] data, int offset, int blocksNum, byte[] cipherState) CBC encrypt nblocks blocks of data in place, using and updating iv.voiddecrypt(byte[] data, byte[] iv) voidencrypt(byte[] data, byte[] iv) voidprocessBlock(byte[] in, int inOff) voidsetKey(boolean forEncryption, byte[] key)
-
Constructor Details
-
Camellia
public Camellia()
-
-
Method Details
-
setKey
public void setKey(boolean forEncryption, byte[] key) -
processBlock
public void processBlock(byte[] in, int inOff) -
encrypt
public void encrypt(byte[] data, byte[] iv) -
decrypt
public void decrypt(byte[] data, byte[] iv) -
cbcEnc
public void cbcEnc(byte[] data, int offset, int blocksNum, byte[] cipherState) CBC encrypt nblocks blocks of data in place, using and updating iv.- Parameters:
data- The dataoffset- The offsetblocksNum- The block numbercipherState- The cipher state
-
cbcDec
public void cbcDec(byte[] data, int offset, int blocksNum, byte[] cipherState) CBC encrypt nblocks blocks of data in place, using and updating iv.- Parameters:
data- The dataoffset- The offsetblocksNum- The block numbercipherState- The cipher state
-