MontForm

Converts input positive integer big number into Montgomery form.

Syntax

IppStatus ippsMontForm(IppsBigNumState *a, IppsMontState *m, IppsBigNumState * r);

Parameters

a

Input integer big number within the range [0, m - 1].

m

Input big number modulus of IppsBigNumState.

r

Resulting Montgomery form r = a*R mod m.

Description

This function is declared in the ippcp.h file. 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:

r a *R mod m.

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 a is a negative integer.

ippStsScaleRangeErr

Indicates an error condition if a is more than m.

ippStsOutOfRangeErr

Indicates an error condition if IppsBigNumState *r is larger than IppsMontState *m.

Note iconNote

The size of IppsBigNumState *r should not be less than the data length of the modulus m.


Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.