[U-Boot] [PATCH 1/9] [v3] rsa: Split the rsa-verify to separate the modular exponentiation
Simon Glass
sjg at chromium.org
Wed Dec 24 01:47:45 CET 2014
Hi Ruchika,
On 23 December 2014 at 04:32, Ruchika Gupta <ruchika.gupta at freescale.com> wrote:
> Public exponentiation which is required in rsa verify functionality is
> tightly integrated with verification code in rsa_verify.c. The patch
> splits the file into twp separating the modular exponentiation.
>
> 1. rsa-verify.c
> - The file parses device tree keys node to fill a keyprop structure.
> The keyprop structure can then be converted to implementation specific
> format.
> (struct rsa_pub_key for sw implementation)
> - The parsed device tree node is then passed to a generic rsa_mod_exp
> function.
>
> 2. rsa-mod-exp.c
> Move the software specific functions related to modular exponentiation
> from rsa-verify.c to this file.
>
> Signed-off-by: Ruchika Gupta <ruchika.gupta at freescale.com>
> CC: Simon Glass <sjg at chromium.org>
> ---
> Changes in v3:
> Kconfig moved to separate patch. This patch just splits the file now
>
> Changes in v2:
> Addressed few of Simon Glass's comments:
> - Kconfig option added for RSA
> - Comments added for new keyprop struct
>
> include/u-boot/rsa-mod-exp.h | 43 ++++++
> lib/rsa/Makefile | 2 +-
> lib/rsa/rsa-mod-exp.c | 307 ++++++++++++++++++++++++++++++++++++++++
> lib/rsa/rsa-verify.c | 329 ++++++++-----------------------------------
> tools/Makefile | 3 +-
> 5 files changed, 408 insertions(+), 276 deletions(-)
> create mode 100644 include/u-boot/rsa-mod-exp.h
> create mode 100644 lib/rsa/rsa-mod-exp.c
Acked-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list