pub unsafe extern "C" fn md5_init(ctx: *mut md5_ctx_t)
Expand description
@brief Initialize the MD5 calculation context
@param[out] ctx Pointer to the context to be initialized
The purpose of the context is to make it possible to generate an MD5 Message Digest in stages, rather than having to pass a single large block to a single MD5 function. The context structure keeps track of various bits of state information.
Once the context is initialized, the blocks of message data are passed to the <md5_update()> function. Once the final bit of data has been handed to <md5_update()> the context can be closed out by calling <md5_final()>, which also calculates the final MD5 result. Don’t forget to free an allocated context structure when you’ve finished using it.