libssh: poly1305.h Source File

libssh 0.10.3 The SSH library

poly1305.h
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#include "libssh/chacha20-poly1305-common.h"
9
10void poly1305_auth(uint8_t out[POLY1305_TAGLEN], const uint8_t *m, size_t inlen,
11 const uint8_t key[POLY1305_KEYLEN])
12#ifdef HAVE_GCC_BOUNDED_ATTRIBUTE
13 __attribute__((__bounded__(__minbytes__, 1, POLY1305_TAGLEN)))
14 __attribute__((__bounded__(__buffer__, 2, 3)))
15 __attribute__((__bounded__(__minbytes__, 4, POLY1305_KEYLEN)))
16#endif
17 ;
18
19#endif /* POLY1305_H */