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
| Parameters | Description |
|---|---|
| pValue | Pointer 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
| Register Address | Address Offset / Byte Lane | |||
|---|---|---|---|---|
| 0x3 / 31:24 | 0x2 / 23:16 | 0x1 / 15:8 | 0x0 / 7:0 | |
| 0x000 ICM_UIHVAL0 | 01 | 23 | 45 | 67 |
| 0x004 ICM_UIHVAL1 | 89 | ab | cd | ef |
| 0x008 ICM_UIHVAL2 | fe | dc | ba | 98 |
| 0x00C ICM_UIHVAL3 | 76 | 54 | 32 | 10 |
| 0x010 ICM_UIHVAL4 | f0 | e1 | d2 | c3 |
