~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
symm/latinpoly-def.h, etc.: Refactor in preparation for a related scheme.
[catacomb]
/
symm
/
chacha-poly1305.c
diff --git
a/symm/chacha-poly1305.c
b/symm/chacha-poly1305.c
index
c286635
..
f307e6b
100644
(file)
--- a/
symm/chacha-poly1305.c
+++ b/
symm/chacha-poly1305.c
@@
-44,19
+44,19
@@
LATINPOLY_DEF(chacha8, chacha, "chacha8")
#include <mLib/testrig.h>
#include "latinpoly-test.h"
#include <mLib/testrig.h>
#include "latinpoly-test.h"
-static int check_chacha20(dstr *v)
+static int check_chacha20
_poly1305
(dstr *v)
{ return latinpoly_test(&chacha20_poly1305, v); }
{ return latinpoly_test(&chacha20_poly1305, v); }
-static int check_chacha12(dstr *v)
+static int check_chacha12
_poly1305
(dstr *v)
{ return latinpoly_test(&chacha12_poly1305, v); }
{ return latinpoly_test(&chacha12_poly1305, v); }
-static int check_chacha8(dstr *v)
+static int check_chacha8
_poly1305
(dstr *v)
{ return latinpoly_test(&chacha8_poly1305, v); }
static const test_chunk tests[] = {
{ return latinpoly_test(&chacha8_poly1305, v); }
static const test_chunk tests[] = {
- { "chacha20-poly1305", check_chacha20,
+ { "chacha20-poly1305", check_chacha20
_poly1305
,
{ &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } },
{ &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } },
- { "chacha12-poly1305", check_chacha12,
+ { "chacha12-poly1305", check_chacha12
_poly1305
,
{ &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } },
{ &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } },
- { "chacha8-poly1305", check_chacha8,
+ { "chacha8-poly1305", check_chacha8
_poly1305
,
{ &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } },
{ 0, 0, { 0 } }
#undef TEST
{ &type_hex, &type_hex, &type_hex, &type_hex, &type_hex, &type_hex } },
{ 0, 0, { 0 } }
#undef TEST