5.2.1.6. HMAC Example

This project demonstrates a HMAC operation on a message using SSS APIs.

Refer - simw-top/sss/ex/hmac/ex_sss_hmac.c

5.2.1.6.1. Prerequisites

5.2.1.6.2. About the Example

This example does a HMAC operation on input data.

It uses the following APIs and data types:

5.2.1.6.3. Console output

If everything is successful, the output will be similar to:

App   :INFO :Running HMAC (SHA256) Example ex_sss_hmac.c
App   :INFO :Do HMAC
App   :INFO :input (Len=10)
      48 65 6C 6C    6F 57 6F 72    6C 64 
App   :INFO :hmac key (Len=16)
      48 65 6C 6C    6F 48 65 6C    6C 6F 48 65    6C 6C 6F 48 
App   :INFO :HMAC (SHA256) successful !!!
App   :INFO :hmac (Len=32)
      68 7A 26 95    49 67 9D 6E    FA 11 19 5E    96 CB BA C2 
      6B 50 A5 09    10 8A D1 48    B5 FC A0 94    2C BD 10 21 
App   :INFO :ex_sss_hmac Example Success !!!...
App   :INFO :ex_sss Finished