Introduction
This example demonstrates HMAC SHA-512 algorithm running on SHA/MD5 module. This example explains the steps to build and run HMAC SHA-512.
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Boards | am263x-cc |
Example folder | examples/security/crypto/dthe_sha/crypto_hmac_sha512/ |
Supported Device Type | HS-FS |
Build the hmac sha 512 example
$make -s -C examples/security/crypto/dthe_sha/crypto_hmac_sha512/am263x-cc/r5fss0-0_nortos/ti-arm-clang all DEVICE=am263x
Steps to Run through ROM Boot flow
Via SBL_uart bootloader
Build sbl_uart
make -s -C examples/drivers/boot/sbl_uart/am263x-cc/r5fss0-0_nortos/ti-arm-clang/ all DEVICE=am263x
Set board for UART boot
See EVM setup
Run UART_bootloader
python uart_bootloader.py -p <COMxx> --bootloader=sbl_prebuilt/am263x-cc/sbl_uart.release.hs.tiimage --file=../../examples/security/crypto/dthe_sha/crypto_hmac_sha512/am263x-cc/r5fss0-0_nortos/ti-arm-clang/dthe_hmac_sha512.release.appimage
Sample output
On successful boot, R5 log at uart terminal, will have the following output. UART Console:
[CRYPTO] DTHE HMAC SHA-512 example started ...
[CRYPTO] DTHE HMAC SHA-512 example completed!!
All tests have passed!!
Via SBL_qspi bootloader
Build sbl_qspi
make -C examples/drivers/boot/sbl_qspi/am263x-cc/r5fss0-0_nortos/ti-arm-clang/ all DEVICE=am263x
Build sbl_uart_uniflash
make -s -C examples/drivers/boot/sbl_uart_uniflash/am263x-cc/r5fss0-0_nortos/ti-arm-clang/ all DEVICE=am263x
Set UART boot mode
See EVM setup
Edit default_sbl_qspi.cfg to include the correct images
Run UART_uniflash
python uart_uniflash.py -p <COMxx> --cfg=sbl_prebuilt/am263x-cc/default_sbl_qspi.cfg
Set QSPI boot mode
See EVM setup
Sample output
On successful boot, R5 log at uart terminal, will have the following output.
UART Console:
[CRYPTO] DTHE HMAC SHA-512 example started ...
[CRYPTO] DTHE HMAC SHA-512 example completed!!
All tests have passed!!
See Also
DTHE