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

IV should not equal key #3

Open
cryptochecktool opened this issue Dec 13, 2024 · 0 comments
Open

IV should not equal key #3

cryptochecktool opened this issue Dec 13, 2024 · 0 comments

Comments

@cryptochecktool
Copy link

In your code: https://github.com/mirror/jdownloader/blob/f274b29897aad2e0ff0d4fd148e42aadf8b622fa/src/org/jdownloader/container/D.java #L322
Use IV=key.
But iv should be set to a sufficiently random number, otherwise it will lead to a CPA attack.
If IV=key, then CCA attacks will be allowed, that is, only need to send a specific message for encryption, then the key can be restored.
For specific attack methods, see: [https://cedricvanrompay.gitlab.io/cryptopals/challenges/[27](https://cedricvanrompay.gitlab.io/cryptopals/challenges/27](https://cedricvanrompay.gitlab.io/cryptopals/challenges/%5B27%5D(https://cedricvanrompay.gitlab.io/cryptopals/challenges/27). html).html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant