commit | 73d0645e98f89b4bfffbfad54afa2c5f5c4203df | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome@forissier.org> | Wed Mar 09 20:15:46 2022 +0100 |
committer | Jerome Forissier <jerome@forissier.org> | Tue Mar 15 14:30:00 2022 +0100 |
tree | 6421b22ccbc38897ec6ebefd17e68a220f95f883 | |
parent | 49d5f5fc69c72b8972429a108441206e3707c91d [diff] |
core: mbedtls: add curve type to domain parameter group ID conversion MBedTLS functions mbedtls_ecp_group_load() and mbedtls_ecdsa_genkey() take a group ID parameter of type mbedtls_ecp_group_id which is an enum (MBEDTLS_ECP_DP_SECP192R1, etc.). The code in lib/libmbedtls/core/ecc.c incorrectly passes a uint32_t TEE curve ID instead (TEE_ECC_CURVE_NIST_P192, etc.). By chance the values happen to be the same for all the NIST curves, but not for SM2. Fix that by introducing a conversion function. Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers