mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-06-30 20:40:59 +02:00
IDF master 1d7068e4b (#5257)
esp-dsp: master 7cc5073 esp-face: master 420fc7e esp-rainmaker: f1b82c7 esp32-camera: master 7a06a7e esp_littlefs: master b58f00c
This commit is contained in:
@ -34,6 +34,8 @@ typedef struct MD5Context {
|
||||
uint8_t in[64];
|
||||
} md5_context_t;
|
||||
|
||||
#define ESP_ROM_MD5_DIGEST_LEN 16
|
||||
|
||||
/**
|
||||
* @brief Initialize the MD5 context
|
||||
*
|
||||
@ -46,9 +48,9 @@ void esp_rom_md5_init(md5_context_t *context);
|
||||
*
|
||||
* @param context MD5 context which has been initialized by `MD5Init`
|
||||
* @param buf Input buffer
|
||||
* @param len Buffer length
|
||||
* @param len Buffer length in bytes
|
||||
*/
|
||||
void esp_rom_md5_update(md5_context_t *context, const uint8_t *buf, uint32_t len);
|
||||
void esp_rom_md5_update(md5_context_t *context, const void *buf, uint32_t len);
|
||||
|
||||
/**
|
||||
* @brief Extract the MD5 result, and erase the context
|
||||
@ -56,7 +58,7 @@ void esp_rom_md5_update(md5_context_t *context, const uint8_t *buf, uint32_t len
|
||||
* @param digest Where to store the 128-bit digest value
|
||||
* @param context MD5 context
|
||||
*/
|
||||
void esp_rom_md5_final(uint8_t digest[16], md5_context_t *context);
|
||||
void esp_rom_md5_final(uint8_t *digest, md5_context_t *context);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user