8.3.2. 参数配置

8.3.2.1. 驱动配置

在 ZX-RTT 根目录下执行 scons --menuconfig,进入 menuconfig 的功能配置界面,按如下选择:

Board options  --->
    [*] Using Crypto Engine

当使用 RT-Thread 内核框架的时候,可以通过以下配置,对接 RT-Thread 硬件加密框架,

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