Skip to main content
Converted imgur image links from HTTP to HTTPS to avoid mixed content warnings…
Source Link
e-sushi
  • 18.1k
  • 12
  • 85
  • 235
Tweeted twitter.com/#!/StackCrypto/status/628035542719037444

implementing Implementing CBC encryption using decryptionEncryption Using Decryption

I've implemented this algorithm, which, working from the end of the message backwards, creates a valid CBC ciphertext from any plaintext, using the block cipher's decryption operation instead of the encryption operation.

enter image description hereCBC

I bet this is described in the literature, somewhere. Possibly as a bad idea.

My questions:

  1. What is this method/algorithm/construction called?
  2. Is it as secure as CBC implemented the normal way?
  3. Do the normal rules for CBC IV apply to the last ciphertext block or not?

For those wondering why I would want to encrypt my message from the end, this is an exercise in exploiting a padding oracle attack (against my own dummy code running on my own server).

implementing CBC encryption using decryption

I've implemented this algorithm which, working from the end of the message backwards, creates a valid CBC ciphertext from any plaintext, using the block cipher's decryption operation instead of the encryption operation.

enter image description here

I bet this is described in the literature, somewhere. Possibly as a bad idea.

My questions:

  1. What is this method/algorithm/construction called?
  2. Is it as secure as CBC implemented the normal way?
  3. Do the normal rules for CBC IV apply to the last ciphertext block or not?

For those wondering why I would want to encrypt my message from the end, this is an exercise in exploiting a padding oracle attack (against my own dummy code running on my own server).

Implementing CBC Encryption Using Decryption

I've implemented this algorithm, which, working from the end of the message backwards, creates a valid CBC ciphertext from any plaintext, using the block cipher's decryption operation instead of the encryption operation.

CBC

I bet this is described in the literature, somewhere. Possibly as a bad idea.

My questions:

  1. What is this method/algorithm/construction called?
  2. Is it as secure as CBC implemented the normal way?
  3. Do the normal rules for CBC IV apply to the last ciphertext block or not?

For those wondering why I would want to encrypt my message from the end, this is an exercise in exploiting a padding oracle attack (against my own dummy code running on my own server).

edited tags
Link
poncho
  • 150.6k
  • 11
  • 230
  • 369
edited image for clarity
Source Link
Z.T.
  • 824
  • 7
  • 22
Loading
Source Link
Z.T.
  • 824
  • 7
  • 22
Loading