GFpECMakePoint
GFpECMakePoint
Constructs the coordinates of a point on an elliptic curve based on the X-coordinate.
Syntax
IppStatus ippsGFpECMakePoint(const IppsGFpElement*
pX
, IppsGFpECPoint*
pPoint
, IppsGFpECState*
pEC
);
Include Files
ippcp.h
Parameters
- pX
- Pointer to theX-coordinate of the point on the elliptic curve.
- pPoint
- Pointer to theIppsGFpECPointcontext.
- pEC
- Pointer to the context of the elliptic curve.
Description
This function computes the coordinates of a point on an elliptic curve based on the
X
-coordinate.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 isNULL.
- ippStsContextMatchErr
- Indicates an error condition if any of the specified contexts does not match the operation.
- ippStsOutOfRangeErr
- Indicates an error condition in the following cases:
- The coordinates of the pointpPointdo not belong to the finite field over which the elliptic curve is initialized.
- The point coordinatepXdoes not belong to the finite field over which the elliptic curve is initialized.
- ippStsBadArgErr
- Indicates an error condition if the finite field over which the elliptic curve is initialized is not prime.
- ippStsQuadraticNonResidueErr
- Indicates an error condition if the square of theY-coordinate of the point is a quadratic non-residue modulop.