blob: 86df0a0dd83b8c60f4995f801d186d58318cc3e9 [file] [log] [blame]
Ruchika Guptad9f23c72015-01-23 16:01:56 +05301config RSA
2 bool "Use RSA Library"
3 select RSA_FREESCALE_EXP if FSL_CAAM
4 select RSA_SOFTWARE_EXP if !RSA_FREESCALE_EXP
5 help
6 RSA support. This enables the RSA algorithm used for FIT image
7 verification in U-Boot.
8 See doc/uImage.FIT/signature.txt for more details.
Simon Glass73223f02016-02-22 22:55:43 -07009 The Modular Exponentiation algorithm in RSA is implemented using
10 driver model. So CONFIG_DM needs to be enabled by default for this
11 library to function.
12 The signing part is build into mkimage regardless of this
13 option. The software based modular exponentiation is built into
14 mkimage irrespective of this option.
Ruchika Guptad9f23c72015-01-23 16:01:56 +053015
16if RSA
17config RSA_SOFTWARE_EXP
18 bool "Enable driver for RSA Modular Exponentiation in software"
19 depends on DM && RSA
20 help
21 Enables driver for modular exponentiation in software. This is a RSA
22 algorithm used in FIT image verification. It required RSA Key as
23 input.
24 See doc/uImage.FIT/signature.txt for more details.
25
26config RSA_FREESCALE_EXP
27 bool "Enable RSA Modular Exponentiation with FSL crypto accelerator"
28 depends on DM && RSA && FSL_CAAM
29 help
30 Enables driver for RSA modular exponentiation using Freescale cryptographic
31 accelerator - CAAM.
32
33endif