Home

Awesome

des.nim

Build Status

About

This is a Nim port of a C-based DES implementation. It implements single, double and triple DES operations with support for basic data padding. DUKPT simple key management (PEK is cached, not holding the future keys array) with encrypt/decrypt and MAC operations also supported.

Examples

Refer to the test folder for how to DES crypt/decrypt and DUKPT current key(s) derivation.

Notes

Future

None. All desired operations are now supported. (low priority: perhaps incrementing the internal KSN field and deriving the keys based on it)

Credits

Thanks to the libtomcrypt authors on whose work this library is based.