MontInit

Initializes the context and partitions the specified buffer space.

Syntax

IppStatus ippsMontInit(IppsExpMethod method, int length, IppsMontState *m);

Parameters

method

Selected exponential method.

buffer

Buffer for initializing m.

length

Data field length for the modulus.

m

Pointer to the context IppsMontState.

Description

This function is declared in the ippcp.h file. The function initializes the context using the specified buffer space. The function then partitions the buffer using the selected modular exponential method in such a way as to carry up to length *sizeof(Ipp32u)-bit big number modulus and execute various Montgomery modulus operations.

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.

Submit feedback on this help topic

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