Package org.bouncycastle.crypto
Interface SingleBlockDecryptorUsingSecureRandom<T extends Parameters>
-
- Type Parameters:
T
- the parameters type for the decryptor's cipher.
- All Superinterfaces:
OperatorUsingSecureRandom<SingleBlockDecryptorUsingSecureRandom<T>>
,SingleBlockCipher<T>
,SingleBlockDecryptor<T>
public interface SingleBlockDecryptorUsingSecureRandom<T extends Parameters> extends SingleBlockDecryptor<T>, OperatorUsingSecureRandom<SingleBlockDecryptorUsingSecureRandom<T>>
Interface for a decryptor only able to decrypt a single block of data that makes use of a SecureRandom in the process (usually for algorithmic blinding).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SingleBlockDecryptorUsingSecureRandom<T>
withSecureRandom(java.security.SecureRandom random)
Return a variant of this decryptor using the passed in random as its source of randomness.-
Methods inherited from interface org.bouncycastle.crypto.SingleBlockCipher
getInputSize, getOutputSize, getParameters
-
Methods inherited from interface org.bouncycastle.crypto.SingleBlockDecryptor
decryptBlock
-
-
-
-
Method Detail
-
withSecureRandom
SingleBlockDecryptorUsingSecureRandom<T> withSecureRandom(java.security.SecureRandom random)
Return a variant of this decryptor using the passed in random as its source of randomness.- Specified by:
withSecureRandom
in interfaceOperatorUsingSecureRandom<T extends Parameters>
- Parameters:
random
- the SecureRandom to use.- Returns:
- a new encryptor which will use random where random data is required.
-
-