Gets the size of the IppsMontState context.
IppStatus ippsMontGetSize(IppsExpMethod method, int length, int * size);
method |
Selected exponential method. |
length |
Data field length for the modulus. |
size |
Size of the buffer required for initialization. |
This function is declared in the ippcp.h file. The function specifies the buffer size required to define the structuralized working buffer of the context IppsMontState to store the modulus and perform operations using various Montgomery modulus schemes.
The function returns the required buffer size based on the selected exponential method. The binary method helps to significantly reduce the buffer size, while the sliding windows method results in enhanced performance.
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 length is less than or equal to 0. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.