I'm tasked with implementing a decryption functionality against a device using the DUKPT protocol/scheme/algorithm.
The encryption algorithm itself is just DESede which is easy to work with and have good library support(JCE, BouncyCastle).
The problem is the DUKPT part. I have the Base Derivation Key(a shared secret), the Key Serial Number and the cipher text but I am not able to figure out what to do next.
As much as possible, I do not want to write my own implementation and I would prefer to use a well tested library instead.
Is there such a thing available?
Note: DUKPT = Derived Unique Key Per Transaction