Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

DES decryption

  • 25-03-2008 09:50PM
    #1
    Closed Accounts Posts: 12,382 ✭✭✭✭


    Hello

    I've implemented DES encryption in C. Now I want to implement decryption :)

    I've read:

    Decryption is simply the inverse of encryption, following the same steps as encryption, but reversing the order in which the subkeys are applied.

    Does this mean reverse the order of the subkeys when XORing the output of the e-bit selection table? Or does it mean something else?

    Any help appreciated.

    Thanks


Comments

  • Closed Accounts Posts: 12,382 ✭✭✭✭AARRRGH


    Yep, that's it, just got it working!

    Yay.


  • Registered Users, Registered Users 2 Posts: 17,727 ✭✭✭✭Sherifu


    You need to give people more time to answer :pac:


  • Closed Accounts Posts: 12,382 ✭✭✭✭AARRRGH


    I'm a machine!

    You can still answer if you want, I don't mind ;)


  • Registered Users, Registered Users 2 Posts: 5,398 ✭✭✭DublinDilbert


    dublindude wrote: »
    Hello

    I've implemented DES encryption in C. Now I want to implement decryption :)

    I've read:

    Decryption is simply the inverse of encryption, following the same steps as encryption, but reversing the order in which the subkeys are applied.

    Does this mean reverse the order of the subkeys when XORing the output of the e-bit selection table? Or does it mean something else?

    Any help appreciated.

    Thanks

    It means for decryption the round keys are calculated exactly the same way as encryption... except they are applied in reverse order to the rounds in the encryption process, to perform decryption....


Advertisement