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

feat: cipher modes of operation #127

Merged
merged 20 commits into from
Jul 8, 2024
Merged

Conversation

lonerapier
Copy link
Collaborator

@lonerapier lonerapier commented Jul 5, 2024

This PR fixes/closes issue #98
Closes #98

Depends on #124

It changes the following:

  • adds a BlockCipher trait
  • modes of operation:
    • CBC
    • CTR
  • example showcasing CPA attack on chained CBC

TODO:

  • CTR mode

@lonerapier
Copy link
Collaborator Author

will open a new issue for AEADs like AES-GCM and ChaCha20Poly1305.

@lonerapier lonerapier marked this pull request as ready for review July 6, 2024 06:58
@0xJepsen 0xJepsen self-requested a review July 8, 2024 12:44
Copy link
Contributor

@0xJepsen 0xJepsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good to me! I think there are just a field conflicts with the AES decryption that i merged in this morning.

@lonerapier
Copy link
Collaborator Author

rebased with main

@0xJepsen 0xJepsen merged commit 6e6a230 into pluto:main Jul 8, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

feat(block cipher): mode of operation
3 participants