Please sign in to comment.
ltc: Implement mp_rand for mpa_desc
When enabling the flag LTC_RSA_BLINDING the code uses the mp_rand() function, which isn't implemented for the mpa_desc descriptor. Implement it as rand() in mpa_desc and mpa_get_random_digits() in libmpa. Fixes: OP-TEE-2016-0003 which was reported by Applus+ Laboratories. Signed-off-by: Joakim Bech <firstname.lastname@example.org> Reviewed-by: Jerome Forissier <email@example.com> Reviewed-by: Jens Wiklander <firstname.lastname@example.org> Acked-by: Etienne Carriere <email@example.com> Tested-by: Jerome Forissier <firstname.lastname@example.org> (HiKey, GP) Tested-by: Etienne Carriere <email@example.com> (b2260, GP)
- Loading branch information...
Showing with 46 additions and 0 deletions.