Skip to content

Commit f2380d2

Browse files
committed
pairing.c: zero is not an element of Fp12 group.
Fixes #108.
1 parent 03d70d9 commit f2380d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pairing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ int blst_fp12_in_group(const vec384fp12 f)
433433
{
434434
vec384fp12 a, b;
435435

436-
if (!is_cyclotomic(f))
436+
if (vec_is_zero(f, sizeof(vec384fp12)) || !is_cyclotomic(f))
437437
return 0;
438438

439439
frobenius_map_fp12(a, f, 1);

0 commit comments

Comments
 (0)