]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
rsa: Fix two errors in the implementation
authorSimon Glass <sjg@chromium.org>
Wed, 30 Jul 2014 16:00:17 +0000 (10:00 -0600)
committerTom Rini <trini@ti.com>
Sat, 9 Aug 2014 15:17:04 +0000 (11:17 -0400)
commit542671623129f1db947801d2756186b501c98c49
tree4eec89ac139e09980f5d81ade3cefb1a7ed1346a
parent8ac22a60e29c4d0925e3d640a3607eabb2732b26
rsa: Fix two errors in the implementation

1. Failure to set the return code correctly
2. Failure to detect the loop end condition when the value is equal to
the modulus.

Reported-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Signed-off-by: Simon Glass <sjg@chromium.org>
lib/rsa/rsa-sign.c
lib/rsa/rsa-verify.c