X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0cf9e22fb53cafbff6e9113d1506b829b956bfb0..HEAD:/symm/salsa20-poly1305.c diff --git a/symm/salsa20-poly1305.c b/symm/salsa20-poly1305.c index 55ba69a9..201a0832 100644 --- a/symm/salsa20-poly1305.c +++ b/symm/salsa20-poly1305.c @@ -50,6 +50,12 @@ static int check_salsa2012_poly1305(dstr *v) { return latinpoly_test(&salsa2012_poly1305, v); } static int check_salsa208_poly1305(dstr *v) { return latinpoly_test(&salsa208_poly1305, v); } +static int check_salsa20_naclbox(dstr *v) + { return latinpoly_test(&salsa20_naclbox, v); } +static int check_salsa2012_naclbox(dstr *v) + { return latinpoly_test(&salsa2012_naclbox, v); } +static int check_salsa208_naclbox(dstr *v) + { return latinpoly_test(&salsa208_naclbox, v); } static const test_chunk tests[] = { { "salsa20-poly1305", check_salsa20_poly1305, @@ -58,6 +64,12 @@ static const test_chunk tests[] = { { &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } }, { "salsa20/8-poly1305", check_salsa208_poly1305, { &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } }, + { "salsa20-naclbox", check_salsa20_naclbox, + { &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } }, + { "salsa20/12-naclbox", check_salsa2012_naclbox, + { &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } }, + { "salsa20/8-nacblox", check_salsa208_naclbox, + { &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } }, { 0, 0, { 0 } } #undef TEST };