Interface CipherFactory

All Superinterfaces:
CipherSpecifications

@Role public interface CipherFactory extends CipherSpecifications
Factory creating block ciphers for encryption and decryption.
Since:
5.4M1
Version:
$Id: 864c091a788b14f331b54143cd8ce63de448fd5f $
  • Method Details

    • getInstance

      Cipher getInstance(boolean forEncryption, CipherParameters parameters)
      Parameters:
      forEncryption - if true the cipher is initialised for encryption, if false for decryption.
      parameters - the key and other data required by the cipher.
      Returns:
      an initialized cipher ready to process data.