mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-23 20:15:19 -07:00
Check reduced-round salsa variants in non-minimal mode
This commit is contained in:
parent
bd9e859e52
commit
cf59e049e7
@ -60,7 +60,7 @@ main(void)
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
#ifndef MINIMAL
|
||||
#ifndef SODIUM_LIBRARY_MINIMAL
|
||||
pos = 0;
|
||||
do {
|
||||
do {
|
||||
@ -94,6 +94,16 @@ main(void)
|
||||
printf("%02x", h[i]);
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
assert(crypto_core_salsa2012_outputbytes() == crypto_core_salsa2012_OUTPUTBYTES);
|
||||
assert(crypto_core_salsa2012_inputbytes() == crypto_core_salsa2012_INPUTBYTES);
|
||||
assert(crypto_core_salsa2012_keybytes() == crypto_core_salsa2012_KEYBYTES);
|
||||
assert(crypto_core_salsa2012_constbytes() == crypto_core_salsa2012_CONSTBYTES);
|
||||
|
||||
assert(crypto_core_salsa208_outputbytes() == crypto_core_salsa208_OUTPUTBYTES);
|
||||
assert(crypto_core_salsa208_inputbytes() == crypto_core_salsa208_INPUTBYTES);
|
||||
assert(crypto_core_salsa208_keybytes() == crypto_core_salsa208_KEYBYTES);
|
||||
assert(crypto_core_salsa208_constbytes() == crypto_core_salsa208_CONSTBYTES);
|
||||
#else
|
||||
printf("a4e3147dddd2ba7775939b50208a22eb3277d4e4bad8a1cfbc999c6bd392b638\n"
|
||||
"017421baa9959cbe894bd003ec87938254f47c1e757eb66cf89c353d0c2b68de\n");
|
||||
|
Loading…
Reference in New Issue
Block a user