문제

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

도움이 되었습니까?

해결책

I don't know exactly how DUKPT works, but using the excellent Thales Simulator Project, I took the DUKPT code and ported it to a Java library, my very own crypto-utils project.

Disclaimer: This was a learning exercise for myself and is NOT production code. It may be of help

다른 팁

To implement security using symmentric keys only, an HSM is required - not for performance reasons, but because in software there's no way to store the key securely. So you won't find much in terms of well supported software that implements DUKPT, because it has no practical use.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top