node-dukpt icon indicating copy to clipboard operation
node-dukpt copied to clipboard

dukpt AES not working

Open hominator opened this issue 2 years ago • 3 comments

In dukpt.lib.js there is a check for KSN being 20 bytes regardless of encryption mode. If this check is updated to 24 to allow for the larger AES KSN then the the code gets further but the generated IPEK is incorrect. What testing was done for dukpt AES?

hominator avatar Jun 24 '23 21:06 hominator

I have the same issue trying to get AES256 DUKPT working. At first glance it looks like the _createIPEK function is still using DES to generate the IPEK. So it looks like the implementation is incomplete.

Did you end up finding a solution @hominator ?

nfogg avatar Sep 12 '23 07:09 nfogg

Same issue here, trying to use DUKPT 2017 which allows for a 24 byte KSN but I get an exception.

Vasperous avatar Apr 05 '24 18:04 Vasperous

Thank you for reporting the issue. Unfortunately, I won't be able to look at this issue anytime soon. I'm looking for maintainers for the repository, and happy to review any PRs.

deepal avatar Apr 06 '24 11:04 deepal