forked from espressif/esp-idf
esp_rom: Allow passing any type of data pointer to md5, remove unchecked size on digest pointer
This commit is contained in:
@ -48,9 +48,9 @@ void esp_rom_md5_init(md5_context_t *context);
|
|||||||
*
|
*
|
||||||
* @param context MD5 context which has been initialized by `MD5Init`
|
* @param context MD5 context which has been initialized by `MD5Init`
|
||||||
* @param buf Input buffer
|
* @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
|
* @brief Extract the MD5 result, and erase the context
|
||||||
@ -58,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 digest Where to store the 128-bit digest value
|
||||||
* @param context MD5 context
|
* @param context MD5 context
|
||||||
*/
|
*/
|
||||||
void esp_rom_md5_final(uint8_t digest[ESP_ROM_MD5_DIGEST_LEN], md5_context_t *context);
|
void esp_rom_md5_final(uint8_t *digest, md5_context_t *context);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user