xref: /openbmc/u-boot/lib/rsa/Kconfig (revision 4f7bd3b2)
1d9f23c7fSRuchika Guptaconfig RSA
2d9f23c7fSRuchika Gupta	bool "Use RSA Library"
3*4f7bd3b2SChia-Wei Wang	select RSA_ASPEED_EXP if ARCH_ASPEED && ASPEED_ACRY
4f4e9ff71SGeorge McCollister	select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
55620c876SChia-Wei Wang	select RSA_SOFTWARE_EXP if !RSA_FREESCALE_EXP && !RSA_ASPEED_EXP
6d9f23c7fSRuchika Gupta	help
7d9f23c7fSRuchika Gupta	  RSA support. This enables the RSA algorithm used for FIT image
8d9f23c7fSRuchika Gupta	  verification in U-Boot.
9d9f23c7fSRuchika Gupta	  See doc/uImage.FIT/signature.txt for more details.
1073223f0eSSimon Glass	  The Modular Exponentiation algorithm in RSA is implemented using
1173223f0eSSimon Glass	  driver model. So CONFIG_DM needs to be enabled by default for this
1273223f0eSSimon Glass	  library to function.
1373223f0eSSimon Glass	  The signing part is build into mkimage regardless of this
1473223f0eSSimon Glass	  option. The software based modular exponentiation is built into
1573223f0eSSimon Glass	  mkimage irrespective of this option.
16d9f23c7fSRuchika Gupta
1739883af3SEugeniu Roscaif RSA
1839883af3SEugeniu Rosca
1951c14cd1STeddy Reedconfig SPL_RSA
2051c14cd1STeddy Reed	bool "Use RSA Library within SPL"
2151c14cd1STeddy Reed
22d9f23c7fSRuchika Guptaconfig RSA_SOFTWARE_EXP
23d9f23c7fSRuchika Gupta	bool "Enable driver for RSA Modular Exponentiation in software"
2439883af3SEugeniu Rosca	depends on DM
25d9f23c7fSRuchika Gupta	help
26d9f23c7fSRuchika Gupta	  Enables driver for modular exponentiation in software. This is a RSA
27d9f23c7fSRuchika Gupta	  algorithm used in FIT image verification. It required RSA Key as
28d9f23c7fSRuchika Gupta	  input.
29d9f23c7fSRuchika Gupta	  See doc/uImage.FIT/signature.txt for more details.
30d9f23c7fSRuchika Gupta
31d9f23c7fSRuchika Guptaconfig RSA_FREESCALE_EXP
32d9f23c7fSRuchika Gupta	bool "Enable RSA Modular Exponentiation with FSL crypto accelerator"
3339883af3SEugeniu Rosca	depends on DM && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
34d9f23c7fSRuchika Gupta	help
35d9f23c7fSRuchika Gupta	Enables driver for RSA modular exponentiation using Freescale cryptographic
36d9f23c7fSRuchika Gupta	accelerator - CAAM.
37d9f23c7fSRuchika Gupta
385620c876SChia-Wei Wangconfig RSA_ASPEED_EXP
395620c876SChia-Wei Wang	bool "Enable RSA Modular Exponentiation with ASPEED crypto accelerator"
40*4f7bd3b2SChia-Wei Wang	depends on DM && ARCH_ASPEED && ASPEED_ACRY
415620c876SChia-Wei Wang	help
425620c876SChia-Wei Wang	Enables driver for RSA modular exponentiation using ASPEED RSA/ECC
435620c876SChia-Wei Wang	accelerator - ARCY
445620c876SChia-Wei Wang
45d9f23c7fSRuchika Guptaendif
46