Cipher Demo#
Introduction#
This chapter corresponds to the security capability examples under the sample_cipher directory, mainly covering AES, Hash, hardware Hash, and PUF related capabilities.
Code Location#
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
Compilation Method#
Enable the following options in make menuconfig:
RT-Smart UserSpace Examples ConfigurationEnable MPP examplesEnable Build sample_cipher
Then execute the firmware compilation.
Running Examples#
After compilation, multiple executable files will be generated (named after the subdirectories):
cd /sdcard/app/examples/mpp
./sample_aes.elf
./sample_hash.elf
./sample_hwhash.elf
./sample_pufs.elf
Description#
sample_aesmainly verifies the/dev/aesrelated workflows.sample_hashdemonstrates the software hash workflow.sample_hwhashdemonstrates the hardware hash workflow.sample_pufsdemonstrates the PUF encryption/decryption/signature related workflows.
