KM_ImportDomainParams

Create a domain parmeters object based on file contents.

Synopsis

#include <kmlib.h>

CK_RV  KM_ImportDomainParams( 
                       CK_SESSION_HANDLE hSession,
                       CK_CHAR* pin,                /* optional - callback if required and not provided */
                       CK_SIZE userPinLen,
                       CK_ATTRIBUTE* pObjTpl,       /* CLASS, LABEL, MODIFIABLE, PRIVATE, KEY_TYPE, DELETABLE, TOKEN */
                       CK_COUNT ObjTplSize,
                       char * filename,
                       CK_OBJECT_HANDLE* phObj );
Parameter Description
hSession Cryptoki session handle - may or not be logged in.
pin

Token user pin - optional (if required and not provided, then it is prompted for).

userPinLen Length of the user pin (if any).
pObjTpl

Attributes of new object. Should only contain the following attributes:

>CKA_CLASS (optional) - if provided then must be CKO_DOMAIN_PARAMETERS

>CKA_LABEL (mandatory) - indicates label of new object

>CKA_MODIFIABLE (optional) - defaults to TRUE

>CKA_PRIVATE (optional) - defaults to FALSE (if true user pin is required or session must already be logged in)

>CKA_KEY_TYPE (mandatory) - currently must be CKK_EC, this attribute determines expected file contents

>CKA_DELETABLE (optional) - no default provided

>CKA_TOKEN (optional) - defaults to TRUE

ObjTplSize

Number of entries in pObjTpl.

filename Path and file name of the file to read domain parameters from.
phObj

Pointer to where the object handle is returned.

Returns

Status of operation.

Delete this text and replace it with your own content.