ECCPComparePoint
ECCPComparePoint
Compares two points on the elliptic curve defined over GF(p).
Syntax
IppStatus ippsECCPComparePoint(const IppsECCPPointState*
pP
, const IppsECCPPointState*
pQ
, IppECResult*
pResult
, IppsECCPState*
pECC
);
Include Files
ippcp.h
Parameters
- pP
- Pointer to the elliptic curve pointP.
- pQ
- Pointer to the elliptic curve pointQ.
- pResult
- Pointer to the comparison result of two points:PandQ.
- pECC
- Pointer to the context of the elliptic cryptosystem.
Description
The function compares two points
P
and Q
on the elliptic curve defined over a prime finite field GF(p
) and allocates the comparison result in accordance with the pointer pResult
.The elliptic curve domain parameters must be hitherto defined by one of the functions:
ECCPSet
or ECCPSetStd
.The comparison result of two points
P
and Q
can take one of the following values:- ippECPointIsEqual
- PointsPandQare equal.
- ippECPointIsNotEqual
- PointsPandQare different.
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 one of the contexts pointed bypPorpECCis not valid.