mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
zero the context, in case we forget to initialize some members
This commit is contained in:
@@ -178,6 +178,8 @@ int argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen,
|
||||
uint8_t *out;
|
||||
int ret;
|
||||
|
||||
memset(&ctx, 0, sizeof ctx);
|
||||
|
||||
/* max values, to be updated in decode_string */
|
||||
ctx.adlen = 512;
|
||||
ctx.saltlen = 512;
|
||||
|
||||
Reference in New Issue
Block a user