-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sidetrail): Invalid stream cipher struct in proof wrapper
- Loading branch information
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
14 changes: 14 additions & 0 deletions
14
tests/sidetrail/working/s2n-record-read-stream/s2n_record_read_stream.patch
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/tls/s2n_record_read_stream.c b/tls/s2n_record_read_stream.c | ||
index f40621b..06871ed 100644 | ||
--- a/tls/s2n_record_read_stream.c | ||
+++ b/tls/s2n_record_read_stream.c | ||
@@ -80,6 +80,9 @@ int s2n_record_parse_stream( | ||
POSIX_BAIL(S2N_ERR_BAD_MESSAGE); | ||
} | ||
|
||
+ /* All information is declassified after the MAC is successfully verified. */ | ||
+ __VERIFIER_assume(0); | ||
+ | ||
/* O.k., we've successfully read and decrypted the record, now we need to align the stuffer | ||
* for reading the plaintext data. | ||
*/ |
This file contains 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