
On 26 January 2015 at 06:39, Simon Glass sjg@chromium.org wrote:
On 23 January 2015 at 03:31, Ruchika Gupta ruchika.gupta@freescale.com wrote:
Currently the hash functions used in RSA are called directly from the sha1 and sha256 libraries. Change the RSA checksum library to use the progressive hash API's registered with struct hash_algo. This will allow the checksum library to use the hardware accelerated progressive hash API's once available.
Signed-off-by: Ruchika Gupta ruchika.gupta@freescale.com CC: Simon Glass sjg@chromium.org
Changes in v6: Removed changes in ls1021aqds.h accidently included in this patch
Changes in v5: Both tools and uboot use the same code in rsa-checksum.c
Changes in v4: No changes in this patch. Still under discussion
Changes in v3: Modified rsa-verify to check for return from checksum function
Changes in v2: Added generic function hash_calculate. Pass an additional argument as name of algorithm.
common/image-sig.c | 6 +++--- include/image.h | 5 +++-- include/u-boot/rsa-checksum.h | 17 +++++++++++---- lib/rsa/rsa-checksum.c | 50 ++++++++++++++++++++++++++----------------- lib/rsa/rsa-verify.c | 7 +++++- 5 files changed, 55 insertions(+), 30 deletions(-)
Acked-by: Simon Glass sjg@chromium.org
I had to make a tweak to include/configs/ti_am335x_common.h to avoid a build breakage. With that:
Applied to u-boot-dm, thanks!