progs/perftest.c: Use from Glibc syscall numbers.
[catacomb] / symm / latinpoly-test.h
1 /* -*-c-*-
2 *
3 * Testing for AEAD schemes based on Salsa20/ChaCha and Poly1305
4 *
5 * (c) 2018 Straylight/Edgeware
6 */
7
8 /*----- Licensing notice --------------------------------------------------*
9 *
10 * This file is part of Catacomb.
11 *
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.
16 *
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.
21 *
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,
25 * USA.
26 */
27
28 #ifndef CATACOMB_LATINPOLY_TEST_H
29 #define CATACOMB_LATINPOLY_TEST_H
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 /*----- Header files ------------------------------------------------------*/
36
37 #include <mLib/dstr.h>
38 #include <mLib/testrig.h>
39
40 #ifndef CATACOMB_GAEAD_H
41 # include "gaead.h"
42 #endif
43
44 /*----- Functions provided ------------------------------------------------*/
45
46 /* --- @latinpoly_test@ --- *
47 *
48 * Arguments: @gcaead *aec@ = authenticated encryption class to test
49 * @dstr *v@ = pointer to test-vector
50 *
51 * Returns: Nonzero if the test passed, zero on failure.
52 *
53 * Use: Checks a test vector. This internal function is not
54 * available outside of Catacomb's build tree.
55 */
56
57 extern int latinpoly_test(const gcaead */*aec*/, dstr */*v*/);
58
59 /*----- That's all, folks -------------------------------------------------*/
60
61 #ifdef __cplusplus
62 }
63 #endif
64
65 #endif