MT7687 API Reference  LinkIt SDK v4
MD5

This section introduces the MD5 driver APIs including terms and acronyms, supported features, software architecture, details on how to use this driver. More...

Overview

This section introduces the MD5 driver APIs including terms and acronyms, supported features, software architecture, details on how to use this driver.

MD5 function groups, enums, structures and functions.

Terms and acronyms

Terms Details
MD5 Message-Digest Algorithm. For more information, please refer to introduction to the MD5 in Wikipedia .

Supported features

How to use this driver

Functions

hal_md5_status_t hal_md5_init (hal_md5_context_t *context)
 This function initializes the MD5 engine. More...
 
hal_md5_status_t hal_md5_append (hal_md5_context_t *context, uint8_t *message, uint32_t length)
 This function appends data for MD5 operation. More...
 
hal_md5_status_t hal_md5_end (hal_md5_context_t *context, uint8_t digest_message[HAL_MD5_DIGEST_SIZE])
 This function finishes the MD5 operation and receives the MD5 result. More...
 

Modules

 Define
 
 Enum
 
 Struct
 

Function Documentation

hal_md5_status_t hal_md5_append ( hal_md5_context_t context,
uint8_t *  message,
uint32_t  length 
)

This function appends data for MD5 operation.

Parameters
[in]contextis the context used in the MD5 operation.
[in]messageis the source data buffer.
[in]lengthis the length of the parameter message.
[out]contextis the context used in the MD5 operation.
Returns
if OK, returns HAL_MD5_STATUS_OK
Example
Sample code, please refer to How to use this driver.
hal_md5_status_t hal_md5_end ( hal_md5_context_t context,
uint8_t  digest_message[HAL_MD5_DIGEST_SIZE] 
)

This function finishes the MD5 operation and receives the MD5 result.

Parameters
[in]contextis the MD5 message created during MD5 operation.
[out]digest_messageis the MD5 result.
Returns
if OK , returns HAL_MD5_STATUS_OK
Example
Sample code, please refer to How to use this driver.
hal_md5_status_t hal_md5_init ( hal_md5_context_t context)

This function initializes the MD5 engine.

Parameters
[in]contextis the context used in the MD5 operation.
[out]contextis the context used in the MD5 operation.
Returns
if OK, returns HAL_MD5_STATUS_OK
See also
hal_md5_init
Example
Sample code, please refer to How to use this driver.