Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/sodium/crypto_shorthash.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #ifndef crypto_shorthash_H
0002 #define crypto_shorthash_H
0003 
0004 #include <stddef.h>
0005 
0006 #include "crypto_shorthash_siphash24.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_shorthash_BYTES crypto_shorthash_siphash24_BYTES
0017 SODIUM_EXPORT
0018 size_t  crypto_shorthash_bytes(void);
0019 
0020 #define crypto_shorthash_KEYBYTES crypto_shorthash_siphash24_KEYBYTES
0021 SODIUM_EXPORT
0022 size_t  crypto_shorthash_keybytes(void);
0023 
0024 #define crypto_shorthash_PRIMITIVE "siphash24"
0025 SODIUM_EXPORT
0026 const char *crypto_shorthash_primitive(void);
0027 
0028 SODIUM_EXPORT
0029 int crypto_shorthash(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 void crypto_shorthash_keygen(unsigned char k[crypto_shorthash_KEYBYTES])
0035             __attribute__ ((nonnull));
0036 
0037 #ifdef __cplusplus
0038 }
0039 #endif
0040 
0041 #endif