Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CBC-static-IV CPA secret suffix attack #7

Open
unicornsasfuel opened this issue Oct 1, 2020 · 0 comments
Open

Add CBC-static-IV CPA secret suffix attack #7

unicornsasfuel opened this issue Oct 1, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@unicornsasfuel
Copy link
Owner

There is an attack on ECB where a secret appended to user input, encrypted, and disclosed in encrypted form can be obtained in plaintext form by bytewise brute force with carefully aligned boundaries. This attack is already implemented as ca3.ecb_cpa_decrypt.

This attack ALSO applies to CBC mode when a static IV is in use. It's a common flaw to use a static IV with CBC mode, and as such this is a very practical attack. We should add this attack to cryptanalib.

@unicornsasfuel unicornsasfuel added the enhancement New feature or request label Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant