C++ compat
This commit is contained in:
parent
8a2833f01a
commit
6a60818982
@ -13,7 +13,8 @@ main(void)
|
|||||||
size_t h, i, j;
|
size_t h, i, j;
|
||||||
|
|
||||||
assert(crypto_generichash_statebytes() >= sizeof *st);
|
assert(crypto_generichash_statebytes() >= sizeof *st);
|
||||||
st = sodium_malloc(crypto_generichash_statebytes());
|
st = (crypto_generichash_state *)
|
||||||
|
sodium_malloc(crypto_generichash_statebytes());
|
||||||
for (h = 0; h < crypto_generichash_KEYBYTES_MAX; ++h) {
|
for (h = 0; h < crypto_generichash_KEYBYTES_MAX; ++h) {
|
||||||
k[h] = (unsigned char) h;
|
k[h] = (unsigned char) h;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user