1menuconfig RT_USING_HWCRYPTO
2        bool "Using Hardware Crypto drivers"
3        default n
4
5    if RT_USING_HWCRYPTO
6        config RT_HWCRYPTO_DEFAULT_NAME
7            string "Hardware crypto device name"
8            default "hwcryto"
9
10        config RT_HWCRYPTO_IV_MAX_SIZE
11            int "IV max size"
12            default "16"
13
14        config RT_HWCRYPTO_KEYBIT_MAX_SIZE
15            int "Key max bit length"
16            default 256
17
18        config RT_HWCRYPTO_USING_GCM
19            bool "Using Hardware GCM"
20            default n
21
22        config RT_HWCRYPTO_USING_AES
23            bool "Using Hardware AES"
24            default n
25
26        if RT_HWCRYPTO_USING_AES
27            config RT_HWCRYPTO_USING_AES_ECB
28                bool "Using Hardware AES ECB mode"
29                default y
30
31            config RT_HWCRYPTO_USING_AES_CBC
32                bool "Using Hardware AES CBC mode"
33                default n
34
35            config RT_HWCRYPTO_USING_AES_CFB
36                bool "Using Hardware AES CFB mode"
37                default n
38
39            config RT_HWCRYPTO_USING_AES_CTR
40                bool "Using Hardware AES CTR mode"
41                default n
42
43            config RT_HWCRYPTO_USING_AES_OFB
44                bool "Using Hardware AES OFB mode"
45                default n
46        endif
47
48        config RT_HWCRYPTO_USING_DES
49            bool "Using Hardware DES"
50            default n
51
52        if RT_HWCRYPTO_USING_DES
53            config RT_HWCRYPTO_USING_DES_ECB
54                bool "Using Hardware DES ECB mode"
55                default y
56
57            config RT_HWCRYPTO_USING_DES_CBC
58                bool "Using Hardware DES CBC mode"
59                default n
60        endif
61
62        config RT_HWCRYPTO_USING_3DES
63            bool "Using Hardware 3DES"
64            default n
65
66        if RT_HWCRYPTO_USING_3DES
67            config RT_HWCRYPTO_USING_3DES_ECB
68                bool "Using Hardware 3DES ECB mode"
69                default y
70
71            config RT_HWCRYPTO_USING_3DES_CBC
72                bool "Using Hardware 3DES CBC mode"
73                default n
74        endif
75
76        config RT_HWCRYPTO_USING_RC4
77            bool "Using Hardware RC4"
78            default n
79
80        config RT_HWCRYPTO_USING_MD5
81            bool "Using Hardware MD5"
82            default n
83
84        config RT_HWCRYPTO_USING_SHA1
85            bool "Using Hardware SHA1"
86            default n
87
88        config RT_HWCRYPTO_USING_SHA2
89            bool "Using Hardware SHA2"
90            default n
91
92        if RT_HWCRYPTO_USING_SHA2
93            config RT_HWCRYPTO_USING_SHA2_224
94                bool "Using Hardware SHA2_224 mode"
95                default n
96
97            config RT_HWCRYPTO_USING_SHA2_256
98                bool "Using Hardware SHA2_256 mode"
99                default y
100
101            config RT_HWCRYPTO_USING_SHA2_384
102                bool "Using Hardware SHA2_384 mode"
103                default n
104
105            config RT_HWCRYPTO_USING_SHA2_512
106                bool "Using Hardware SHA2_512 mode"
107                default n
108        endif
109
110        config RT_HWCRYPTO_USING_RNG
111            bool "Using Hardware RNG"
112            default n
113
114        config RT_HWCRYPTO_USING_CRC
115            bool "Using Hardware CRC"
116            default n
117
118        if RT_HWCRYPTO_USING_CRC
119            config RT_HWCRYPTO_USING_CRC_07
120                bool "Using Hardware CRC-8 0x07 polynomial"
121                default n
122
123            config RT_HWCRYPTO_USING_CRC_8005
124                bool "Using Hardware CRC-16 0x8005 polynomial"
125                default n
126
127            config RT_HWCRYPTO_USING_CRC_1021
128                bool "Using Hardware CRC-16 0x1021 polynomial"
129                default n
130
131            config RT_HWCRYPTO_USING_CRC_3D65
132                bool "Using Hardware CRC-16 0x3D65 polynomial"
133                default n
134
135            config RT_HWCRYPTO_USING_CRC_04C11DB7
136                bool "Using Hardware CRC-32 0x04C11DB7 polynomial"
137                default n
138        endif
139
140        config RT_HWCRYPTO_USING_BIGNUM
141            bool "Using Hardware bignum"
142            default n
143
144        if RT_HWCRYPTO_USING_BIGNUM
145            config RT_HWCRYPTO_USING_BIGNUM_EXPTMOD
146                bool "Using Hardware bignum expt_mod operation"
147                default y
148
149            config RT_HWCRYPTO_USING_BIGNUM_MULMOD
150                bool "Using Hardware bignum mul_mod operation"
151                default y
152
153            config RT_HWCRYPTO_USING_BIGNUM_MUL
154                bool "Using Hardware bignum mul operation"
155                default n
156
157            config RT_HWCRYPTO_USING_BIGNUM_ADD
158                bool "Using Hardware bignum add operation"
159                default n
160
161            config RT_HWCRYPTO_USING_BIGNUM_SUB
162                bool "Using Hardware bignum sub operation"
163                default n
164        endif
165    endif
166