From 1f405ef7f243201964e55aeaafe32c81b89f07b6 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 5 Nov 2013 22:30:39 -0800 Subject: [PATCH] void * casts for c++ compat --- src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c b/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c index b798c486..1ae6b926 100644 --- a/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c +++ b/src/libsodium/crypto_generichash/blake2/ref/blake2b-ref.c @@ -201,12 +201,12 @@ int blake2b_init_salt_personal( blake2b_state *S, const uint8_t outlen, P->inner_length = 0; memset( P->reserved, 0, sizeof( P->reserved ) ); if (salt != NULL) { - blake2b_param_set_salt( P, salt ); + blake2b_param_set_salt( P, (const uint8_t *) salt ); } else { memset( P->salt, 0, sizeof( P->salt ) ); } if (personal != NULL) { - blake2b_param_set_personal( P, personal ); + blake2b_param_set_personal( P, (const uint8_t *) personal ); } else { memset( P->personal, 0, sizeof( P->personal ) ); } @@ -264,12 +264,12 @@ int blake2b_init_key_salt_personal( blake2b_state *S, const uint8_t outlen, cons P->inner_length = 0; memset( P->reserved, 0, sizeof( P->reserved ) ); if (salt != NULL) { - blake2b_param_set_salt( P, salt ); + blake2b_param_set_salt( P, (const uint8_t *) salt ); } else { memset( P->salt, 0, sizeof( P->salt ) ); } if (personal != NULL) { - blake2b_param_set_personal( P, personal ); + blake2b_param_set_personal( P, (const uint8_t *) personal ); } else { memset( P->personal, 0, sizeof( P->personal ) ); }