1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-10-16 22:27:59 +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

@@ -195,6 +195,9 @@ extern const char * const unsupported_str;
typedef void (*crypt_func)(void *, const uint8_t *, uint8_t *, int);
typedef void (*hmac_func)(const uint8_t *msg, int length, const uint8_t *key,
int key_len, uint8_t *digest);
typedef void (*hmac_func_v)(const uint8_t **msg, int *length, int count, const uint8_t *key,
int key_len, uint8_t *digest);
int get_file(const char *filename, uint8_t **buf);