Visible to Intel only — GUID: GUID-2DE7EE1F-F8E5-45EB-AD2C-5F8D6A8139B0
Visible to Intel only — GUID: GUID-2DE7EE1F-F8E5-45EB-AD2C-5F8D6A8139B0
HashStateMethodSet
Updates the IppsHashState_rmf structure with a new pointer to IppsHashMethod and initializes it with the pre-defined hash algorithm parameters.
Syntax
IppStatus ippsHashStateMethodSet_SM3(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA256(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA256_NI(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA256_TT(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA224(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA224_NI(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA224_TT(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA512(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA384(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA512_256(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
IppStatus ippsHashStateMethodSet_SHA512_224(IppsHashState_rmf* pState, IppsHashMethod* pMethod)
Include Files
ippcp.h
Parameters
pState |
Pointer to the IppsHashState_rmf context being updated. |
pMethod |
Pointer to the method for the update of the context. |
Description
Each of these functions:
Accepts pointer to IppsHashState_rmf context, which is proceeded with ippsHashInit function before.
Updates stored inside of the context pointer to IppsHashMethod.
Initializes it to the method-defined implementation of a particular hash algorithm.
Use these functions in calls to HashInit and HashMessage.
Return Values
ippStsNoErr |
Indicates no errors. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers are NULL. |