-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(encrypt): improve streaming encryption implementation
- Replace get_pki with get_pad_key_and_iv to match original encryption algorithm - Create sorted vector of source hashes upfront for consistent encryption - Remove unused chunk_count parameter from encrypt_stream function - Simplify code by removing manual hash lookups for each chunk type All tests passing. This change maintains the same encryption algorithm while processing chunks in a streaming fashion, improving memory efficiency for large files.
- Loading branch information
Showing
2 changed files
with
114 additions
and
48 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