Error -2147483389: ERACOM_PTK_CHECK_VALUE

3/9/2017 8:09:28 AM
Gravatar
Total Posts 33

Error -2147483389: ERACOM_PTK_CHECK_VALUE

Hi, I have a strange error.

 

I have a Safenet HSM and the native tools to navigate throguh the keys work perfetcly.

 

My code, already used with other HSMs, is not working and it gives me the error -2147483389 (ERACOM_PTK_CHECK_VALUE).

I can't find anything about this... can you explain me what it is and give me some hints?

3/14/2017 3:18:16 PM
Gravatar
Total Posts 30

Re: Error -2147483389: ERACOM_PTK_CHECK_VALUE

Which function gives you such an error?

3/15/2017 8:01:24 AM
Gravatar
Total Posts 33

Re: Error -2147483389: ERACOM_PTK_CHECK_VALUE

In my log I have this stackTrace:

15/03/2017 07.56.17: Errore Cryptware.NCryptoki.CryptokiException: Error n. -2147483389
   in Cryptware.NCryptoki.Cryptoki.get_Info()
   in .../stuff/file.cs:riga 1374

 

And, in the row 1374 I have this:

CryptokiInfo info = cryptoki.Info;

If I remove this row, the program runs until it reaches this:

SlotList slots = cryptoki.Slots;
if (slots.Count == 0)
{
    Utility.Logger("No slot available");
    return null;
}

 

and it can't find any slots.

 

Do you know what is wrong here?

 

 

 

 

4/5/2017 11:36:43 AM
Gravatar
Total Posts 33

Re: Error -2147483389: ERACOM_PTK_CHECK_VALUE

Nothing? Nobody?

4/5/2017 11:51:23 AM
Gravatar
Total Posts 30

Re: Error -2147483389: ERACOM_PTK_CHECK_VALUE

This error: ERACOM_PTK_CHECK_VALUE is specific to the HSM that you are using. It's not a standard error code.

We don't know what exactly mean and why it happens. Please refer to the HSM documentation and let's know