]> git.baikalelectronics.ru Git - uboot.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)
commit52f3a66d99380996247bdf84278ec744aaad91c0
treea9e87dde0c1072b2b4096edcbdda61fb3da3e448
parent4124e0a062315b01523d856c3a42bae4a6e3d431
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