Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: hmac/hmac-sha-256.h
- 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);