Skip to content

Commit

Permalink
fixup! feat(crypto): implement hashing to curve
Browse files Browse the repository at this point in the history
  • Loading branch information
onvej-sl committed Sep 20, 2023
1 parent 4045913 commit 032c927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/hash_to_curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static bool simple_swu(const bignum256 *u, const bignum256 *a,
const bignum256 *b, const bignum256 *p,
const bignum256 *z, int sign_function(const bignum256 *),
curve_point *point) {
if (bn_is_zero(a) | bn_is_zero(b) | p->val[0] % 4 != 3) {
if (bn_is_zero(a) || bn_is_zero(b) || (p->val[0] % 4 != 3)) {
return false;
}

Expand Down

0 comments on commit 032c927

Please sign in to comment.