Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

I am creating a program in C language with DES (Data Encryption Standard) functionality, but don't know how to apply the initial permutation.

Is it achieved by swapping the values? If "yes", then how is the index of the original message created?

share|improve this question
    
You should check out this: codemiles.com/c-code-examples/… Thanks. –  Yang Xia Sep 24 '13 at 11:55
    
It's a bitwise permutation. What values are you thinking might be swapped? –  B-Con Sep 25 '13 at 23:35
    
You haven't describe the interface type for your DES function (e.g. array of bits, arrays of bytes, array of .., 64 bit value). –  David Koontz Nov 20 '13 at 16:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.