summaryrefslogtreecommitdiff
path: root/lib/rsa/Makefile
diff options
context:
space:
mode:
authorAKASHI Takahiro <[email protected]>2020-02-21 15:12:58 +0900
committerTom Rini <[email protected]>2020-03-12 08:20:39 -0400
commite0d310b098b1e3dd2ad4e0e4efbbb81b90ae4bc7 (patch)
tree3dde95fd0f55216aa7d094a1c057f5984f03f392 /lib/rsa/Makefile
parenta8fc3df8b96fb968e72d5f2f10d07322f81adc8a (diff)
lib: rsa: generate additional parameters for public key
In the current implementation of FIT_SIGNATURE, five parameters for a RSA public key are required while only two of them are essential. (See rsa-mod-exp.h and uImage.FIT/signature.txt) This is a result of considering relatively limited computer power and resources on embedded systems, while such a assumption may not be quite practical for other use cases. In this patch, added is a function, rsa_gen_key_prop(), which will generate additional parameters for other uses, in particular UEFI secure boot, on the fly. Note: the current code uses some "big number" routines from BearSSL for the calculation. Signed-off-by: AKASHI Takahiro <[email protected]>
Diffstat (limited to 'lib/rsa/Makefile')
-rw-r--r--lib/rsa/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rsa/Makefile b/lib/rsa/Makefile
index c07305188e0..14ed3cb4012 100644
--- a/lib/rsa/Makefile
+++ b/lib/rsa/Makefile
@@ -6,4 +6,5 @@
# Wolfgang Denk, DENX Software Engineering, [email protected].
obj-$(CONFIG_$(SPL_)RSA_VERIFY) += rsa-verify.o rsa-checksum.o
+obj-$(CONFIG_RSA_VERIFY_WITH_PKEY) += rsa-keyprop.o
obj-$(CONFIG_RSA_SOFTWARE_EXP) += rsa-mod-exp.o