Move poly1305_get_tag() into poly1305.c, hide poly1305_init().
[tinc] / src / chacha-poly1305 / poly1305.h
1 #ifndef POLY1305_H
2 #define POLY1305_H
3
4 #include <stddef.h>
5 #include <stdint.h>
6 #include <string.h>
7
8 #define POLY1305_KEYLEN     32
9 #define POLY1305_TAGLEN     16
10 #define POLY1305_BLOCK_SIZE 16
11
12 void poly1305_get_tag(const unsigned char key[32], const void *ct, int ct_len, unsigned char tag[16]);
13
14 #endif /* POLY1305_H */