GFPXGetSize

Gets the size of the IppsGFPXState context of the finite field GF(p^d).

Syntax

IppStatus ippsGFPXGetSize(const IppsGFPState *pGroundGFp, Ipp32u degree, Ipp32u *stateSizeInBytes);

Parameters

pGroundGFP

Pointer to the ground finite field GF(p).

degree

The degree of the extension.

stateSizeInBytes

Buffer size in bytes needed for the IppsGFPXState context.

Description

This function is declared in the ippcp.h file. The function returns the size of the buffer associated with the IppsGFPXState context, suitable for storing data for the finite field GF(p^d) determined by the extension degree of the finite field GF(p) supplied in the degree parameter.

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.

ippStsContextMatchErr

Indicates an error condition if the IppsGFPState context parameter does not match the operation.

ippStsSizeErr

Indicates an error condition if the degree of the extension exceeds or equals nine.

Submit feedback on this help topic

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