Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Deprecate Memory Mode#54

Merged
brxken128 merged 5 commits intov8.5.0from
deprecate-memory-mode
Jun 7, 2022
Merged

Deprecate Memory Mode#54
brxken128 merged 5 commits intov8.5.0from
deprecate-memory-mode

Conversation

@brxken128
Copy link
Owner

This branch implements something that Antidote1911 and I spoke about. They mentioned that streaming mode is compatible with files smaller than BLOCK_SIZE, and they were right.

I was under the assumption that StreamLE31::encrypt_last did some wizardry under-the-hood, and opted to keep both modes. It turns out that encrypt_last just takes ownership of the STREAM object, to prevent it from being used further.

Decrypting files that were encrypted in memory-mode is still supported, but streaming mode is now used by default for all files - no matter the size.

I'd like to thank Antidote1911 for pointing this out to me!

@brxken128
Copy link
Owner Author

The tests pass, and everything looks golden. I'll merge this!

@brxken128 brxken128 merged commit 2ce877b into v8.5.0 Jun 7, 2022
@brxken128 brxken128 deleted the deprecate-memory-mode branch June 7, 2022 19: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.

1 participant