mechFromTokKt

Synopsis

CK_MECHANISM_TYPE * mechFromTokKt(
TOK_MECH_DATA * mTab,
CK_KEY_TYPE kt, 
unsigned int * len);

Description

Return an array of mechanisms valid for the given key type.  The returned array is newly allocated and needs to be freed.

Parameters

mTab

List of mechanisms to look up

kt

Key type to get mechanisms for

len

Reference to int to hold number of items in returned array

On Successful Return

Array of CK_MECHANISM_TYPE values or NULL if key type is invalid. Caller should free the array when finished.