mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-20 05:18:08 +00:00
hasher: use param_size in call to blake2b_InitPersonal
This commit is contained in:
parent
21391dc5be
commit
ad51a5451c
2
hasher.c
2
hasher.c
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user