ECCPGet
ECCPGet
Retrieves elliptic curve domain parameters over GF(p).
Syntax
IppStatus ippsECCPGet(IppsBigNumState*
pPrime
, IppsBigNumState*
pA
, IppsBigNumState*
pB
, IppsBigNumState*
pGX
,IppsBigNumState*
pGY
, IppsBigNumState*
pOrder
, int*
cofactor
, IppsECCPState*
pECC
);
Include Files
ippcp.h
Parameters
- pPrime
- Pointer to the characteristicpof the prime finite field GF(p).
- pA
- Pointer to the coefficientAof the equation defining the elliptic curve.
- pB
- Pointer to the coefficientBof the equation defining the elliptic curve.
- pGX
- Pointer to thex-coordinate of the elliptic curve base point.
- pGY
- Pointer to they-coordinate of the elliptic curve base point.
- pOrder
- Pointer to the ordernof the elliptic curve base point.
- cofactor
- Pointer to the cofactorh.
- pECC
- Pointer to the context of the cryptosystem.
Description
The function retrieves elliptic curve domain parameters from the context of the elliptic cryptosystem over a finite field GF(
p
) and allocates them in accordance with the pointers pPrime
, pA
, pB
, pGX
, pGY
, pOrder
, and cofactor
. The elliptic curve domain parameters must be hitherto defined by one of the functions: ECCPSet
or ECCPSetStd
.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 bypPrime,pA,pB,pGX,pGY,pOrder, orpECCis not valid.
- ippStsRangeErr
- Indicates an error condition if the memory size of one of the parameters pointed bypPrime,pA,pB,pGX,pGY,pOrder, andpECCis less than the value offeBitSizein theECCPInitfunction.