GFPElementInit

Initializes the IppsGFPELement context of a GF(p) element.

Syntax

IppStatus ippsGFPElementInit(IppsGFPElement *pGFpElement, const Ipp32u *pData, Ipp32u dataLen, IppsGFPState *pGFp);

Parameters

pGFpElement

Pointer to the context of the GF(p) element being initialized.

pData

Pointer to the data array storing the GF(p) element.

dataLen

Length of the element.

pGFp

Pointer to the context of the GF(p) field.

Description

This function is declared in the ippcp.h file. The function initializes the memory buffer *pGFpElement associated with the IppsGFPElement context and sets up the specific element of the GF(p) field. The initialized IppsGFPElement context is used in all the operations with this element of the GF(p) field.

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.

ippContextMatchErr

Indicates an error condition if any of the IppsGFPState or IppsGFPElement context parameters does not match the operation.

ippStsSizeErr

Indicates an error condition if dataLen is ten times greater than the GF(p) modulus.

Submit feedback on this help topic

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