libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_onetimeauth.h
blobf43d831935e956dc774c6f3deb7c47ce48fae38d
1 #ifndef crypto_onetimeauth_H
2 #define crypto_onetimeauth_H
4 #include <stddef.h>
6 #include "crypto_onetimeauth_poly1305.h"
7 #include "export.h"
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 #define crypto_onetimeauth_BYTES crypto_onetimeauth_poly1305_BYTES
14 SODIUM_EXPORT
15 size_t crypto_onetimeauth_bytes(void);
17 #define crypto_onetimeauth_KEYBYTES crypto_onetimeauth_poly1305_KEYBYTES
18 SODIUM_EXPORT
19 size_t crypto_onetimeauth_keybytes(void);
21 #define crypto_onetimeauth_PRIMITIVE "poly1305"
22 SODIUM_EXPORT
23 const char *crypto_onetimeauth_primitive(void);
25 SODIUM_EXPORT
26 int crypto_onetimeauth(unsigned char *out, const unsigned char *in,
27 unsigned long long inlen, const unsigned char *k);
29 SODIUM_EXPORT
30 int crypto_onetimeauth_verify(const unsigned char *h, const unsigned char *in,
31 unsigned long long inlen, const unsigned char *k);
33 #ifdef __cplusplus
35 #endif
37 #endif