Visible to Intel only — GUID: GUID-73A84165-E18E-4CD0-8AF2-3CB2F180D4FA
Visible to Intel only — GUID: GUID-73A84165-E18E-4CD0-8AF2-3CB2F180D4FA
MontForm
Converts input positive integer big number into Montgomery form.
IppStatus ippsMontForm(const IppsBigNumState* pA, IppsMontState* pCtx, IppsBigNumState* pR);
ippcp.h
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*RmodpCtx. |
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*RmodpCtx.
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.
Did you find the information on this page useful?
Feedback Message
Characters remaining: