[Cryptech-Commits] [sw/libhal] 02/02: Fix inverted length check.
git at cryptech.is
git at cryptech.is
Tue May 17 03:53:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch rpc
in repository sw/libhal.
commit c7a7c9a5913c56e4d555f8c1bb2b97a3068a8aae
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Mon May 16 23:16:58 2016 -0400
Fix inverted length check.
---
rpc_pkey.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rpc_pkey.c b/rpc_pkey.c
index dc8c808..0cf1a88 100644
--- a/rpc_pkey.c
+++ b/rpc_pkey.c
@@ -643,7 +643,7 @@ static hal_error_t pkey_local_sign_ecdsa(uint8_t *keybuf, const size_t keybuf_le
(err = hal_rpc_hash_get_digest_length(alg, &input_len)) != HAL_OK)
return err;
- if (input_len < signature_max)
+ if (input_len > signature_max)
return HAL_ERROR_RESULT_TOO_LONG;
if ((err = hal_rpc_hash_finalize(hash, signature, input_len)) != HAL_OK)
More information about the Commits
mailing list