image: Add RSA support for image signing
authorSimon Glass <sjg@chromium.org>
Thu, 13 Jun 2013 22:10:02 +0000 (15:10 -0700)
committerTom Rini <trini@ti.com>
Wed, 26 Jun 2013 14:18:56 +0000 (10:18 -0400)
commit19c402afa2e1190f596f35a84ac049b10d814f1f
tree4f4d2302f4b6fa01e9a2214dee6bfe75e220a010
parent56518e71041fafdfd7af3a24f263b0a22efbeda9
image: Add RSA support for image signing

RSA provides a public key encryption facility which is ideal for image
signing and verification.

Images are signed using a private key by mkimage. Then at run-time, the
images are verified using a private key.

This implementation uses openssl for the host part (mkimage). To avoid
bringing large libraries into the U-Boot binary, the RSA public key
is encoded using a simple numeric representation in the device tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Makefile
README
common/image-sig.c
config.mk
include/rsa.h [new file with mode: 0644]
lib/rsa/Makefile [new file with mode: 0644]
lib/rsa/rsa-sign.c [new file with mode: 0644]
lib/rsa/rsa-verify.c [new file with mode: 0644]
tools/Makefile