From 4ee2ee57b2ed6e8a80120c5c90796438701e2b88 Mon Sep 17 00:00:00 2001 From: David Hook Date: Mon, 18 Dec 2023 19:16:52 +1100 Subject: [PATCH] rolled back null checks. --- .../org/bouncycastle/math/ec/ECCurve.java | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/core/src/main/java/org/bouncycastle/math/ec/ECCurve.java b/core/src/main/java/org/bouncycastle/math/ec/ECCurve.java index 80f9a455c5..bf1decfbff 100644 --- a/core/src/main/java/org/bouncycastle/math/ec/ECCurve.java +++ b/core/src/main/java/org/bouncycastle/math/ec/ECCurve.java @@ -697,15 +697,6 @@ public Fp(BigInteger q, BigInteger a, BigInteger b, BigInteger order, BigInteger { super(q); - if (order == null) - { - throw new NullPointerException("order"); - } - if (cofactor == null) - { - throw new NullPointerException("cofactor"); - } - if (isInternal) { this.q = q; @@ -751,15 +742,6 @@ protected Fp(BigInteger q, BigInteger r, ECFieldElement a, ECFieldElement b, Big { super(q); - if (order == null) - { - throw new NullPointerException("order"); - } - if (cofactor == null) - { - throw new NullPointerException("cofactor"); - } - this.q = q; this.r = r; this.infinity = new ECPoint.Fp(this, null, null); @@ -1269,15 +1251,6 @@ public F2m( { super(m, k1, k2, k3); - if (order == null) - { - throw new NullPointerException("order"); - } - if (cofactor == null) - { - throw new NullPointerException("cofactor"); - } - this.m = m; this.k1 = k1; this.k2 = k2; @@ -1295,15 +1268,6 @@ protected F2m(int m, int k1, int k2, int k3, ECFieldElement a, ECFieldElement b, { super(m, k1, k2, k3); - if (order == null) - { - throw new NullPointerException("order"); - } - if (cofactor == null) - { - throw new NullPointerException("cofactor"); - } - this.m = m; this.k1 = k1; this.k2 = k2;