Get Size Of Temporary Buffer#
Get the size for the temporary buffer (bytes).
Syntax#
IppStatus ippsXMSSBufferGetSize (Ipp32s* pSize, Ipp32s maxMessageLength, IppsXMSSAlgo OIDAlgo);
IppStatus ippsXMSSKeyGenBufferGetSize (Ipp32s* pSize, IppsXMSSAlgo OIDAlgo);
IppStatus ippsXMSSSignBufferGetSize (Ipp32s* pSize, Ipp32s maxMessageLength, IppsXMSSAlgo OIDAlgo);
IppStatus ippsXMSSVerifyBufferGetSize (Ipp32s* pSize, Ipp32s maxMessageLength, IppsXMSSAlgo OIDAlgo);
Include Files#
ippcp.h
Parameters#
pSize |
Pointer to the state size. |
maxMessageLength |
Maximum length of the message that needs to be verified. It can be the maximum of all messages’ length that can potentially be passed to the verification function. |
OIDAlgo |
XMSS Algorithm ID. It defines a set of XMSS parameters. See Supported XMSS Algorithms for more information. |
Description#
Note
ippsXMSSBufferGetSize
is deprecated. Please refer to
Deprecated Functions
section for the recommendations for transition.
ippsXMSSKeyGenBufferGetSize
gets the size of the temporary buffer required for ippsXMSSKeyGen
.
ippsXMSSSignBufferGetSize
gets the size of the temporary buffer required for ippsXMSSSign
.
ippsXMSSVerifyBufferGetSize
gets the size of the temporary buffer required for ippsXMSSVerify
.
The result is stored to *pSize
.
Note
Important
You need to enable the IPPCP_PREVIEW_XMSS
macro to use the feature.
For more information, see Preview Features.
Return Values#
ippStsNoErr |
Indicates no error. All single operations executed without errors. Any other value indicates an error or warning. |
ippStsNullPtrErr |
|
ippStsLengthErr |
|
ippStsBadArgErr |
|