Closed metadings closed 8 years ago
We have there in crypto_sign_ed25519
unsigned char nonce[64];
and some lines later
crypto_hash_sha512_final(&hs, nonce);
Now I'm not that hard in C, but isn't this undefined behavior, to declare a variable, not initializing it (or initializing it to NULs), and then going to use it?
Oh I see there is unsigned char *out in crypto_hash_sha512_final.
unsigned char *out
crypto_hash_sha512_final
Hi,
You are correct, crypto_hash_sha512_final() puts the hash into the second function parameter.
crypto_hash_sha512_final()
We have there in crypto_sign_ed25519
and some lines later
Now I'm not that hard in C, but isn't this undefined behavior, to declare a variable, not initializing it (or initializing it to NULs), and then going to use it?