Skip to content

Commit

Permalink
rolled back null checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Dec 18, 2023
1 parent 0cf5a9c commit 4ee2ee5
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions core/src/main/java/org/bouncycastle/math/ec/ECCurve.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4ee2ee5

Please sign in to comment.