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
hmac/hmac-sha-256.h
- Committer:
- andrewboyson
- Date:
- 2019-08-20
- Revision:
- 4:6a1d887f1cad
- Parent:
- 0:be515c9019e3
- Child:
- 7:94ef5824c3c0
File content as of revision 4:6a1d887f1cad:
#include <stdint.h> #include "sha256.h" struct HmacSha256Struct { uint8_t hmacKey[SHA_BLOCK_SIZE]; struct Sha256State shaStruct; uint8_t tmpHash[SHA_HASH_SIZE]; }; extern void HmacSha256(const uint8_t* key, int keyLength, const uint8_t* message, int messageLength, uint8_t* mac); extern void HmacSha256Start (struct HmacSha256Struct* md, const uint8_t* key, int keyLength); extern void HmacSha256Add (struct HmacSha256Struct* md, const uint8_t* message, int messageLength); extern void HmacSha256Finish(struct HmacSha256Struct* md, uint8_t* mac);