GFpECSet
GFpECSet
Sets up the parameters of an elliptic curve over a finite field.
Syntax
IppStatus ippsGFpECSet(const IppsGFpElement*
pA
, const IppsGFpElement*
pB
, IppsGFpECState*
pEC
);
Include Files
ippcp.h
Parameters
- pA
- Pointer to the coefficientAof the equation defining the elliptic curve.
- pB
- Pointer to the coefficientBof the equation defining the elliptic curve.
- pEC
- Pointer to the context of the elliptic curve.
Description
This function assigns input values to the parameters of the elliptic curve in the
IppsGFpECState
context, if they are supplied.Only the
pEC
parameter is required. You can omit the other parameters by setting their values to NULL
or zero.Return Values
- ippStsNoErr
- Indicates no error. Any other value indicates an error or warning.
- ippStsNullPtrErr
- Indicates an error condition ifpECisNULL.
- ippStsContextMatchErr
- Indicates an error condition in the following cases:
- IppsGFpECStatecontext parameter does not match the operation.
- pAorpBis not zero, and the corresponding context parameter does not match the operation.
- ippStsOutOfRangeErr
- Indicates an error condition ifpAorpBdoes not belong to the finite field specified by thepGFpcontext.