Commit graph

4 commits

Author SHA1 Message Date
Dag-Erling Smørgrav
c32bf05135 Assert that the cipher mode and key length are valid. 2017-03-19 15:20:32 +01:00
Dag-Erling Smørgrav
bf0016a888 Implement double- and triple-DES.
Single-DES is now a special case of triple-DES with all three keys being the same.  This is significantly slower than a pure single-DES implementation, but that's fine since nobody should be using it anyway.
2017-03-19 14:32:12 +01:00
Dag-Erling Smørgrav
0d5f51697e Slight cleanup of the DES code. 2017-03-19 13:12:20 +01:00
Dag-Erling Smørgrav
548bf31631 Implement DES (single-key ECB only for now). 2017-03-18 17:12:16 +01:00