]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib/rsa: Make fdt_add_bignum() available outside of RSA code
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Fri, 19 Feb 2021 18:45:11 +0000 (12:45 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 14 Apr 2021 19:06:08 +0000 (15:06 -0400)
commit4c17e5f69170bf033df7b4f1a2b87fa72f18aaf5
treea9e87dde0c1072b2b4096edcbdda61fb3da3e448
parent0bcb28dfb946b32ed7550fc4c24c5dcea6718554
lib/rsa: Make fdt_add_bignum() available outside of RSA code

fdt_add_bignum() is useful for algorithms other than just RSA. To
allow its use for ECDSA, move it to a common file under lib/.

The new file is suffixed with '-libcrypto' because it has a direct
dependency on openssl. This is due to the use of the "BIGNUM *" type.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/u-boot/fdt-libcrypto.h [new file with mode: 0644]
lib/fdt-libcrypto.c [new file with mode: 0644]
lib/rsa/rsa-sign.c
tools/Makefile