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

27 lines
826 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.params;
import java.math.BigInteger;
import org.bouncycastle.crypto.CipherParameters;
/* loaded from: classes6.dex */
public class RSABlindingParameters implements CipherParameters {
private BigInteger blindingFactor;
private RSAKeyParameters publicKey;
public RSAKeyParameters getPublicKey() {
return this.publicKey;
}
public BigInteger getBlindingFactor() {
return this.blindingFactor;
}
public RSABlindingParameters(RSAKeyParameters rSAKeyParameters, BigInteger bigInteger) {
if (rSAKeyParameters instanceof RSAPrivateCrtKeyParameters) {
throw new IllegalArgumentException("RSA parameters should be for a public key");
}
this.publicKey = rSAKeyParameters;
this.blindingFactor = bigInteger;
}
}