C++ compat
This commit is contained in:
parent
8ee4950eb3
commit
7fa840e486
@ -30,8 +30,8 @@ int main(void)
|
|||||||
unsigned char *mac;
|
unsigned char *mac;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
c = sodium_malloc(131 + crypto_secretbox_MACBYTES + 1);
|
c = (unsigned char *) sodium_malloc(131 + crypto_secretbox_MACBYTES + 1);
|
||||||
mac = sodium_malloc(crypto_secretbox_MACBYTES);
|
mac = (unsigned char *) sodium_malloc(crypto_secretbox_MACBYTES);
|
||||||
assert(c != NULL && mac != NULL);
|
assert(c != NULL && mac != NULL);
|
||||||
|
|
||||||
crypto_secretbox_easy(c, m, 131, nonce, firstkey);
|
crypto_secretbox_easy(c, m, 131, nonce, firstkey);
|
||||||
|
Loading…
Reference in New Issue
Block a user