GFPSetElementPower2

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

Syntax

IppStatus ippsGFPSetElementPower2(Ipp32u power, IppsGFPElement *pGFpElement, IppsGFPState *pGFp);

Parameters

power

The exponent.

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 sets (and converts if needed) the value of the given element of the GF(p) field to 2power.

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 (power + 1) is ten times greater than the GF(p) modulus in bits.

Submit feedback on this help topic

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