]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
rsa: add sha256-rsa2048 algorithm
authorHeiko Schocher <hs@denx.de>
Mon, 3 Mar 2014 11:19:26 +0000 (12:19 +0100)
committerTom Rini <trini@ti.com>
Fri, 21 Mar 2014 20:39:34 +0000 (16:39 -0400)
commit646257d1f4004855d486024527a4784bf57c4c4d
treea16c9627f823bcb68606b621fe9ff2fe493f90ed
parent2842c1c24269a05142802d25520e7cb9035e456c
rsa: add sha256-rsa2048 algorithm

based on patch from andreas@oetken.name:

http://patchwork.ozlabs.org/patch/294318/
commit message:
I currently need support for rsa-sha256 signatures in u-boot and found out that
the code for signatures is not very generic. Thus adding of different
hash-algorithms for rsa-signatures is not easy to do without copy-pasting the
rsa-code. I attached a patch for how I think it could be better and included
support for rsa-sha256. This is a fast first shot.

aditionally work:
- removed checkpatch warnings
- removed compiler warnings
- rebased against current head

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: andreas@oetken.name
Cc: Simon Glass <sjg@chromium.org>
14 files changed:
common/image-sig.c
doc/uImage.FIT/signature.txt
include/image.h
include/rsa-checksum.h [new file with mode: 0644]
include/rsa.h
lib/rsa/Makefile
lib/rsa/rsa-checksum.c [new file with mode: 0644]
lib/rsa/rsa-sign.c
lib/rsa/rsa-verify.c
test/vboot/sign-configs-sha1.its [moved from test/vboot/sign-configs.its with 100% similarity]
test/vboot/sign-configs-sha256.its [new file with mode: 0644]
test/vboot/sign-images-sha1.its [moved from test/vboot/sign-images.its with 100% similarity]
test/vboot/sign-images-sha256.its [new file with mode: 0644]
test/vboot/vboot_test.sh