37 #include "hal_platform.h" 39 #ifdef HAL_MD5_MODULE_ENABLED 41 #ifdef HAL_MD5_USE_PHYSICAL_MEMORY_ADDRESS 115 #include "hal_define.h" 125 #define HAL_MD5_BLOCK_SIZE (64) 126 #define HAL_MD5_DIGEST_SIZE (16) 140 HAL_MD5_STATUS_ERROR = -1,
141 HAL_MD5_STATUS_OK = 0
155 uint32_t hash_value[4];
156 uint64_t message_length;
158 uint8_t buffer[HAL_MD5_BLOCK_SIZE];
159 uint32_t block_length;
178 hal_md5_status_t hal_md5_init(hal_md5_context_t *context);
190 hal_md5_status_t hal_md5_append(hal_md5_context_t *context, uint8_t *message, uint32_t length);
201 hal_md5_status_t hal_md5_end(hal_md5_context_t *context, uint8_t digest_message[HAL_MD5_DIGEST_SIZE]);