⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
bobspam@free.fr
Offline
Last seen:1 month 3 weeks ago
加入:2018-06-20 08:07
HMAC vs OpenSSL

Hello

I do need to transmit data from a DA14683 using HMAC-AES-256. I found the version in the board support package but it does not produce the same result than what does OpenSSL on the same data (same key & data). I am targeting a data control using : "openssl dgst -binary -hmac key_hex -sha256 -out hmac_file data_file" on a server that collect data.

Can you please confirm to me that this algorithm has been extensively tested ? (I am using it on data and not text)

What is the difference with OpenSSL implementation ?

Thank you in advance

Best Regards

Device:
bobspam@free.fr
Offline
Last seen:1 month 3 weeks ago
加入:2018-06-20 08:07
Hello

Hello

The issue was coming from me. Here is the good command line to get the same behaviour between DA14683 and openssl:

openssl dgst -binary -sha256 -mac HMAC -macopt hexkey:$key_hex -out $hmac_file data_file

Solved.

PM_Dialog
Offline
Last seen:3 days 12 hours ago
工作人员
加入:2018-02-08 11:03
Hi,

Hi,

Many thanks for sharing your finding.

Regards, PM_Dialog