1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 07:18:09 +00:00

hasher: use param_size in call to blake2b_InitPersonal

This commit is contained in:
Pavol Rusnak 2019-02-16 15:04:34 +01:00
parent 21391dc5be
commit ad51a5451c
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -52,7 +52,7 @@ void hasher_InitParam(Hasher *hasher, HasherType type, const void *param, uint32
blake2b_Init(&hasher->ctx.blake2b, 32); blake2b_Init(&hasher->ctx.blake2b, 32);
break; break;
case HASHER_BLAKE2B_PERSONAL: case HASHER_BLAKE2B_PERSONAL:
blake2b_InitPersonal(&hasher->ctx.blake2b, 32, hasher->param, 16); blake2b_InitPersonal(&hasher->ctx.blake2b, 32, hasher->param, hasher->param_size);
break; break;
} }
} }