commit | 21d42417f949fe01745870eb02b25c13bf413fdf | [log] [tgz] |
---|---|---|
author | Valerio Setti <valerio.setti@nordicsemi.no> | Fri Jun 30 17:37:23 2023 +0200 |
committer | Valerio Setti <valerio.setti@nordicsemi.no> | Tue Jul 11 11:28:22 2023 +0200 |
tree | d079e768754a08b26e63f24dc7c671ce528a1f39 | |
parent | 6b062eeed0acedbeca4ae738723564ebeee5193c [diff] [blame] |
pkparse: always check all private keys on import This allows to remove explicit calls to mbedtls_ecp_check_privkey() in pkparse.c. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
diff --git a/library/ecp.c b/library/ecp.c index 086acb3..4e28b73 100644 --- a/library/ecp.c +++ b/library/ecp.c
@@ -3277,6 +3277,7 @@ ECP_CURVE448_KEY_SIZE * 8 - 1, 1) ); } + MBEDTLS_MPI_CHK(mbedtls_ecp_check_privkey(&key->grp, &key->d)); } #endif