3 * Testing for AEAD schemes based on Salsa20/ChaCha and Poly1305
5 * (c) 2018 Straylight/Edgeware
8 /*----- Licensing notice --------------------------------------------------*
10 * This file is part of Catacomb.
12 * Catacomb is free software: you can redistribute it and/or modify it
13 * under the terms of the GNU Library General Public License as published
14 * by the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * Catacomb is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with Catacomb. If not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
28 #ifndef CATACOMB_LATINPOLY_TEST_H
29 #define CATACOMB_LATINPOLY_TEST_H
35 /*----- Header files ------------------------------------------------------*/
37 #include <mLib/dstr.h>
38 #include <mLib/testrig.h>
40 #ifndef CATACOMB_GAEAD_H
44 /*----- Functions provided ------------------------------------------------*/
46 /* --- @latinpoly_test@ --- *
48 * Arguments: @gcaead *aec@ = authenticated encryption class to test
49 * @dstr *v@ = pointer to test-vector
51 * Returns: Nonzero if the test passed, zero on failure.
53 * Use: Checks a test vector. This internal function is not
54 * available outside of Catacomb's build tree.
57 extern int latinpoly_test(const gcaead */
*aec*/
, dstr */
*v*/
);
59 /*----- That's all, folks -------------------------------------------------*/