CT_GetECCDomainParameters

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.

Summary

#include“ctlutil.h”

Windows Library: ctlutil.lib

UNIX Library: Libctlutil.a

CK_RV CT_GetECCDomainParameters(
CK_SESSION_HANDLE hSession,
CK_ATTRIBUTE_PTR  attr,
const char *name)
Parameter Description
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