驱动配置
在 Luban-Lite 根目录下执行 scons --menuconfig
,进入 menuconfig 的功能配置界面,按如下选择:
shell
Board options --->
[*] Using Crypto Engine
1
2
2
当使用 RT-Thread 内核框架的时候,可以通过以下配置,对接 RT-Thread 硬件加密框架,
shell
Rt-Thread options --->
RT-Thread Components --->
Device Drivers --->
[*] Using Hardware Crypto drivers --->
(hwcryto) Hardware crypto device name
(16) IV max size
(256) Key max bit length
[ ] Using Hardware GCM
[*] Using Hardware AES
[*] Using Hardware AES ECB mode
[*] Using Hardware AES CBC mode
[ ] Using Hardware AES CFB mode
[ ] Using Hardware AES CTR mode
[ ] Using Hardware AES OFB mode
[ ] Using Hardware DES
[ ] Using Hardware 3DES
[ ] Using Hardware RC4
[*] Using Hardware MD5
[*] Using Hardware SHA1
[*] Using Hardware SHA2
[*] Using Hardware SHA2_224 mode
[*] Using Hardware SHA2_256 mode
[*] Using Hardware SHA2_384 mode
[*] Using Hardware SHA2_512 mode
[ ] Using Hardware RNG
[ ] Using Hardware CRC
[ ] Using Hardware bignum
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
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