Class KeyedBlockCipherSpec

java.lang.Object
org.cryptacular.spec.BufferedBlockCipherSpec
org.cryptacular.spec.KeyedBlockCipherSpec
All Implemented Interfaces:
Spec<org.bouncycastle.crypto.BufferedBlockCipher>

public class KeyedBlockCipherSpec extends BufferedBlockCipherSpec
Describes a block cipher algorithm with a known key size.
Author:
Middleware Services
  • Constructor Details

    • KeyedBlockCipherSpec

      public KeyedBlockCipherSpec(String algName, String cipherMode, String cipherPadding, int keyBitLength)
      Creates a new instance from the given cipher specifications.
      Parameters:
      algName - Cipher algorithm name.
      cipherMode - Cipher mode.
      cipherPadding - Cipher padding scheme algorithm.
      keyBitLength - Key length in bits.
  • Method Details

    • getKeyLength

      public int getKeyLength()
      Gets the cipher key length in bits.
      Returns:
      Key length in bits.