Questions tagged [ncryptoki]
2 questions
2
votes
1 answer
Pkcs11Interop read key value from HSM
I'm trying to use Pkcs11Interop to extract the value of the key from the HSM. I know, the key has to stay in the HSM, but I need it, so...
I already do it with NCryptoki and I'd like to do it also with Pkcs11Interop
I tried this code:
// Prepareā¦

Piero Alberto
- 3,823
- 6
- 56
- 108
0
votes
1 answer
Pkcs#11 Session.encrypt CKR_OPERATION_NOT_INITIALIZED using NCryptoki
I'm using Pkcs#11 with the NCryptoki dll to use our HSM and manage the keys.
Why is this code giving me, sometimes, the error 145 (CKR_OPERATION_NOT_INITIALIZED)? I'm trying to avoid it, but I am still missing something... This error happensā¦

Piero Alberto
- 3,823
- 6
- 56
- 108