java.lang.Object
org.apache.kerby.kerberos.kerb.crypto.util.Camellia

public class Camellia extends Object
Camellia - based on RFC 3713, about half the size of CamelliaEngine. This is based on CamelliaEngine.java from bouncycastle library.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cbcDec(byte[] data, int offset, int blocksNum, byte[] cipherState)
    CBC encrypt nblocks blocks of data in place, using and updating iv.
    void
    cbcEnc(byte[] data, int offset, int blocksNum, byte[] cipherState)
    CBC encrypt nblocks blocks of data in place, using and updating iv.
    void
    decrypt(byte[] data, byte[] iv)
     
    void
    encrypt(byte[] data, byte[] iv)
     
    void
    processBlock(byte[] in, int inOff)
     
    void
    setKey(boolean forEncryption, byte[] key)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 data
      offset - The offset
      blocksNum - The block number
      cipherState - 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 data
      offset - The offset
      blocksNum - The block number
      cipherState - The cipher state