Skip to content

fix: nonFramed maximum content length #316

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 5 commits into from
May 4, 2020

Conversation

seebees
Copy link
Contributor

@seebees seebees commented Apr 24, 2020

nonFramed messages are encrypted under a single operation.
The maximum number of bytes for a single AES-GCM "operation."
is 2 ** 36 - 32
This is related to the GHASH block size,
and can be thought of as the maximum bytes
that can be encrypted with a single IV.
The AWS Encryption SDK for Javascript
does not support non-framed encrypt
https://github.com/awslabs/aws-encryption-sdk-specification/blob/master/data-format/message-body.md#non-framed-data

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

nonFramed messages are encrypted under a single operation.
The maximum number of bytes for a single AES-GCM "operation."
is 2 ** 36 - 32
This is related to the GHASH block size,
and can be thought of as the maximum bytes
that can be encrypted with a single IV.
The AWS Encryption SDK for Javascript
does not support non-framed encrypt
https://github.com/awslabs/aws-encryption-sdk-specification/blob/master/data-format/message-body.md#non-framed-data
@seebees seebees requested a review from a team April 24, 2020 17:25
@mattsb42-aws
Copy link
Member

and can be thought of as the maximum bytes
that can be encrypted with a single IV.

nit: single key/IV pair

seebees and others added 3 commits April 24, 2020 16:51
Co-Authored-By: Matt Bullock <bullocm@amazon.com>
Co-Authored-By: Matt Bullock <bullocm@amazon.com>
@seebees seebees merged commit 9c2f26c into aws:master May 4, 2020
@seebees seebees deleted the non-framed-content-length-maximum branch May 4, 2020 21:26
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.

2 participants