Skip to content

Commit

Permalink
Add missing parts of previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 10, 2021
1 parent 9168aab commit f31db20
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions ext/sodium/tests/crypto_core_ristretto255.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $ru = random_bytes(64);
$s3 = sodium_crypto_core_ristretto255_from_hash($ru);
var_dump(sodium_crypto_core_ristretto255_is_valid_point($s3));

// Modular inverse should be valid too
// Modular inverse should be valid too (???)
$r_invert = sodium_crypto_core_ristretto255_scalar_invert($r);
var_dump(sodium_crypto_core_ristretto255_is_valid_point($r_invert));

Expand All @@ -112,9 +112,23 @@ bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
string(64) "3066f82a1a747d45120d1740f14358531a8f04bbffe6a819f86dfe50f44a0a46"
bool(true)
internal error
bool(true)
bool(true)
bool(false)
bool(true)

0 comments on commit f31db20

Please sign in to comment.