GFPXECGet

extracts elliptic curve parameters from the input IppsGFPXECState context.

Syntax

IppStatus ippsGFPXECGet(const IppsGFPXECState *pEC, const IppsGFPXState **pGFpx, Ipp32u *pElementLen, IppsGFPXElement *pA, IppsGFPXElement *pB, IppsGFPXElement *pX, IppsGFPXElement *pY, const Ipp32u **pOrder, Ipp32u *orderLen, Ipp32u *cofactor);

Parameters

pEC

Pointer to the context of the elliptic curve.

pGFpx

Pointer to the context of the elliptic curve definition field GF(p^d).

pA

Pointer to a copy of the A parameter of the elliptic curve.

pB

Pointer to a copy of the B parameter of the elliptic curve.

pX, pY

Pointers to copies of the x and y coordinates of the base point of the elliptic curve.

pOrder

Address of the pointer to the array storing the order of the base point.

orderLen

Length of the array storing the order of the base point.

cofactor

The value of the cofactor.

Description

This function is declared in the ippcp.h file. The function extracts parameters of the elliptic curve from the input IppsGFPXECState context. You can get any combination of the following parameters: a reference to the definition field, copies of the A and B coefficients and the x and y coordinates, a reference to the order of the base point, the length of the order, and the value of the cofactor. To turn off extraction of a particular parameter of the elliptic curve, set the appropriate function parameter to NULL.

Return Values

ippStsNoErr

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

ippStsNullPtrErr

Indicates an error condition if the pEC pointer is NULL.

ippStsContextMatchErr

Indicates an error condition if any of the context parameters does not match the operation.

Submit feedback on this help topic

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