SimpleHOTP icon indicating copy to clipboard operation
SimpleHOTP copied to clipboard

"hmacGeneration.ino" Incorrect operating structure

Open small-zz opened this issue 4 years ago • 3 comments

Hello, the hardware platform is ESP8266, the output of running this script is "5E93D75 F2CD44EC FB0E1A5F 85F55271 EEDB6707", and the result given in the process is "// should output: // 40322845 BBB9E97C 6D23ECFA 275581DF 4143C5A2", is there any solution? Thanks

small-zz avatar Jan 06 '21 09:01 small-zz

Thanks for your feedback. Unfortunately I currently lack time and an ESP8266 to test your case. Please let me know if you found any solutions.

Do the other example scripts work as expected?

jlusPrivat avatar Mar 05 '21 22:03 jlusPrivat

I have tried your HMAC generation and it seems to be a wrong implementation. It generates the same HASH output for the same msg with different keys!!!

simortus avatar Apr 14 '21 16:04 simortus

Thank you for your comment. Unfortunately I was not able to confirm your observation by running the example program with multiple SimpleHOTP instances.

Can you please elaborate on your issue by sharing the relevant source code lines?

jlusPrivat avatar Apr 14 '21 17:04 jlusPrivat