Cryptosuite
Cryptosuite copied to clipboard
HMAC result different on powerup
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.
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:
- https://github.com/daknuett/cryptosuite2 (I maintain this project but I am unavailable until wednesday)
- https://github.com/Phoul/cryptosuite (This is actually an illegal project but I think it is OK. I do not know when they will be able to help you)