Initializes the IppsGFPState context of the finite field GF(p).
IppStatus ippsGFPInit(IppsGFPState *pGFp, Ipp32u *pPrime, Ipp32u bitSize);
pGFp |
Pointer to the context of the GF(p) field being initialized. |
pPrime |
Pointer to the data storing the GF(p) modulus. |
bitSize |
Size of the GF(p) modulus. |
This function is declared in the ippcp.h file. The function initializes the memory buffer *pGFp associated with the IppsGFPState context and sets up the specific value of the GF(p) modulus. The initialized context is used in the functions that create contexts of elements of the GF(p) field and perform operations with the field elements.
The function does not check primality of the modulus.
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. |
ippStsSizeErr |
Indicates an error condition if bitSize is less than 2. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.