GFPGetSize

Gets the size of the IppsGFPState context of the finite field GF(p).

Syntax

IppStatus ippsGFPGetSize(Ipp32u bitSize, Ipp32u *stateSizeInBytes);

Parameters

bitSize

Size in bytes of the odd prime number p (modulus of GF(p)).

stateSizeInBytes

Buffer size in bytes needed for the IppsGFPState context.

Description

This function is declared in the ippcp.h file. The function returns the size of the buffer associated with the IppsGFPState context, suitable for storing data for the finite field GF(p) determined by the odd prime number p of size not greater than bitSize bit.

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.