blob: 18a075c17478dc6215bfad66595b37e791b754bb [file] [log] [blame]
Ruchika Guptad9f23c72015-01-23 16:01:56 +05301config RSA
2 bool "Use RSA Library"
George McCollisterf4e9ff72017-03-16 16:17:06 -05003 select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
Ruchika Guptad9f23c72015-01-23 16:01:56 +05304 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
Eugeniu Rosca39883af2018-04-21 14:00:10 +020016if RSA
17
Teddy Reed51c14cd2016-06-09 19:18:44 -070018config SPL_RSA
19 bool "Use RSA Library within SPL"
Teddy Reed51c14cd2016-06-09 19:18:44 -070020
AKASHI Takahirob983cc22020-02-21 15:12:55 +090021config SPL_RSA_VERIFY
22 bool
23 help
24 Add RSA signature verification support in SPL.
25
26config RSA_VERIFY
27 bool
28 help
29 Add RSA signature verification support.
30
Ruchika Guptad9f23c72015-01-23 16:01:56 +053031config RSA_SOFTWARE_EXP
32 bool "Enable driver for RSA Modular Exponentiation in software"
Eugeniu Rosca39883af2018-04-21 14:00:10 +020033 depends on DM
Ruchika Guptad9f23c72015-01-23 16:01:56 +053034 help
35 Enables driver for modular exponentiation in software. This is a RSA
36 algorithm used in FIT image verification. It required RSA Key as
37 input.
38 See doc/uImage.FIT/signature.txt for more details.
39
40config RSA_FREESCALE_EXP
41 bool "Enable RSA Modular Exponentiation with FSL crypto accelerator"
Eugeniu Rosca39883af2018-04-21 14:00:10 +020042 depends on DM && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
Ruchika Guptad9f23c72015-01-23 16:01:56 +053043 help
44 Enables driver for RSA modular exponentiation using Freescale cryptographic
45 accelerator - CAAM.
46
47endif