Package org.bouncycastle.crypto
Interface SingleBlockEncryptorUsingSecureRandom<T extends Parameters>
- Type Parameters:
T- the parameters type for the encryptor's cipher.
- All Superinterfaces:
OperatorUsingSecureRandom<SingleBlockEncryptorUsingSecureRandom<T>>,SingleBlockCipher<T>,SingleBlockEncryptor<T>
public interface SingleBlockEncryptorUsingSecureRandom<T extends Parameters>
extends SingleBlockEncryptor<T>, OperatorUsingSecureRandom<SingleBlockEncryptorUsingSecureRandom<T>>
Interface for a encryptor only able to encrypt a single block of data that makes use of
a SecureRandom in the process.
-
Method Summary
Modifier and TypeMethodDescriptionwithSecureRandom(SecureRandom random) Return a variant of this encryptor using the passed in random as its source of randomness.Methods inherited from interface org.bouncycastle.crypto.SingleBlockCipher
getInputSize, getOutputSize, getParametersMethods inherited from interface org.bouncycastle.crypto.SingleBlockEncryptor
encryptBlock
-
Method Details
-
withSecureRandom
Return a variant of this encryptor using the passed in random as its source of randomness.- Specified by:
withSecureRandomin interfaceOperatorUsingSecureRandom<T extends Parameters>- Parameters:
random- the SecureRandom to use.- Returns:
- a new encryptor which will use random where random data is required.
-