Add core_ed25519_from_hash() and core_{ed25519, ristretto255}_random()

This commit is contained in:
Frank Denis
2019-05-02 00:51:17 +02:00
parent 689407c36d
commit 24c54073a8
8 changed files with 115 additions and 27 deletions
+4
View File
@@ -135,6 +135,10 @@ tv3(void)
crypto_core_ristretto255_is_valid_point(s) != 1) {
printf("crypto_scalarmult_ristretto255_base() failed\n");
}
crypto_core_ristretto255_random(s);
if (crypto_core_ristretto255_is_valid_point(s) != 1) {
printf("crypto_core_ristretto255_random() failed\n");
}
if (crypto_scalarmult_ristretto255(s, l, s) == 0) {
printf("s*l != inf (1)\n");
}