Sets up a recommended set of elliptic curve domain parameters over GF(p).
IppStatus ippsECCPSetStd(IppECCType flag, IppsECCPState* pECC);
flag |
Set specifier. |
pECC |
Pointer to the cryptosystem context. |
This function is declared in the ippcp.h file.
The function sets a recommended set of elliptic curve domain parameters over a prime finite field GF(p).
The set is defined by the value of the parameter flag. Possible values of the parameter are as follows:
IppECCPStd112r1 |
For the cryptosystem context where feBitSize==112 |
IppECCPStd112r2 |
For the cryptosystem context where feBitSize==112 |
IppECCPStd128r1 |
For the cryptosystem context where feBitSize==128 |
IppECCPStd128r2 |
For the cryptosystem context where feBitSize==128 |
IppECCPStd160r1 |
For the cryptosystem context where feBitSize==160 |
IppECCPStd160r2 |
For the cryptosystem context where feBitSize==160 |
IppECCPStd192r1 |
For the cryptosystem context where feBitSize==192 |
IppECCPStd224r1 |
For the cryptosystem context where feBitSize==224 |
IppECCPStd256r1 |
For the cryptosystem context where feBitSize==256 |
IppECCPStd384r1 |
For the cryptosystem context where feBitSize==384 |
IppECCPStd521r1 |
For the cryptosystem context where feBitSize==521. |
For more information on parameter values for the recommended elliptic curves, see [SEC2].
The cryptosystem context must be already created by the ECCPGetSize and ECCPInit functions. The value of feBitSize is applied when these functions are called and predetermines the possible choice of the flag value.
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsContextMatchErr |
Indicates an error condition if the cryptosystem context is not valid. |
ippStsECCInvalidFlagErr |
Indicates an error condition if the value of the parameter flag is not valid. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.