NCryptoki

 

How to fetch list of active multiple sessions in ncryptoki

6/13/2022 3:15:46 PM
Gravatar
Total Posts 2

How to fetch list of active multiple sessions in ncryptoki

Hi Team,

We have an application where we are trying to implement multithreading with Ncryptoki Sessions (Open Multiple NCryptoki sessions in parallel and give the handle to user when requested for, so as to increase the performance). We would like to know if there are any options/methods available in Ncryptoki library that helps to fetch the list of active/live sessions after we have multiple sessions opened in Ncryptoki. Am developing the application using C# .Net with Ncryptoki library and I have set Cryptoki.Initialize(true) that allows my the underlying pkcs module to work in multithreading fashion. 

From the HSM client, I could see the list of available Ncryptoki sessions and am able to select the session that I want to use and also can proceed to do the signing operations. Is there any method/function to retrieve the list of active sessions in the crypto library? Please guide me on ways to get this done or are there any alternates to this? Please share your inputs.

http://www.ncryptoki.com/Forums/Thread.aspx?pageid=9&t=352~1