From: Tom Rini Date: Thu, 12 Mar 2020 16:45:27 +0000 (-0400) Subject: Merge branch '2020-03-12-rsa-improvements' into next X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=e24f0a39d0daa2d8c597650aeb3f559d44a195ae;p=u-boot.git Merge branch '2020-03-12-rsa-improvements' into next (Description from AKASHI Takahiro) extend rsa_verify() for UEFI secure boot: The current rsa_verify() requires five parameters for a RSA public key for efficiency while RSA, in theory, requires only two. In addition, those parameters are expected to come from FIT image. So this function won't fit very well when we want to use it for the purpose of implementing UEFI secure boot, in particular, image authentication as well as variable authentication, where the essential two parameters are set to be retrieved from one of X509 certificates in signature database. So, in this patch, additional three parameters will be calculated on the fly when rsa_verify() is called without fdt which should contain parameters above. This calculation heavily relies on "big-number (or multi-precision) library." Therefore some routines from BearSSL under MIT license are imported in this implementation. --- e24f0a39d0daa2d8c597650aeb3f559d44a195ae