Dear Ugo,
The HSM that i am working with allows me to create a custom function inside of it. Is there a way to call this custom function from NCryptoki?
Thanks,
hsen
What kind of custom functions?
Sample Custom function: Custom Session Key Derivation.
I just need to check if your NCryptoki.dll allows me to call this custom function by specifying its function name.
I don't understand if you are referring to MECHANISMs, like CKM_DES, CKM_SHA1, etc. or to actual functions like C_Initialize, C_CreateObject, etc.
Custom Session Key Derivation is a mechanism not a function.
Yes, can we call a custom defined mechanisms?
Yes, you can.
See the class Mechanism. You can create a Mechanism object by specifyng your own custom mechanism and parameter.
See the wiki: http://wiki.ncryptoki.com/How-to-manage-a-mechanisms-parameter.ashx