Skip to contentSkip to conversation

rsa : Compile Modular Exponentiation files based on CONFIG_RSA_SOFTWARE_EXP

PATCH New Gaurav Rana 3 participants 3 messages Feb 27, 2015 – Mar 5, 2015 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rsa : Compile Modular Exponentiation files based on CONFIG_RSA_SOFTWARE_EXP

Remove dependency of rsa_mod_exp from CONFIG_FIT_SIGNATURE. As rsa modular exponentiation is an independent module and can be invoked independently.

---
Changes in v2:
add elaborated commit message.

 drivers/crypto/rsa_mod_exp/Makefile | 3 ++-
 lib/rsa/Makefile                    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/crypto/rsa_mod_exp/Makefile +2 -1
index 915b751..ae3dcf3 100644
@@ -4,4 +4,5 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-obj-$(CONFIG_RSA) += mod_exp_uclass.o mod_exp_sw.o
+obj-$(CONFIG_RSA) += mod_exp_uclass.o
+obj-$(CONFIG_RSA_SOFTWARE_EXP) += mod_exp_sw.o
lib/rsa/Makefile +2 -1
index cc25b3c..6867e50 100644
@@ -7,4 +7,5 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-obj-$(CONFIG_FIT_SIGNATURE) += rsa-verify.o rsa-checksum.o rsa-mod-exp.o
+obj-$(CONFIG_FIT_SIGNATURE) += rsa-verify.o rsa-checksum.o
+obj-$(CONFIG_RSA_SOFTWARE_EXP) += rsa-mod-exp.o
Signature · 1 line
1.8.1.4
#1 lore raw

PATCH v2 1/1 rsa : Compile Modular Exponentiation files based on CONFIG_RSA_SOFTWARE_EXP

Quoted 7 lines · Gaurav Rana

Remove dependency of rsa_mod_exp from CONFIG_FIT_SIGNATURE. As rsa modular exponentiation is an independent module and can be invoked independently.

Quoted 7 lines

---
Changes in v2:
add elaborated commit message.

 drivers/crypto/rsa_mod_exp/Makefile | 3 ++-
 lib/rsa/Makefile                    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
#2 lore raw

PATCH v2 1/1 rsa : Compile Modular Exponentiation files based on CONFIG_RSA_SOFTWARE_EXP

In reply to Gaurav Rana
Quoted 11 lines · Gaurav Rana

Remove dependency of rsa_mod_exp from CONFIG_FIT_SIGNATURE. As rsa modular exponentiation is an independent module and can be invoked independently.

---
Changes in v2:
add elaborated commit message.

Applied to u-boot-mpc85xx master, awaiting for upstream.

York