Debian Codegraph @

contrib/mod_sftp/poly1305.h

raw symbols SCIP
1 /*
2 * Public Domain poly1305 from Andrew Moon
3 * poly1305-donna-unrolled.c from https://github.com/floodyberry/poly1305-donna
4 */
5
6 #ifndef POLY1305_H
7 #define POLY1305_H
8
9 #include "mod_sftp.h"
10
11 #if defined(HAVE_EVP_CHACHA20_OPENSSL) && \
12 !defined(HAVE_BROKEN_CHACHA20)
13 #include <sys/types.h>
14
15 #define POLY1305_KEYLEN 32
16 #define POLY1305_TAGLEN 16
17
18 void poly1305_auth(u_char out[POLY1305_TAGLEN], const u_char *m, size_t inlen,
19 const u_char key[POLY1305_KEYLEN])
20 __attribute__((__bounded__(__minbytes__, 1, POLY1305_TAGLEN)))
21 __attribute__((__bounded__(__buffer__, 2, 3)))
22 __attribute__((__bounded__(__minbytes__, 4, POLY1305_KEYLEN)));
23
24 #endif /* HAVE_EVP_CHACHA20_OPENSSL and !HAVE_BROKEN_CHACHA20 */
25 #endif /* POLY1305_H */