Ruchika Gupta | 4acd8c4 | 2015-01-23 16:01:56 +0530 | [diff] [blame] | 1 | config RSA |
| 2 | bool "Use RSA Library" |
George McCollister | 7bb238e | 2017-03-16 16:17:06 -0500 | [diff] [blame] | 3 | select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5 |
Ruchika Gupta | 4acd8c4 | 2015-01-23 16:01:56 +0530 | [diff] [blame] | 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 Glass | e3ee2fb | 2016-02-22 22:55:43 -0700 | [diff] [blame] | 9 | 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 Gupta | 4acd8c4 | 2015-01-23 16:01:56 +0530 | [diff] [blame] | 15 | |
Eugeniu Rosca | dcf36e9 | 2018-04-21 14:00:10 +0200 | [diff] [blame] | 16 | if RSA |
| 17 | |
Teddy Reed | 5021e3c | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 18 | config SPL_RSA |
| 19 | bool "Use RSA Library within SPL" |
Teddy Reed | 5021e3c | 2016-06-09 19:18:44 -0700 | [diff] [blame] | 20 | |
Ruchika Gupta | 4acd8c4 | 2015-01-23 16:01:56 +0530 | [diff] [blame] | 21 | config RSA_SOFTWARE_EXP |
| 22 | bool "Enable driver for RSA Modular Exponentiation in software" |
Eugeniu Rosca | dcf36e9 | 2018-04-21 14:00:10 +0200 | [diff] [blame] | 23 | depends on DM |
Ruchika Gupta | 4acd8c4 | 2015-01-23 16:01:56 +0530 | [diff] [blame] | 24 | help |
| 25 | Enables driver for modular exponentiation in software. This is a RSA |
| 26 | algorithm used in FIT image verification. It required RSA Key as |
| 27 | input. |
| 28 | See doc/uImage.FIT/signature.txt for more details. |
| 29 | |
| 30 | config RSA_FREESCALE_EXP |
| 31 | bool "Enable RSA Modular Exponentiation with FSL crypto accelerator" |
Eugeniu Rosca | dcf36e9 | 2018-04-21 14:00:10 +0200 | [diff] [blame] | 32 | depends on DM && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5 |
Ruchika Gupta | 4acd8c4 | 2015-01-23 16:01:56 +0530 | [diff] [blame] | 33 | help |
| 34 | Enables driver for RSA modular exponentiation using Freescale cryptographic |
| 35 | accelerator - CAAM. |
| 36 | |
| 37 | endif |