GFPInit

Initializes the IppsGFPState context of the finite field GF(p).

Syntax

IppStatus ippsGFPInit(IppsGFPState *pGFp, Ipp32u *pPrime, Ipp32u bitSize);

Parameters

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.

Description

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.

Note iconNote

The function does not check primality of the modulus.

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.

ippStsSizeErr

Indicates an error condition if bitSize is less than 2.

Submit feedback on this help topic

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