Developer Reference

Contents

MontForm

Converts input positive integer big number into Montgomery form.

Syntax

IppStatus ippsMontForm(const IppsBigNumState*
pA
, IppsMontState*
pCtx
, IppsBigNumState*
pR
);
Include Files
ippcp.h
Parameters
pA
Pointer to the input integer big number within the range
[0,
pCtx
- 1]
.
pCtx
Pointer to the input big number modulus of
IppsBigNumState
.
pR
Pointer to the resulting Montgomery form
pR
=
pA
*
R
mod
pCtx
.
Description
The function converts an input positive integer big number into the Montgomery form with respect to the big number modulus and stores the conversion result.
The following pseudocode represents this function:
pR
pA
*
R
mod
pCtx
.
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
.
ippStsBadArgErr
Indicates an error condition if
pA
is a negative integer.
ippStsScaleRangeErr
Indicates an error condition if
pA
is more than
pCtx
.
ippStsOutOfRangeErr
Indicates an error condition if
IppsBigNumState
*
pR
is larger than
IppsMontState
*
m
.
ippStsContextMatchErr
Indicates an error condition if any of the context parameters does not match the operation.
The size of
IppsBigNumState *
pR
should not be less than the data length of the modulus
pCtx
.

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