Calling Custom function

11/16/2012 3:11:08 PM
Gravatar
Total Posts 13

Calling Custom function

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

11/16/2012 3:38:47 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Calling Custom function

What kind of custom functions? 

11/16/2012 3:56:30 PM
Gravatar
Total Posts 13

Re: Calling Custom function

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.

 

11/19/2012 8:52:17 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Calling Custom function

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.

11/20/2012 10:29:06 AM
Gravatar
Total Posts 13

Re: Calling Custom function

Yes, can we call a custom defined mechanisms? 

11/25/2012 4:54:37 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: Calling Custom function

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