Cipher Demo#
简介#
本章节对应 sample_cipher 目录下的安全能力示例,主要覆盖 AES、Hash、硬件 Hash 以及 PUF 相关能力。
代码位置#
src/rtsmart/examples/mpp/sample_cipher/sample_aessrc/rtsmart/examples/mpp/sample_cipher/sample_hashsrc/rtsmart/examples/mpp/sample_cipher/sample_hwhashsrc/rtsmart/examples/mpp/sample_cipher/sample_pufs
编译方法#
在 make menuconfig 中使能:
RT-Smart UserSpace Examples ConfigurationEnable MPP examplesEnable Build sample_cipher
然后执行固件编译。
运行示例#
编译后会生成多个可执行文件(按子目录名命名):
cd /sdcard/app/examples/mpp
./sample_aes.elf
./sample_hash.elf
./sample_hwhash.elf
./sample_pufs.elf
说明#
sample_aes主要验证/dev/aes相关流程。sample_hash演示软件 hash 流程。sample_hwhash演示硬件 hash 流程。sample_pufs演示 PUF 加解密/签名相关流程。
