5.2.1.3. Symmetric AES Example¶
This project demonstrates symmetric cryptography - AES encryption and decryption operations.
Refer - simw-top/sss/ex/symmetric/ex_sss_symmetric.c
5.2.1.3.1. Prerequisites¶
Build Plug & Trust middleware stack. (Refer Building / Compiling)
5.2.1.3.2. About the Example¶
This example does a symmetric cryptography AES encryption and decryption operation.
- It uses the following APIs and data types:
5.2.1.3.3. Console output¶
If everything is successful, the output will be similar to:
App :INFO :Running AES symmetric Example ex_sss_symmetric.c
App :INFO :Do Encryption
App :INFO :iv (Len=16)
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
App :INFO :srcData (Len=16)
48 45 4C 4C 4F 48 45 4C 4C 4F 48 45 4C 4C 4F 31
App :INFO :Encryption successful !!!
App :INFO :encrypted data (Len=16)
32 A6 04 88 C5 B3 FF 40 50 AF 56 A5 68 AE D1 05
App :INFO :Do Decryption
App :INFO :iv (Len=16)
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
App :INFO :Encrypted data (Len=16)
32 A6 04 88 C5 B3 FF 40 50 AF 56 A5 68 AE D1 05
App :INFO :Decryption successful !!!
App :INFO :decrypted data (Len=16)
48 45 4C 4C 4F 48 45 4C 4C 4F 48 45 4C 4C 4F 31
App :INFO :ex_sss_symmetric Example Success !!!...
App :INFO :ex_sss Finished