From 3cbff15e59bb7b52a8287dbb0970b0c8f6db5326 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 26 Apr 2014 16:39:43 -0700 Subject: [PATCH] Expose size_t crypto_shorthash_siphash24_keybytes(void); --- .../crypto_shorthash/siphash24/shorthash_siphash24_api.c | 5 +++++ src/libsodium/include/sodium/crypto_shorthash_siphash24.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24_api.c b/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24_api.c index dd60202c..52f96b55 100644 --- a/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24_api.c +++ b/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24_api.c @@ -5,6 +5,11 @@ crypto_shorthash_siphash24_bytes(void) { return crypto_shorthash_siphash24_BYTES; } +size_t +crypto_shorthash_siphash24_keybytes(void) { + return crypto_shorthash_siphash24_KEYBYTES; +} + const char * crypto_shorthash_siphash24_primitive(void) { return "siphash24"; diff --git a/src/libsodium/include/sodium/crypto_shorthash_siphash24.h b/src/libsodium/include/sodium/crypto_shorthash_siphash24.h index c1ed2cd5..94513ee6 100644 --- a/src/libsodium/include/sodium/crypto_shorthash_siphash24.h +++ b/src/libsodium/include/sodium/crypto_shorthash_siphash24.h @@ -17,6 +17,9 @@ extern "C" { SODIUM_EXPORT size_t crypto_shorthash_siphash24_bytes(void); +SODIUM_EXPORT +size_t crypto_shorthash_siphash24_keybytes(void); + SODIUM_EXPORT const char * crypto_shorthash_siphash24_primitive(void);