commit | 7bd215a7be2bfac84dadf78e2f771400e163bd05 | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome.forissier@linaro.org> | Mon Mar 06 10:26:36 2023 +0100 |
committer | Jérôme Forissier <jerome@forissier.org> | Tue Mar 14 21:48:51 2023 +0100 |
tree | 3e0dda539c864fe449fadfa3bc8df1d6d6068896 | |
parent | 9cf576a9f597db75d892cab78eae646151a7ecc0 [diff] |
core: mbedtls: ecc_get_keysize(): do not check algorithm against curve Since commit fe2fd3ff46c0 ("GP131: Add TEE_ALG_ECDH_DERIVE_SHARED_SECRET and TEE_ALG_ECDSA_SHA*"), the algorithm and curve values are not tied as closely as before. The GP TEE Internal Core API specification v1.3.1 mentions "ECDSA algorithm identifiers should be tied to the size of the digest, not the key. The key size information is provided with the key material." (Table B-2). In other words, a number of algorithm values are valid for use with any given ECC curve. Therefore remove the algorithm checks in ecc_get_keysize(). This function is not the proper place anyways. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@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