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

28 lines
767 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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());
}
}