ECCBSetStd

Sets up a recommended set of elliptic curve domain parameters over GF(2m).

Syntax

IppStatus ippsECCBSetStd(IppECCType flag, IppsECCBState* pECC);

Parameters

flag

Set specifier.

pECC

Pointer to the cryptosystem context.

Description

This function is declared in the ippcp.h file.

The function sets a recommended set of elliptic curve domain parameters over a binary finite field GF(2m).

The set is defined by the value of the parameter flag. Possible values of the parameter are as follows:

IppECCBStd113r1

For the cryptosystem context where feBitSize==113

IppECCBStd113r2

For the cryptosystem context where feBitSize==113

IppECCBStd131r1

For the cryptosystem context where feBitSize==131

IppECCBStd131r2

For the cryptosystem context where feBitSize==131

IppECCBStd163k1

For the cryptosystem context where feBitSize==163

IppECCBStd163r1

For the cryptosystem context where feBitSize==163

IppECCBStd163r2

For the cryptosystem context where feBitSize==163

IppECCBStd193r1

For the cryptosystem context where feBitSize==193

IppECCBStd193r2

For the cryptosystem context where feBitSize==193

IppECCBStd233k1

For the cryptosystem context where feBitSize==233

IppECCBStd233r1

For the cryptosystem context where feBitSize==233

IppECCBStd239k1

For the cryptosystem context where feBitSize==239

IppECCBStd283k1

For the cryptosystem context where feBitSize==283

IppECCBStd283r1

For the cryptosystem context where feBitSize==283

IppECCBStd409k1

For the cryptosystem context where feBitSize==409

IppECCBStd409r1

For the cryptosystem context where feBitSize==409

IppECCBStd571k1

For the cryptosystem context where feBitSize==571

IppECCBStd571r1

For the cryptosystem context where feBitSize==571.

For more information on parameter values for the recommended elliptic curves, see [SEC2] .

The cryptosystem context must be already created by the ECCBGetSize and ECCBInit functions. The value of feBitSize is applied when these function are called and predetermines the possible choice of the flag value.

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 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.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.