what-the-bank/sources/org/bouncycastle/crypto/agreement/srp/SRP6VerifierGenerator.java

29 lines
908 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.crypto.agreement.srp;
import java.math.BigInteger;
import org.bouncycastle.crypto.Digest;
import org.bouncycastle.crypto.params.SRP6GroupParameters;
/* loaded from: classes6.dex */
public class SRP6VerifierGenerator {
protected BigInteger N;
protected Digest digest;
protected BigInteger g;
public void init(SRP6GroupParameters sRP6GroupParameters, Digest digest) {
this.N = sRP6GroupParameters.getN();
this.g = sRP6GroupParameters.getG();
this.digest = digest;
}
public void init(BigInteger bigInteger, BigInteger bigInteger2, Digest digest) {
this.N = bigInteger;
this.g = bigInteger2;
this.digest = digest;
}
public BigInteger generateVerifier(byte[] bArr, byte[] bArr2, byte[] bArr3) {
return this.g.modPow(SRP6Util.calculateX(this.digest, this.N, bArr, bArr2, bArr3), this.N);
}
}