Skip to content

Commit

Permalink
fix: OpenSSL changed "BN_zero" causing error /gdanezis#17
Browse files Browse the repository at this point in the history
  • Loading branch information
caro3801 committed Dec 15, 2022
1 parent a50c05d commit 129533b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bplib/src/bp_fp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ void FP2_clear_free(FP2 *a)

int FP2_zero(FP2 *a)
{
if (!BN_zero(a->f[0]) || !BN_zero(a->f[1]))
return 0;
BN_zero(a->f[0]);
BN_zero(a->f[1]);
return 1;
}

Expand Down

0 comments on commit 129533b

Please sign in to comment.