Initialize LMS Signature State

Initialize LMS Signature State#

Syntax#

IppStatus ippsLMSInitSignature (const IppsLMSAlgoType OIDAlgo, IppsLMSSignatureState* pSign);

Include Files#

ippcp.h

Parameters#

OIDAlgo

LMS Algorithm ID. It defines a set of LMS parameters. See Supported LMS Algorithms for more information.

pSign

Pointer to the IppsLMSSignatureState context. Size is greater or equal to the value returned by the ippsLMSSignatureStateGetSize function.

Description#

This function initializes the LMS signature state.

Return Values#

ippStsNoErr

Indicates no error. All single operations executed without errors. Any other value indicates an error or warning.

ippStsNullPtrErr

pSign is a NULL pointer.

ippStsBadArgErr

OIDAlgo.lmotsOIDAlgo < the minimum value for IppsLMOTSAlgo, OIDAlgo.lmotsOIDAlgo > the maximum value for IppsLMOTSAlgo, OIDAlgo.prmLmsAlg < the minimum value for IppsLMSAlgo or OIDAlgo.prmLmsAlg > the maximum value for IppsLMSAlgo.