commit | 49d5f5fc69c72b8972429a108441206e3707c91d | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome@forissier.org> | Wed Mar 09 18:04:46 2022 +0100 |
committer | Jerome Forissier <jerome@forissier.org> | Tue Mar 15 14:29:51 2022 +0100 |
tree | 2fc9e8314aa54e9f232000b6579d9a4e076f09c0 | |
parent | 9227f4eac29e28b0ce2d5d37594bd95d9f59e136 [diff] |
core: mbedtls: sm2: set curve by default when key type is SM2 crypto_asym_alloc_ecc_keypair() and crypto_asym_alloc_ecc_public_key() should set the curve field of the ecc_key structure to TEE_ECC_CURVE_SM2 when the key type is one of TEE_TYPE_SM2_{DSA,KEP,PKE}_KEYPAIR because the user is not supposed to provide any TEE_ATTR_ECC_CURVE attribute, contrary to other ECC algorithms. 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