Cathedrow / Cryptosuite

Cryptographic suite for Arduino (SHA, HMAC-SHA)
320 stars 148 forks source link

HMAC result different on powerup #22

Open git-tiger opened 6 years ago

git-tiger commented 6 years ago

I'm new to SH256 and HMAC.

In my loop, I have ` void loop(void) {

uint8_t sk[32] = {0x91,0x2F,0xC9,0xA2,0x46,0x16,0xB7,0x60,0x40,0xCA,0x7A,0x81,0x44,0x22,0xFB,0xB9,0x60,0x6A,0x70,0x20,0x56,0x69,0xF7,0x12,0x19,0x5B,0xA4,0x62,0xC5,0x64,0x52,0x67};

Sha256.initHmac(sk, 32);
Sha256.print("68C63AA0F4AE");
printHash(Sha256.resultHmac());
delay(1000);

} ` The key and message is the same, but the result is different everytime I reboot the ESP.

daknuett commented 6 years ago

This is not supposed to happen. But this project has no support anymore. (And it is not libre, so people cannot make changes to the source code.)

Please open an issue somewhere else, for instance: