Hi,
Sorry for very late answer, but this question may be answered, because is frequently asked.
You are exporting key under ZMK in scheme U, it is Thales proprietary scheme, but importing using X scheme, which is usual ANSI ECB without Variants. The plaintext key after decryption using wrong scheme results the completely different key and also key check value.
In such cases, normally, Thales HSM will adjust parity but the key will be wrong.
Do like in example below:
KE
Key Type: 001
Key Scheme: U
Enter encrypted ZMK: U5951F794E619BF50089C987F7D627447
Enter encrypted key: UE9BEB6B92388412B2306538E5E881B8B
Key encrypted under ZMK: UE7BE9848A4C1C6FF601767ACC926A5B0
Key Check Value: B65F 19
RECHECK THE ENCRYPTED ZPK ----->
IK
Key Type: 001
Key Scheme: U
Enter encrypted ZMK: U5951F794E619BF50089C987F7D627447
Enter key: UE7BE9848A4C1C6FF601767ACC926A5B0
...
Regards,
Juris
Sorry for very late answer, but this question may be answered, because is frequently asked.
You are exporting key under ZMK in scheme U, it is Thales proprietary scheme, but importing using X scheme, which is usual ANSI ECB without Variants. The plaintext key after decryption using wrong scheme results the completely different key and also key check value.
In such cases, normally, Thales HSM will adjust parity but the key will be wrong.
Do like in example below:
KE
Key Type: 001
Key Scheme: U
Enter encrypted ZMK: U5951F794E619BF50089C987F7D627447
Enter encrypted key: UE9BEB6B92388412B2306538E5E881B8B
Key encrypted under ZMK: UE7BE9848A4C1C6FF601767ACC926A5B0
Key Check Value: B65F 19
RECHECK THE ENCRYPTED ZPK ----->
IK
Key Type: 001
Key Scheme: U
Enter encrypted ZMK: U5951F794E619BF50089C987F7D627447
Enter key: UE7BE9848A4C1C6FF601767ACC926A5B0
...
Regards,
Juris