[Cryptech-Commits] [sw/stm32] branch rsa_timing updated: Initialize C_len arg to hal_aes_keywrap, or suffer unpredictable failures.
git at cryptech.is
git at cryptech.is
Tue Jan 15 18:52:30 UTC 2019
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch rsa_timing
in repository sw/stm32.
The following commit(s) were added to refs/heads/rsa_timing by this push:
new 93a9952 Initialize C_len arg to hal_aes_keywrap, or suffer unpredictable failures.
93a9952 is described below
commit 93a9952c90b4e8a96c6787ffc92e233ce097f645
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Tue Jan 15 13:52:18 2019 -0500
Initialize C_len arg to hal_aes_keywrap, or suffer unpredictable failures.
---
projects/cli-test/mgmt-timing.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/projects/cli-test/mgmt-timing.c b/projects/cli-test/mgmt-timing.c
index d3e0245..c1ad3c3 100644
--- a/projects/cli-test/mgmt-timing.c
+++ b/projects/cli-test/mgmt-timing.c
@@ -520,7 +520,7 @@ static int cmd_timing_hal_aes_keyunwrap(struct cli_def *cli, const char *command
}
uint8_t wrapped[HAL_KS_WRAPPED_KEYSIZE];
- size_t wrapped_len;
+ size_t wrapped_len = sizeof(wrapped);
if ((err = hal_aes_keywrap(NULL, kek, kek_len, der, der_len, wrapped, &wrapped_len)) != LIBHAL_OK) {
cli_print(cli, "hal_aes_keywrap: %s", hal_error_string(err));
return CLI_ERROR;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list