]> Git Repo - J-u-boot.git/commit - lib/rsa/rsa-mod-exp.c
rsa: Split the rsa-verify to separate the modular exponentiation
authorRuchika Gupta <[email protected]>
Fri, 23 Jan 2015 10:31:50 +0000 (16:01 +0530)
committerSimon Glass <[email protected]>
Fri, 30 Jan 2015 00:09:58 +0000 (17:09 -0700)
commitfc2f4246b4b3b750e8c5aa08440ec5e1c952088e
treeae15e8380d8b534d265e07d7c44e4e702d5cf273
parent49cad54788a64a296567abadcd736fdbe47cc3a3
rsa: Split the rsa-verify to separate the modular exponentiation

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 <[email protected]>
CC: Simon Glass <[email protected]>
Acked-by: Simon Glass <[email protected]>
include/u-boot/rsa-mod-exp.h [new file with mode: 0644]
lib/rsa/Makefile
lib/rsa/rsa-mod-exp.c [new file with mode: 0644]
lib/rsa/rsa-verify.c
tools/Makefile
This page took 0.036933 seconds and 4 git commands to generate.