[PATCH v3 2/6] lib/rsa: Make fdt_add_bignum() available outside of RSA code
Simon Glass
sjg at chromium.org
Wed Jan 13 17:10:23 CET 2021
On Thu, 7 Jan 2021 at 15:33, Alexandru Gagniuc <mr.nuke.me at gmail.com> wrote:
>
> 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 at gmail.com>
> ---
> include/u-boot/fdt-libcrypto.h | 27 +++++++++++++
> lib/fdt-libcrypto.c | 72 ++++++++++++++++++++++++++++++++++
> lib/rsa/rsa-sign.c | 65 +-----------------------------
> tools/Makefile | 1 +
> 4 files changed, 101 insertions(+), 64 deletions(-)
> create mode 100644 include/u-boot/fdt-libcrypto.h
> create mode 100644 lib/fdt-libcrypto.c
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list