lib: Add support for ECDSA image signing
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>
Fri, 19 Feb 2021 18:45:12 +0000 (12:45 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 14 Apr 2021 19:06:08 +0000 (15:06 -0400)
commited6c9e0b6668a05d62f5d1b75aecaf246ba51042
treee8e4fe47b24fe1c25fb3dffb79d25276864dd4a9
parent4c17e5f69170bf033df7b4f1a2b87fa72f18aaf5
lib: Add support for ECDSA image signing

mkimage supports rsa2048, and rsa4096 signatures. With newer silicon
now supporting hardware-accelerated ECDSA, it makes sense to expand
signing support to elliptic curves.

Implement host-side ECDSA signing and verification with libcrypto.
Device-side implementation of signature verification is beyond the
scope of this patch.

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