Blame include/libssh/poly1305.h
|
Packit |
6c0a39 |
/*
|
|
Packit |
6c0a39 |
* Public Domain poly1305 from Andrew Moon
|
|
Packit |
6c0a39 |
* poly1305-donna-unrolled.c from https://github.com/floodyberry/poly1305-donna
|
|
Packit |
6c0a39 |
*/
|
|
Packit |
6c0a39 |
|
|
Packit |
6c0a39 |
#ifndef POLY1305_H
|
|
Packit |
6c0a39 |
#define POLY1305_H
|
|
Packit |
6c0a39 |
|
|
Packit |
6c0a39 |
#define POLY1305_KEYLEN 32
|
|
Packit |
6c0a39 |
#define POLY1305_TAGLEN 16
|
|
Packit |
6c0a39 |
|
|
Packit |
6c0a39 |
void poly1305_auth(uint8_t out[POLY1305_TAGLEN], const uint8_t *m, size_t inlen,
|
|
Packit |
6c0a39 |
const uint8_t key[POLY1305_KEYLEN])
|
|
Packit |
6c0a39 |
#ifdef HAVE_GCC_BOUNDED_ATTRIBUTE
|
|
Packit |
6c0a39 |
__attribute__((__bounded__(__minbytes__, 1, POLY1305_TAGLEN)))
|
|
Packit |
6c0a39 |
__attribute__((__bounded__(__buffer__, 2, 3)))
|
|
Packit |
6c0a39 |
__attribute__((__bounded__(__minbytes__, 4, POLY1305_KEYLEN)))
|
|
Packit |
6c0a39 |
#endif
|
|
Packit |
6c0a39 |
;
|
|
Packit |
6c0a39 |
|
|
Packit |
6c0a39 |
#endif /* POLY1305_H */
|