ECCPGetSize

Gets the size of the IppsECCPState context.

Syntax

IppStatus ippsECCPGetSize(int feBitSize, int *pSize);

Include Files

ippcp.h

Parameters

feBitSize

Size (in bits) of the underlying prime number.

pSize

Pointer to the size (in bytes) of the context.

Description

The function computes the size of the context in bytes for the elliptic cryptosystem over a prime finite field GF (p).

Context is a structure IppsECCPState designed to store information about the cryptosystem status.

Note

For security reasons, the length of the underlying prime number is restricted to 1 kilobit.

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 the value of the parameter feBitSize is less than 2.