HASH demo
Overview
Initiate a FreeRTOS task to run a hash demo once.
The hash demo demonstrates how to calculate the hash value of data using MD5 and SHA1 algorithms, and compares the value with the expected hash value that has been calculated in advance.
Requirements
The board which have a w80x chip.
Building and flashing
Example Location: examples/peripheral/hash
compile, burn, and more, see: get started
Running result
Successfully running will output the following logs
D/dt [0.000] add device iflash
D/ptb [0.002] partition table base 0xe000
D/ft [0.002] ft_0 base 0, ft_1 base 1000
D/ft [0.002] ft init 1
D/main [0.004] boot reason 0
D/main [0.004] heap size 273144(266.74KB)
D/main [0.004] flash size 0x200000(2MB)
I/test [0.004] hash demo.
D/dt [0.006] add device hash
I/test [0.006] md5 test success
I/test [0.006] sha1 test success
I/test [0.006] hash demo.
I/test [1.008] hash demo.
I/test [2.008] hash demo.
I/test [3.008] hash demo.
I/test [4.008] hash demo.
I/test [5.008] hash demo.
I/test [6.008] hash demo.