From 071a1afde3ff364f66380c35feef4f87413f0368 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 12 Feb 2017 22:34:15 +0100 Subject: [PATCH] C++ compat --- test/default/xchacha20.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/default/xchacha20.c b/test/default/xchacha20.c index 4d25404f..1337ec41 100644 --- a/test/default/xchacha20.c +++ b/test/default/xchacha20.c @@ -31,11 +31,11 @@ tv_hchacha20(void) unsigned char *out2; int i; - constant = sodium_malloc(crypto_core_hchacha20_CONSTBYTES); - key = sodium_malloc(crypto_core_hchacha20_KEYBYTES); - in = sodium_malloc(crypto_core_hchacha20_INPUTBYTES); - out = sodium_malloc(crypto_core_hchacha20_OUTPUTBYTES); - out2 = sodium_malloc(crypto_core_hchacha20_OUTPUTBYTES); + constant = (unsigned char *) sodium_malloc(crypto_core_hchacha20_CONSTBYTES); + key = (unsigned char *) sodium_malloc(crypto_core_hchacha20_KEYBYTES); + in = (unsigned char *) sodium_malloc(crypto_core_hchacha20_INPUTBYTES); + out = (unsigned char *) sodium_malloc(crypto_core_hchacha20_OUTPUTBYTES); + out2 = (unsigned char *) sodium_malloc(crypto_core_hchacha20_OUTPUTBYTES); for (i = 0; i < (sizeof tv) / (sizeof tv[0]) + 10; i++) { tv = &tvs[i]; sodium_hex2bin(key, crypto_core_hchacha20_KEYBYTES,