void _des_crypt_decrypt?
#1
I'm working on support for an extra algorithm. The algorithm consists of a few well knows hashing and encryption algorithms. I've successfully implemented most steps, recycling code of a bunch already available OpenCL kernels. However, I'm missing one step: DES decryption.

Perhaps the code is available and was removed by the developers of the DES-based algorithms (1500, 3000 etc.) since it's not used in the specific hash formats. If this is the case, can you please let me know?

Thanks a lot!
#2
For pure DES encryption or decryption you might want to check out the old DES oracle algorithm in -m 3100
#3
Sad 
(07-05-2016, 08:15 AM)atom Wrote: For pure DES encryption or decryption you might want to check out the old DES oracle algorithm in -m 3100

The old Oracle hashing algorithm only usese DES encrypt, not decrypt...  Sad
#4
In DES, for decrypt, you just access the sboxes in reverse. See http://www.scs.stanford.edu/histar/src/p...rypt/des.c how it handles de_keysl[] and en_keysl[]
#5
Thumbs Up 
(07-05-2016, 08:56 AM)atom Wrote: In DES, for decrypt, you just access the sboxes in reverse. See http://www.scs.stanford.edu/histar/src/p...rypt/des.c how it handles de_keysl[] and en_keysl[]

Winner winner chicken diner! Smile

I was not aware of the reverse S boxes part. I've implemented '_des_decrypt_keysetup' with reverse filling of the Kc and Kd arrays and works like a charm.

Thanks for your reply!

John