Developer Reference for Intel® Integrated Performance Primitives Cryptography 2019

GFpECInitStd

Initializes the context of a standard elliptic curve over a finite field

Syntax

IppStatus ippsGFpECInitStd128r1(const IppsGFpState* pGF, IppsGFpECState* pEC);

IppStatus ippsGFpECInitStd128r2(const IppsGFpState* pGF, IppsGFpECState* pEC);

IppStatus ippsGFpECInitStd192r1(const IppsGFpState* pGF, IppsGFpECState* pEC);

IppStatus ippsGFpECInitStd224r1(const IppsGFpState* pGF, IppsGFpECState* pEC);

IppStatus ippsGFpECInitStd256r1(const IppsGFpState* pGF, IppsGFpECState* pEC);

IppStatus ippsGFpECInitStd384r1(const IppsGFpState* pGF, IppsGFpECState* pEC);

IppStatus ippsGFpECInitStd521r1(const IppsGFpState* pGF, IppsGFpECState* pEC);

IppStatus ippsGFpECInitStdSM2(const IppsGFpState* pGF, IppsGFpECState* pEC);

IppStatus ippsGFpECInitStdBN256(const IppsGFpState* pGF, IppsGFpECState* pEC);

Include Files

ippcp.h

Parameters

pGF

Pointer to the IppsGFpState context of the underlying finite field.

pEC

Pointer to the context of the elliptic curve being initialized.

Description

This function initializes the memory buffer pEC associated with the IppsGFpECState context and sets up the parameters of a specific standard elliptic curve. For a list of these curves, see table Standard Elliptic Curves.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or warning.

ippStsNullPtrErr

Indicates an error condition if pEC is NULL.

ippStsContextMatchErr

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

ippStsBadArgErr

Indicates an error condition if the IppsGFpState context parameter does not specify the finite field over which the given standard elliptic curve is defined.