summaryrefslogtreecommitdiff
path: root/src/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hash.c b/src/hash.c
index 4b397bd..67b3656 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -20,7 +20,7 @@ static volatile bool
INITIALIZED = false;
static uint8_t
-SIPHASH_KEY[SIPHASH_KEY_LENGTH];
+HASH_KEY[SIPHASHBS_KEY_LENGTH];
static pthread_mutex_t
SEED_MUTEX = PTHREAD_MUTEX_INITIALIZER;
@@ -31,7 +31,7 @@ static int
unsafe_init(void) {
int rc = -1;
- if (urandom_bytes(SIPHASH_KEY_LENGTH, &SIPHASH_KEY)) {
+ if (urandom_bytes(SIPHASHBS_KEY_LENGTH, &HASH_KEY)) {
logerr("urandom_bytes()");
goto out;
}
@@ -100,5 +100,5 @@ hash(
uint8_t out[HASH_OUTPUT_LENGTH]
) {
ensure_initialized();
- siphashbs(SIPHASH_KEY, inlen, in, out);
+ siphashbs(HASH_KEY, inlen, in, out);
}