Andrew Boyson / crypto

Dependents:   oldheating gps motorhome heating

Revision:
7:94ef5824c3c0
Parent:
4:6a1d887f1cad
--- a/hmac/hmac-sha-256.h	Sun Sep 01 18:15:12 2019 +0000
+++ b/hmac/hmac-sha-256.h	Thu Sep 05 12:58:41 2019 +0000
@@ -3,9 +3,9 @@
 
 struct HmacSha256Struct
 {
-    uint8_t hmacKey[SHA_BLOCK_SIZE];
+    uint8_t hmacKey[SHA256_BLOCK_SIZE];
     struct Sha256State shaStruct;
-    uint8_t tmpHash[SHA_HASH_SIZE];
+    uint8_t tmpHash[SHA256_HASH_SIZE];
 };
 
 extern void HmacSha256(const uint8_t* key, int keyLength, const uint8_t* message, int messageLength, uint8_t* mac);