Interface AuthenticationParametersWithIV<T extends AuthenticationParametersWithIV>

Type Parameters:
T - the implementing type for this interface.
All Superinterfaces:
AuthenticationParameters<T>, Parameters, ParametersWithIV<T>
All Known Implementing Classes:
AES.AuthParameters, ARIA.AuthParameters, Blowfish.AuthParameters, Camellia.AuthParameters, CAST5.AuthParameters, ChaCha20.AuthParameters, DES.AuthParameters, FipsAES.AuthParameters, FipsTripleDES.AuthParameters, GeneralAuthParameters, GOST28147.AuthParameters, IDEA.AuthParameters, Poly1305.AuthParameters, RC2.AuthParameters, SEED.AuthParameters, Serpent.AuthParameters, SHACAL2.AuthParameters, TripleDES.AuthParameters, Twofish.AuthParameters

public interface AuthenticationParametersWithIV<T extends AuthenticationParametersWithIV> extends AuthenticationParameters<T>, ParametersWithIV<T>
Interface describing parameters used in an authentication mode, such as for a MAC, AEAD cipher, or a HMAC.
  • Method Details

    • withIV

      T withIV(SecureRandom random, int ivLen)
      Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.
      Parameters:
      random - source of randomness for iv (nonce)
      ivLen - length of the iv (nonce) in bytes to use with the algorithm.