progs/perftest.c: Use from Glibc syscall numbers.
[catacomb] / symm / salsa20-poly1305.c
index 55ba69a..201a083 100644 (file)
@@ -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
 };