CT_GetECCDomainParameters
#include“ctutil.h”
Windows Library: ctutil.lib
UNIX Library: Libctutil.a
CK_RV CT_GetECCDomainParameters( CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR attr, const char *name)
Description
This function returns the DER encoded Domain Parameters for a curve specified by name.
First the CT_DerEncodeNamedCurve function is used to see if the curve is known to the HSM. If not, then this function looks up the appropriate Domain Parameter object in the token indicated by hSession.
Parameters
param hSession |
Session where Domain Parameter object can be found |
param attr |
ptr to attribute structure to hold encoding of domain parameters (length prediction supported) |
param name |
Label of Domain Parameter object or known named curve |
return |
Cryptoki error returned, CKR_OK if successful |