3.1.4.16 ICM_SetUserInitialHashValue Function

C

void ICM_SetUserInitialHashValue (uint32_t *pValue);

Summary

Sets the initial hash value.

Description

Sets the initial hash value. Only valid if userHash is enabled in the ICM_CONFIG data structure.

Precondition

None.

Parameters

ParamDescription
pValuePointer to the initial hash value.

Returns

None.

Example


ICM_CONFIG icmConfig;

ICM_GetConfiguration (&icmConfig);
icmConfig.userHash = true;
icmConfig.userAlgo = ICM_SHA_1;
ICM_SetConfiguration (&icmConfig);
ICM_SetUserInitialHashValue(&userInitialHashValue);

Remarks

Figure 3-6. Example of Initial Value for SHA-1 Algorithm