Hi Joao.
The method you are using is for decrypting data (not necessarily a PIN Block) using a BDK, not a ZPK. And also, that BDK should be encrypted with the LMK of the Security module, which I don't see you are setting when instantiating.
Also, the idea is that you don't decrypt a PIN Block, but just translate to another key or validate it using the PVV or the PIN offset.
If you want to do that anyway using that approach, you'll have to import your ZPK under the LMK, then create a BDK, translate the pin block to that BDK and then perform the data decrypt.
Best regards
Andrés Alcarraz
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/4c8fe27c-925b-4a21-9e26-47eb7e6e8541n%40googlegroups.com.