Top Description Methods
org.bouncycastle.crypto

public Interface AuthenticationParametersWithIV<T extends AuthenticationParametersWithIV>

extends AuthenticationParameters<T extends AuthenticationParametersWithIV>, ParametersWithIV<T extends AuthenticationParametersWithIV>
Known Direct Implementers
org.bouncycastle.crypto.fips.FipsTripleDES.AuthParameters, org.bouncycastle.crypto.fips.FipsAES.AuthParameters, org.bouncycastle.crypto.general.GeneralAuthParameters
Type Parameters
<T>
the implementing type for this interface.
Imports
java.security.SecureRandom

Interface describing parameters used in an authentication mode, such as for a MAC, AEAD cipher, or a HMAC.

Method Summary

Modifier and TypeMethod and Description
public T
withIV(SecureRandom
source of randomness for iv (nonce)
random
,
int
length of the iv (nonce) in bytes to use with the algorithm.
ivLen
)

Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.

Inherited from org.bouncycastle.crypto.AuthenticationParameters:
getMACSizeInBitswithMACSize
Inherited from org.bouncycastle.crypto.ParametersWithIV:
getIVwithIVwithIV

Method Detail

withIVback to summary
public T withIV(SecureRandom random, int ivLen)

Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.

Parameters
random:SecureRandom

source of randomness for iv (nonce)

ivLen:int

length of the iv (nonce) in bytes to use with the algorithm.