1#ifndef crypto_auth_H
2#define crypto_auth_H
3
4#include <stddef.h>
5
6#include "crypto_auth_hmacsha512256.h"
7#include "export.h"
8
9#ifdef __cplusplus
10# ifdef __GNUC__
11#  pragma GCC diagnostic ignored "-Wlong-long"
12# endif
13extern "C" {
14#endif
15
16#define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES
17SODIUM_EXPORT
18size_t  crypto_auth_bytes(void);
19
20#define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES
21SODIUM_EXPORT
22size_t  crypto_auth_keybytes(void);
23
24#define crypto_auth_PRIMITIVE "hmacsha512256"
25SODIUM_EXPORT
26const char *crypto_auth_primitive(void);
27
28SODIUM_EXPORT
29int crypto_auth(unsigned char *out, const unsigned char *in,
30                unsigned long long inlen, const unsigned char *k);
31
32SODIUM_EXPORT
33int crypto_auth_verify(const unsigned char *h, const unsigned char *in,
34                       unsigned long long inlen, const unsigned char *k)
35            __attribute__ ((warn_unused_result));
36
37SODIUM_EXPORT
38void crypto_auth_keygen(unsigned char k[crypto_auth_KEYBYTES]);
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif
45