Closed ct-clearhaus closed 6 years ago
:+1:
This is a part of https://github.com/clearhaus/aes256gcm_decrypt/pull/5 .
I am torn between
unsigned char iv[] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
and
unsigned char iv[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
So far I have chosen the latter, as it is not null/NUL terminated, i.e. sizeof(iv)
is 16. All other "strings" thrown around in the C code are not null/NUL terminated due to binary contents. It is just a matter of bikeshedding :slightly_smiling_face:
Suggestion:
WDYT?