Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting 02 in response code while firing DE command to HSM

Tags:

python

hsm

I am trying to create an offset of an encrypted pin using DE command in HSM (Thales). I am using Python code to do this. After firing the command I am getting 02 in the response. The error codes manual describes it as

Key inappropriate length for algorithm

I can also see the offset generated in the output. But why this error code is coming in the response. Can I use the offset coming in the output?

Thanks for help in advance.

like image 628
Balu SKT Avatar asked Oct 31 '22 08:10

Balu SKT


1 Answers

According to reference you can use this offset.

If a double or triple length PVK is used, Error Code 02 is returned as a warning but
processing continues generating the offset using TDES in place of DES.
like image 129
Ahmet Arslan Avatar answered Nov 15 '22 04:11

Ahmet Arslan