Get Size Of XMSS Keys and Signature States

Get Size Of XMSS Keys and Signature States#

Get the size (bytes) for following XMSS states: public key, private key and signature.

Syntax#

IppStatus ippsXMSSPublicKeyStateGetSize (Ipp32s* pSize, IppsXMSSAlgo OIDAlgo);

IppStatus ippsXMSSPrivateKeyStateGetSize (Ipp32s* pSize, IppsXMSSAlgo OIDAlgo);

IppStatus ippsXMSSSignatureStateGetSize (Ipp32s* pSize, IppsXMSSAlgo OIDAlgo);

Include Files#

ippcp.h

Parameters#

pSize

Pointer to the state size.

OIDAlgo

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

Description#

ippsXMSSPublicKeyStateGetSize gets the size of the public key state that is defined by OIDAlgo.

ippsXMSSPrivateKeyStateGetSize gets the size of the private key state.

ippsXMSSSignatureStateGetSize gets the size of the signature state.

The result is stored to *pSize.

Note

Important

This is a Preview Feature. You need to enable the IPPCP_PREVIEW_XMSS macro to use the feature.

Return Values#

ippStsNoErr

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

ippStsNullPtrErr

pSize is a NULL pointer.

ippStsBadArgErr

OIDAlgo < 1 or OIDAlgo > the maximum value for IppsXMSSAlgo.