GFPSetElement

Assigns a value to an element of the GF(p) field.

Syntax

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

Parameters

pData

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

dataLen

Length of the GF(p) element.

pGFpElement

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

pGFp

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

Description

This function is declared in the ippcp.h file. The function copies (and converts if needed) the value from the user-defined *pData buffer to the IppsGFPElement context of the GF(p) element.

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.