Searched hist:ecf9194dbdeaa07d99c44b78d65b1e65ba27817f (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/lib/libtomcrypt/ |
| H A D | ecc.c | ecf9194dbdeaa07d99c44b78d65b1e65ba27817f Wed Mar 09 15:59:53 UTC 2022 Jerome Forissier <jerome@forissier.org> core: ltc: sm2: use proper curve during key generation
TEE_GenerateKey() generates an invalid key pair for SM2: the point is not on the curve, it is on the NIST P256 curve instead. Fix this by looking up the proper curve name before key generation.
Link: https://github.com/OP-TEE/optee_os/issues/5211 Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
|