[crypto] adding HMAC Key Derivation Function (HKDF) using SHA-256 (#4440)

This commit adds a new class `Crypto::HkdfSha256` which implements
HMAC-based Extract-and-Expand Key Derivation Function from RFC-5869
using SHA-256. It also adds a unit test for the new module.
This commit is contained in:
Abtin Keshavarzian
2020-12-10 11:46:07 -08:00
committed by Jonathan Hui
parent 61e77bf6ed
commit 48333ce530
11 changed files with 401 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
#include <ctype.h>
void DumpBuffer(const char *aTextMessage, uint8_t *aBuffer, uint16_t aBufferLength)
void DumpBuffer(const char *aTextMessage, const uint8_t *aBuffer, uint16_t aBufferLength)
{
enum
{