libsodium: Needed for Dnscrypto-proxy Release 1.3.0
[tomato.git] / release / src / router / libsodium / src / libsodium / include / sodium / crypto_auth.h
blobb28533d0e19babe4616bee6b2482c808abff9e59
1 #ifndef crypto_auth_H
2 #define crypto_auth_H
4 #include <stddef.h>
6 #include "crypto_auth_hmacsha512256.h"
7 #include "export.h"
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 #define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES
14 SODIUM_EXPORT
15 size_t crypto_auth_bytes(void);
17 #define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES
18 SODIUM_EXPORT
19 size_t crypto_auth_keybytes(void);
21 #define crypto_auth_PRIMITIVE "hmacsha512256"
22 SODIUM_EXPORT
23 const char *crypto_auth_primitive(void);
25 SODIUM_EXPORT
26 int crypto_auth(unsigned char *out, const unsigned char *in,
27 unsigned long long inlen, const unsigned char *k);
29 SODIUM_EXPORT
30 int crypto_auth_verify(const unsigned char *h, const unsigned char *in,
31 unsigned long long inlen, const unsigned char *k);
32 #ifdef __cplusplus
34 #endif
36 #endif