what-the-bank/sources/org/bouncycastle/crypto/params/ParametersWithRandom.java

28 lines
767 B
Java

package org.bouncycastle.crypto.params;
import java.security.SecureRandom;
import org.bouncycastle.crypto.CipherParameters;
/* loaded from: classes6.dex */
public class ParametersWithRandom implements CipherParameters {
private CipherParameters parameters;
private SecureRandom random;
public SecureRandom getRandom() {
return this.random;
}
public CipherParameters getParameters() {
return this.parameters;
}
public ParametersWithRandom(CipherParameters cipherParameters, SecureRandom secureRandom) {
this.random = secureRandom;
this.parameters = cipherParameters;
}
public ParametersWithRandom(CipherParameters cipherParameters) {
this(cipherParameters, new SecureRandom());
}
}