Rename randombytes_salsa20 to randombytes_internal and switch to ChaCha20

This commit is contained in:
Frank Denis
2019-03-17 19:25:32 +01:00
parent 0ea9a8f0e9
commit e1abc1de7e
20 changed files with 142 additions and 134 deletions
+3 -2
View File
@@ -71,8 +71,9 @@ randombytes_tests(void)
assert(randombytes_uniform(1U) == 0U);
randombytes_close();
#ifndef __EMSCRIPTEN__
randombytes_set_implementation(&randombytes_salsa20_implementation);
assert(strcmp(randombytes_implementation_name(), "salsa20") == 0);
assert(&randombytes_internal_implementation == &randombytes_salsa20_implementation);
randombytes_set_implementation(&randombytes_internal_implementation);
assert(strcmp(randombytes_implementation_name(), "internal") == 0);
#endif
randombytes_stir();
for (i = 0; i < 256; ++i) {