HMACSHA256Init

Initializes user-supplied memory as IppsHMACSHA256State context for future use.

Syntax

IppStatus ippsHMACSHA256Init(const Ipp8u *pKey, int keyLen, IppsHMACSHA256State * pCtx);

Parameters

pKey

Pointer to the user-supplied key.

keyLen

Key length in bytes.

pCtx

Pointer to the IppsHMACSHA256State context being initialized.

Description

This function is declared in the ippcp.h file. The function initializes the memory pointed by pCtx as the IppsHMACSHA256State context. The function also sets up the initial chaining digest value according to the Hash algorithm specified by the function base name and computes necessary key material from the supplied key pKey.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or warning.

ippStsNullPtrErr

Indicates an error condition if any of the specified pointers is NULL.

ippStsLengthErr

Indicates an error condition if keyLen is less than one.

See Also

Submit feedback on this help topic

Copyright © 2000 - 2010, Intel Corporation. All rights reserved.