We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b7d0d5 commit b6f76e8Copy full SHA for b6f76e8
core/src/main/java/org/bouncycastle/crypto/params/SAKKEPublicKeyParameters.java
@@ -91,11 +91,11 @@ public class SAKKEPublicKeyParameters
91
* Uses parameters from RFC 6509 Appendix A.
92
*/
93
private static final ECCurve.Fp curve = new ECCurve.Fp(
94
- p, // Prime p
95
- BigInteger.valueOf(-3).mod(p), // a = -3
96
- BigInteger.ZERO, // ,
97
- g, // Order of the subgroup (from RFC 6509)
98
- BigInteger.ONE // Cofactor = 1
+ p, // Prime p
+ p.subtract(BigInteger.valueOf(3)), // a = -3
+ BigInteger.ZERO,
+ q, // Order of the subgroup (from RFC 6509)
+ BigInteger.valueOf(4) // Cofactor = 1
99
);
100
101
/**
0 commit comments