mechFromKt

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

Synopsis

CK_MECHANISM_TYPE * mechFromKt(
CK_KEY_TYPE kt,
unsigned int * len);
Parameter Description
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.