Developer Reference for Intel® Integrated Performance Primitives Cryptography 2018
Initializes the context of an element of the finite field.
IppStatus ippsGFpElementInit(const Ipp32u* pA, int nsA, IppsGFpElement* pR, IppsGFpState* pGF);
ippcp.h
pA |
Pointer to the data array storing the finite field element. |
lenA |
Length of the element. |
pR |
Pointer to the context of the finite field element being initialized. |
pGFp |
Pointer to the context of the finite field. |
This function initializes the memory buffer pR associated with the IppsGFpElement context and sets up the specific element of the finite field specified by the pGFp context. The initialized IppsGFpElement context is used in all the operations with this element of the finite field.
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. |
ippStsContextMatchErr |
Indicates an error condition if the pGFp context parameter does not match the operation. |
ippStsSizeErr |
Indicates an error condition if lenA ≤ 0. |