]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib/crypto: Enable more algorithms in cert verification
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 19 Jan 2022 11:54:41 +0000 (13:54 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 19 Jan 2022 15:16:33 +0000 (16:16 +0100)
commit8699af63b8a5ea36c415b97079651ca02a0aafa5
treea6da46dea46cb1be51e356b4fc2aac30a2e2400b
parent38040a63a3e838a1eeb56c7d18875be485b14f5c
lib/crypto: Enable more algorithms in cert verification

Right now the code explicitly limits us to sha1,256 hashes with RSA2048
encryption.  But the limitation is artificial since U-Boot supports
a wider range of algorithms.

The internal image_get_[checksum|crypto]_algo() functions expect an
argument in the format of <checksum>,<crypto>.  So let's remove the size
checking and create the needed string on the fly in order to support
more hash/signing combinations.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/crypto/public_key.c