]> git.baikalelectronics.ru Git - uboot.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)
commit629570ef1efe27f8fb6a086485557df2e9fd58d2
treea6da46dea46cb1be51e356b4fc2aac30a2e2400b
parent515e139a4c71966ef10a6fc62aab13d74be724b8
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