File indexing completed on 2025-01-18 10:12:39
0001 #ifndef crypto_auth_H
0002 #define crypto_auth_H
0003
0004 #include <stddef.h>
0005
0006 #include "crypto_auth_hmacsha512256.h"
0007 #include "export.h"
0008
0009 #ifdef __cplusplus
0010 # ifdef __GNUC__
0011 # pragma GCC diagnostic ignored "-Wlong-long"
0012 # endif
0013 extern "C" {
0014 #endif
0015
0016 #define crypto_auth_BYTES crypto_auth_hmacsha512256_BYTES
0017 SODIUM_EXPORT
0018 size_t crypto_auth_bytes(void);
0019
0020 #define crypto_auth_KEYBYTES crypto_auth_hmacsha512256_KEYBYTES
0021 SODIUM_EXPORT
0022 size_t crypto_auth_keybytes(void);
0023
0024 #define crypto_auth_PRIMITIVE "hmacsha512256"
0025 SODIUM_EXPORT
0026 const char *crypto_auth_primitive(void);
0027
0028 SODIUM_EXPORT
0029 int crypto_auth(unsigned char *out, const unsigned char *in,
0030 unsigned long long inlen, const unsigned char *k)
0031 __attribute__ ((nonnull(1, 4)));
0032
0033 SODIUM_EXPORT
0034 int crypto_auth_verify(const unsigned char *h, const unsigned char *in,
0035 unsigned long long inlen, const unsigned char *k)
0036 __attribute__ ((warn_unused_result)) __attribute__ ((nonnull(1, 4)));
0037
0038 SODIUM_EXPORT
0039 void crypto_auth_keygen(unsigned char k[crypto_auth_KEYBYTES])
0040 __attribute__ ((nonnull));
0041
0042 #ifdef __cplusplus
0043 }
0044 #endif
0045
0046 #endif