| 1 |
|
| 2 |
|
| 3 |
|
| 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 |
| 25 |
#endif |