Update padding-oracle-priv.md

This commit is contained in:
Carlos Polop 2021-10-20 09:58:25 +01:00 committed by GitHub
parent 86372ded82
commit 1d71e90dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,11 +4,11 @@
In CBC mode the **previous encrypted block is used as IV **to XOR with the next block:
![CBC encryption](https://assets.pentesterlab.com/padding_oracle/CBC_encryption.png)
![CBC encryption](https://defuse.ca/images/cbc_encryption.png)
To decrypt CBC the **opposite** **operations** are done:
![CBC decryption](https://assets.pentesterlab.com/padding_oracle/CBC_decryption.png)
![CBC decryption](https://defuse.ca/images/cbc_decryption.png)
Notice how it's needed to use an **encryption** **key** and an **IV**.