www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


Crypt_MD5_Init

Initialize MD5 hash checksum generator.

int Crypt_MD5_Init ( Crypt_MD5_ContextPtr md5context );

Parameters

md5context

[out] Pointer to MD5 context structure to be initialized by this API.

Return Value

0: Success
-1: failed

Comments

This function must be called prior to making the first call to Crypt_MD5_Update() when a MD5 hash value is to be computed.

No initialization of the object at md5context by the caller is required.   This API will perform the initialization.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

On SC1x3/SC2x (RTOS version >= 1.35, CLIB version >= 2.19) there is also a version of this function available which uses dynamic linking instead of the software interrupt.   This reduces the function's overhead and thus speeds up your application.   This function's name is Crypt_MD5_Init_Dyn, however you should not use this function directly.   Instead you should add the define TCPIP_DYN_LINK to your program before including the CLIB's header file(s), as follows:

    #define TCPIP_DYN_LINK
    #include <clib.h>


This compilation switch will map the original function's name to the dynamic link version.   In this manner, you can easily switch existing programs over to the dynamic link API.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    V1.20V1.20V1.20V1.05V1.00

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.04

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document