-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get session hash pad input bytes after format seen
The use of some raw pad bytes as part of the input to the session hash is a feature of internal format 0, and therefore those bytes must be taken only after format indicator has been handled. This follows up to commit 6774b32 to fix that. * onetime: (Design Overview): Update where the session hash input bytes live. (PadSession._digest_source_length): This is just a length, so don't try to document where the initialization bytes are located. (PadSession._session_hash): Update documentation here too. (PadSession.prepare_for_encryption): Don't initialize hash here, and... (PadSession.prepare_for_decryption): ...update related comment here. (PadSession.convert): Don't initialize hash here either. (PadSession._make_inner_header, PadSession._handle_inner_header): Initialize session hash right after the fuzz source length bytes. * check.sh: Update accordingly.
- Loading branch information
Showing
2 changed files
with
64 additions
and
75 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
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