-
Notifications
You must be signed in to change notification settings - Fork 19
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
Remove Assume in DefaultCMM #79
Comments
Merged
RustanLeino
added a commit
that referenced
this issue
Feb 29, 2020
* fix: Trade AssumeValidAAD for run-time checks and proofs DefaultCMM.GetEncryptionMaterials is given a valid encryption context, to which it may append the mapping `[reservedField := enc_vk]`. This would invalidate the encryption context if the new entry causes problems with the size limits. * `reservedField` is not UTF8 or is too long (but we know it's fine, because it's a constant) * `enc_vk` is not UTF8 or is too long after it has been Base64 encoded (but we know it's fine, because of the new and tested postcondition of `Signature.KeyGen`, and because of some new specifications and lemmas regarding `Base64.Encode`) * the updated encryption context exceeds the maximum number of allowed mappings (this is now run-time checked) * the updated encryption context contains too many bytes altogether (this is now run-time checked, which involves walking over all the entries in the encryption context--possibly expensive) Fixes #79 * Remove AssumeValidAAD altogether The previous uses of AssumeValidAAD in test/SDK/Serialize.dfy have now been replaced by proofs, found in test/Util/TestUtils.dfy. * Respond to PR comment * Replace extern postcondition with runtime check
josecorella
pushed a commit
to josecorella/aws-encryption-sdk-dafny
that referenced
this issue
Oct 11, 2023
josecorella
pushed a commit
that referenced
this issue
Oct 11, 2023
josecorella
pushed a commit
that referenced
this issue
Oct 11, 2023
josecorella
pushed a commit
that referenced
this issue
Oct 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DefaultCMM.GetEncryptionMaterials
contains:This unchecked assumption should be removed. Replacing it with a run-time check seems appropriate, probably here but possibly later (during serialization).
The text was updated successfully, but these errors were encountered: