hc
2024-03-26 e9199a72d842cbda78ac614eee5db7cdaa6f2530
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
config RSA
   bool "Use RSA Library"
   select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
   select RSA_SOFTWARE_EXP if !RSA_FREESCALE_EXP
   help
     RSA support. This enables the RSA algorithm used for FIT image
     verification in U-Boot.
     See doc/uImage.FIT/signature.txt for more details.
     The Modular Exponentiation algorithm in RSA is implemented using
     driver model. So CONFIG_DM needs to be enabled by default for this
     library to function.
     The signing part is build into mkimage regardless of this
     option. The software based modular exponentiation is built into
     mkimage irrespective of this option.
 
config SPL_RSA
   bool "Use RSA Library within SPL"
   depends on RSA
 
if RSA
config RSA_SOFTWARE_EXP
   bool "Enable driver for RSA Modular Exponentiation in software"
   depends on DM && RSA
   help
     Enables driver for modular exponentiation in software. This is a RSA
     algorithm used in FIT image verification. It required RSA Key as
     input.
     See doc/uImage.FIT/signature.txt for more details.
 
config RSA_FREESCALE_EXP
   bool "Enable RSA Modular Exponentiation with FSL crypto accelerator"
   depends on DM && RSA && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5
   help
   Enables driver for RSA modular exponentiation using Freescale cryptographic
   accelerator - CAAM.
 
config RSA_N_SIZE
   hex "Define the RSA N size"
   help
     The value is depended on different platforms. The RV1126/RV1109 is set to 0x100.
     The RK3568/RK3566 is set to 0x200.
 
config RSA_E_SIZE
   hex "Define the RSA E size"
   help
     The value is depended on different platforms. The RV1126/RV1109 is set to 0x100.
     The RK3568/RK3566 is set to 0x10.
 
config RSA_C_SIZE
   hex "Define the RSA C size"
   help
     The value is depended on different platforms.The RV1126/RV1109 is set to 0x14.
     The RK3568/RK3566 is set to 0x20.
 
endif