vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512.h in rbnacl-libsodium-1.0.2 vs vendor/libsodium/src/libsodium/include/sodium/crypto_auth_hmacsha512.h in rbnacl-libsodium-1.0.3

- old
+ new

@@ -10,15 +10,10 @@ # pragma GCC diagnostic ignored "-Wlong-long" # endif extern "C" { #endif -typedef struct crypto_auth_hmacsha512_state { - crypto_hash_sha512_state ictx; - crypto_hash_sha512_state octx; -} crypto_auth_hmacsha512_state; - #define crypto_auth_hmacsha512_BYTES 64U SODIUM_EXPORT size_t crypto_auth_hmacsha512_bytes(void); #define crypto_auth_hmacsha512_KEYBYTES 32U @@ -34,9 +29,18 @@ SODIUM_EXPORT int crypto_auth_hmacsha512_verify(const unsigned char *h, const unsigned char *in, unsigned long long inlen, const unsigned char *k); + +/* ------------------------------------------------------------------------- */ + +typedef struct crypto_auth_hmacsha512_state { + crypto_hash_sha512_state ictx; + crypto_hash_sha512_state octx; +} crypto_auth_hmacsha512_state; +SODIUM_EXPORT +size_t crypto_auth_hmacsha512_statebytes(void); SODIUM_EXPORT int crypto_auth_hmacsha512_init(crypto_auth_hmacsha512_state *state, const unsigned char *key, size_t keylen);