mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
C++ compat
This commit is contained in:
@@ -13,7 +13,8 @@ main(void)
|
||||
size_t h, i, j;
|
||||
|
||||
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) {
|
||||
k[h] = (unsigned char) h;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user