Repository navigation
[WIP] GCM support #176
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
Merged
Merged
[WIP] GCM support #176
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
22e80cb
GCM support
reaperhulk cf60326
fix buffer size bug for gcm tag fetch
reaperhulk 65c4e0a
gcm doc fixes
reaperhulk a5e1081
add tag as abstractproperty for modewithaad
reaperhulk cc9ec98
rename NotFinalized exception to NotYetFinalized because alex is right
reaperhulk 24316fd
_AEADCipherContext refactor
reaperhulk 6331daa
gcm doc improvements
reaperhulk ce9c611
enforce AEAD add_data before update
reaperhulk a4bfc08
invalidtag exception for gcm
reaperhulk 2631c2b
gcm doc fixes (per review from alex)
reaperhulk bc31fb2
rename add_data to authenticate_additional_data for clarity (hopefully)
reaperhulk 4664108
simplify code for wrapping ciphercontext/aeadciphercontext
reaperhulk 0092c20
raise TypeError if you attempt to get the tag attribute on a decrypt
reaperhulk a8b35f4
make _CipherContext in backend.py compliant with AEADCipherContext
reaperhulk 86699be
narrow the potential cases where invalidtag can be raised
reaperhulk 67abc86
document tag param for GCM object
reaperhulk 26c8c6a
begin adding warnings to GCM mode
reaperhulk e0b5bb1
explicit backend fix for gcm docs
reaperhulk 5a40896
create AEADEncryptionContext and DecryptionContext
reaperhulk 5b828b1
attempt to document the new interfaces for AEAD
reaperhulk 89d19a4
rename ModeWithAAD to ModeWithAuthenticationTag
reaperhulk 128b948
remove AEADDecryptionContext per review.
reaperhulk 5578c66
improve language for gcm docs
reaperhulk cd28a7c
remove AEADDecryptionContext references from GCM docs
reaperhulk 6728437
link to NIST GCM PDF where NIST recommends 96-bit IV for perf with GCM
reaperhulk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if I try to get the tag on a decryption?