Type Parameters:
T - the keyType
All Superinterfaces:
GordianCipher
All Known Subinterfaces:
GordianStreamAEADCipher, GordianStreamCipher, GordianSymAEADCipher, GordianSymCipher

public interface GordianKeyedCipher<T extends GordianKeySpec> extends GordianCipher
GordianKnot Keyed Cipher.
  • Method Details

    • getKeyType

      T getKeyType()
      Obtain the keyType.
      Returns:
      the keyType
    • getCipherSpec

      GordianCipherSpec<T> getCipherSpec()
      Obtain the cipherSpec.
      Returns:
      the spec
    • getInitVector

      byte[] getInitVector()
      Obtain the initVector.
      Returns:
      the initVector
    • getInitialAEAD

      byte[] getInitialAEAD()
      Obtain the initialAEAD.
      Returns:
      the initialAEAD
    • getPBESalt

      byte[] getPBESalt()
      Obtain the pbeSalt.
      Returns:
      the pbeSalt
    • getPBESpec

      GordianPBESpec getPBESpec()
      Obtain the pbeSpec.
      Returns:
      the pbeSpec
    • initForEncrypt

      void initForEncrypt(GordianCipherParameters pParams) throws GordianException
      Initialise the cipher for encryption.
      Parameters:
      pParams - the parameters
      Throws:
      GordianException - on error
    • initForDecrypt

      void initForDecrypt(GordianCipherParameters pParams) throws GordianException
      Initialise the cipher for decryption.
      Parameters:
      pParams - the parameters
      Throws:
      GordianException - on error