File indexing completed on 2025-01-18 10:12:40
0001 #ifndef crypto_shorthash_siphash24_H
0002 #define crypto_shorthash_siphash24_H
0003
0004 #include <stddef.h>
0005 #include "export.h"
0006
0007 #ifdef __cplusplus
0008 # ifdef __GNUC__
0009 # pragma GCC diagnostic ignored "-Wlong-long"
0010 # endif
0011 extern "C" {
0012 #endif
0013
0014
0015
0016 #define crypto_shorthash_siphash24_BYTES 8U
0017 SODIUM_EXPORT
0018 size_t crypto_shorthash_siphash24_bytes(void);
0019
0020 #define crypto_shorthash_siphash24_KEYBYTES 16U
0021 SODIUM_EXPORT
0022 size_t crypto_shorthash_siphash24_keybytes(void);
0023
0024 SODIUM_EXPORT
0025 int crypto_shorthash_siphash24(unsigned char *out, const unsigned char *in,
0026 unsigned long long inlen, const unsigned char *k)
0027 __attribute__ ((nonnull(1, 4)));
0028
0029 #ifndef SODIUM_LIBRARY_MINIMAL
0030
0031
0032 #define crypto_shorthash_siphashx24_BYTES 16U
0033 SODIUM_EXPORT
0034 size_t crypto_shorthash_siphashx24_bytes(void);
0035
0036 #define crypto_shorthash_siphashx24_KEYBYTES 16U
0037 SODIUM_EXPORT
0038 size_t crypto_shorthash_siphashx24_keybytes(void);
0039
0040 SODIUM_EXPORT
0041 int crypto_shorthash_siphashx24(unsigned char *out, const unsigned char *in,
0042 unsigned long long inlen, const unsigned char *k)
0043 __attribute__ ((nonnull(1, 4)));
0044 #endif
0045
0046 #ifdef __cplusplus
0047 }
0048 #endif
0049
0050 #endif