[U-Boot] [PATCH] rsa: add a more flexible way to support different hash algorithms (e.g. sha256)

2013-11-26 Thread andr...@oetken.name
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 inc

[U-Boot] [U-Boot v2] [PATCH] rsa: add a more flexible way to support different hash algorithms (e.g. sha256)

2013-11-27 Thread andr...@oetken.name
As proposed by Heiko I made some small changes and verified the patch with the checkpatch-script.     From 169f40e72fceb222bb15dd59c1337f42371e97a5 Mon Sep 17 00:00:00 2001 From: Andreas Oetken Date: Wed, 27 Nov 2013 13:09:19 +0100 Subject: [PATCH] Added rsa-sha256 support. Signed-off-by: Andrea