Skip to content

Commit

Permalink
check ristretto255_scalar_invert for failure
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Oct 7, 2021
1 parent af65b11 commit 9403ba8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,9 +1529,7 @@ napi_value sn_crypto_core_ristretto255_scalar_invert (napi_env env, napi_callbac
SN_ASSERT_LENGTH(recip_size, crypto_core_ristretto255_SCALARBYTES, "recip")
SN_ASSERT_LENGTH(s_size, crypto_core_ristretto255_SCALARBYTES, "s")

crypto_core_ristretto255_scalar_invert(recip_data, s_data);

return NULL;
SN_RETURN(crypto_core_ristretto255_scalar_invert(recip_data, s_data), "point inversion failed")
}

napi_value sn_crypto_core_ristretto255_scalar_negate (napi_env env, napi_callback_info info) {
Expand Down

0 comments on commit 9403ba8

Please sign in to comment.