Interface CipherInformation

All Superinterfaces:
AlgorithmNameProvider, KeySizeIndicator
All Known Subinterfaces:
Cipher, CipherFactory
All Known Implementing Classes:
BaseCBCCipher, BaseCipher, BaseCTRCipher, BaseGCMCipher, BaseRC4Cipher, BuiltinCiphers, ChaCha20Cipher, CipherNone

public interface CipherInformation extends AlgorithmNameProvider, KeySizeIndicator
The reported algorithm name refers to the cipher base name - e.g., "AES", "ARCFOUR", etc.
  • Method Details

    • getTransformation

      String getTransformation()
      Returns:
      The actual transformation used - e.g., AES/CBC/NoPadding
    • getIVSize

      int getIVSize()
      Returns:
      Size of the initialization vector (in bytes)
    • getAuthenticationTagSize

      int getAuthenticationTagSize()
      Returns:
      Size of the authentication tag (AT) in bytes or 0 if this cipher does not support authentication
    • getCipherBlockSize

      int getCipherBlockSize()
      Returns:
      Size of block data used by the cipher (in bytes). For stream ciphers this value is (currently) used to indicate some average work buffer size to be used for the automatic re-keying mechanism described in RFC 4253 - Section 9
    • getKdfSize

      int getKdfSize()
      Returns:
      The block size (in bytes) used to derive the secret key for this cipher