GFpECInitStd
GFpECInitStd
Initializes the context for the cryptosystem based on a standard elliptic curve.
Syntax
IppStatus ippsGFpECInitStd128r1(const IppsGFpState*
pGFp
, IppsGFpECState*
pEC
);
IppStatus ippsGFpECInitStd128r2(const IppsGFpState*
pGFp
, IppsGFpECState*
pEC
);
IppStatus ippsGFpECInitStd192r1(const IppsGFpState*
pGFp
, IppsGFpECState*
pEC
);
IppStatus ippsGFpECInitStd224r1(const IppsGFpState*
pGFp
, IppsGFpECState*
pEC
);
IppStatus ippsGFpECInitStd256r1(const IppsGFpState*
pGFp
, IppsGFpECState*
pEC
);
IppStatus ippsGFpECInitStd384r1(const IppsGFpState*
pGFp
, IppsGFpECState*
pEC
);
IppStatus ippsGFpECInitStd521r1(const IppsGFpState*
pGFp
, IppsGFpECState*
pEC
);
IppStatus ippsGFpECInitStdSM2(const IppsGFpState*
pGFp
, IppsGFpECState*
pEC
);
Include Files
ippcp.h
Parameters
- pGFp
- Pointer to theIppsGFpStatecontext of the underlying finite field.
- pEC
- Pointer to the cryptosystem context based on a standard elliptic curve
Description
Each of these functions initializes the context of the elliptic curve cryptosystem based on 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 any of the specified pointers isNULL.
- ippStsContextMatchErr
- Indicates an error condition if theIppsGFpECStatecontext parameter does not match the operation.
- ippStsBadArgErr
- Indicates an error condition if theIppsGFpECStatecontext parameter does not specify the finite field over which the given standard elliptic curve is defined.