LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HMAC-SHA256

Hello everyone, I ask you for help, do you have a vi to carry out the coding HMAC-SHA256 ??

I found this resource: https://github.com/gb119/LabVIEW-Bits/tree/master/Cryptographic%20Services/SHA256

The file is: HMAC-SHA256.vi but that needs its library SHA256.lvlib, which is not downloadable.

Thank you

0 Kudos
Message 1 of 3
(2,933 Views)

Hi Nicola,

 

The file is: HMAC-SHA256.vi but that needs its library SHA256.lvlib, which is not downloadable.

You can download the whole distribution as a ZIP file, including that SHA256.lvlib.

So what is your problem?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,926 Views)

OK, now I managed to run the VI but the result is different from the correct one 😞

How can I calculate an RFC 2104-compliant HMAC with the SHA256, can you help me get that signature from the example? 

Product Advertising API REST requests of Amazon.com

 

- String To sign:

GET webservices.amazon.com /onca/xml AWSAccessKeyId=AKIAIOSFODNN7EXAMPLE&AssociateTag=mytag-20&ItemId=0679722769&Operation=ItemLookup&ResponseGroup=Images%2CItemAttributes%2COffers%2CReviews&Service=AWSECommerceService&Timestamp=2014-08-18T12%3A00%3A00Z&Version=2013-08-01

 

- secret key: 1234567890

 

Signature correct: j7bZM0LXZ9eXeZruTqWm2DIvDYVUU3wxPPpp%2BiXxzQc%3D

 

SOS

Thank You!

0 Kudos
Message 3 of 3
(2,911 Views)