Hi there,
I am getting "Error n. 257" while creating RSAPrivate key . please tell me why ?
The list of all PKCS#11 errors is here:
http://wiki.ncryptoki.com/How-NCryptoki-manages-PKCS-11-errors.ashx
in your case error 257 (0x101) means CKR_USER_NOT_LOGGED_IN.
To use/generate a private key you nee to login.