在将DE命令发射到HSM时,在响应代码中获得02

Bal*_*SKT 5 python hsm

我正在尝试在HSM(Thales)中使用DE命令创建加密引脚的偏移量。我正在使用Python代码执行此操作。触发命令后,我在响应中得到02。错误代码手册将其描述为

Key inappropriate length for algorithm
Run Code Online (Sandbox Code Playgroud)

我还可以看到在输出中生成的偏移量。但是,为什么此错误代码会出现在响应中。我可以使用输出中的偏移量吗?

预先感谢您的帮助。

Ahm*_*lan 2

根据参考,您可以使用此偏移量。

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.
Run Code Online (Sandbox Code Playgroud)