Skip to content

Commit f31db20

Browse files
committed
Add missing parts of previous commit
1 parent 9168aab commit f31db20

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

ext/sodium/tests/crypto_core_ristretto255.phpt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ $ru = random_bytes(64);
8787
$s3 = sodium_crypto_core_ristretto255_from_hash($ru);
8888
var_dump(sodium_crypto_core_ristretto255_is_valid_point($s3));
8989

90-
// Modular inverse should be valid too
90+
// Modular inverse should be valid too (???)
9191
$r_invert = sodium_crypto_core_ristretto255_scalar_invert($r);
9292
var_dump(sodium_crypto_core_ristretto255_is_valid_point($r_invert));
9393

@@ -112,9 +112,23 @@ bool(false)
112112
bool(false)
113113
bool(false)
114114
bool(false)
115+
bool(false)
116+
bool(false)
117+
bool(false)
118+
bool(false)
119+
bool(false)
120+
bool(false)
121+
bool(false)
122+
bool(false)
123+
bool(false)
124+
bool(false)
125+
bool(false)
126+
bool(false)
127+
bool(false)
128+
bool(false)
115129
string(64) "3066f82a1a747d45120d1740f14358531a8f04bbffe6a819f86dfe50f44a0a46"
116130
bool(true)
117131
internal error
118132
bool(true)
119-
bool(true)
133+
bool(false)
120134
bool(true)

0 commit comments

Comments
 (0)