1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-10-15 11:26:40 +03:00

Introduce HMAC functions operating on vectors

This commit is contained in:
Ivan Grokhotkov
2017-05-08 22:01:27 +08:00
committed by Ivan Grokhotkov
parent abec528002
commit 48d0f114bb
3 changed files with 43 additions and 3 deletions

View File

@@ -203,6 +203,16 @@ void hmac_sha1(const uint8_t *msg, int length, const uint8_t *key,
void hmac_sha256(const uint8_t *msg, int length, const uint8_t *key,
int key_len, uint8_t *digest);
/**************************************************************************
* HMAC functions operating on vectors
**************************************************************************/
void hmac_md5_v(const uint8_t **msg, int* length, int count, const uint8_t *key,
int key_len, uint8_t *digest);
void hmac_sha1_v(const uint8_t **msg, int* length, int count, const uint8_t *key,
int key_len, uint8_t *digest);
void hmac_sha256_v(const uint8_t **msg, int* length, int count, const uint8_t *key,
int key_len, uint8_t *digest);
/**************************************************************************
* RSA declarations
**************************************************************************/