Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Padding Oracle Attack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo Haldi
Padding Oracle Attack
Commits
3751fd5c
Commit
3751fd5c
authored
2 years ago
by
Hugo Haldi
Browse files
Options
Downloads
Patches
Plain Diff
Some improvements in presentation
parent
7044988a
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slidev/slides.md
+8
-2
8 additions, 2 deletions
slidev/slides.md
with
8 additions
and
2 deletions
slidev/slides.md
+
8
−
2
View file @
3751fd5c
...
...
@@ -137,6 +137,8 @@ Server owns the secret key and initialization vector (IV) used for encryption
sequenceDiagram
Client->>Server: cipher length (4 bytes): 0x00000010
Client->>Server: ciphertext: 0x00112233445566778899aabbccddeeff
Server->>Server: decrypt ciphertext
Server->>Server: check padding
Server->>Client: padding status (1 byte): 0x00 (correct padding)
```
...
...
@@ -153,7 +155,11 @@ Suppose the following setup:
-
Plaintext: $p_1, p_2, p_3, p_4$
-
Ciphertext: $c_1, c_2, c_3, c_4$
We want to decrypt $p_3$
We will start to decrypt $p_3$.
By definition of CBC, we know that:
$$c_3 = E_k(p_3
\o
plus c_2)$$
::right::
...
...
@@ -173,7 +179,7 @@ We know that
$$p_i = D_k(c_i)
\o
plus c_{i-1}$$
Let's generate
a
random bloc $x$ and concatenate $
c_3
$ and $
x$
Let's generate
some
random bloc $x$ and concatenate $
x
$ and $
c_3$.
Using our diagram, we can write the following:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment