Developer Reference

Contents

MontGetSize

Gets the size of the
IppsMontState
context.

Syntax

IppStatus ippsMontGetSize(IppsExpMethod
method
, int
length
, int *
pSize
);
Include Files
ippcp.h
Parameters
method
Selected exponential method.
length
Data field length for the modulus in
Ipp32u
chunks.
pSize
Pointer to the size of the buffer required for initialization.
Description
The function specifies the buffer size required to define the structured working buffer of the context
IppsMontState
to store the modulus and perform operations using various Montgomery modulus schemes.
For security reasons, the length of the modulus is restricted to 16 kilobits.
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.
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
length
is less than or equal to 0 or greater than 512.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804