Initializes the context and partitions the specified buffer space.
IppStatus ippsMontInit(IppsExpMethod method, int length, IppsMontState *m);
method |
Selected exponential method. |
buffer |
Buffer for initializing m. |
length |
Data field length for the modulus. |
m |
Pointer to the context IppsMontState. |
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.
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. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.