Skip to content
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

Fix AesStream Invalid Password exception in corrupted files #2344

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

anurakt27
Copy link

This fix addresses corruption of data/log file which can lead to "Invalid Password" exception Issue

Changes:

  • If bytes[32..63] is 0, then write encrypted 1s to bytes[32..63]
  • New unit tests to verify:
    • If AesStream can handle a stream of length less than 8192 bytes
    • If AesStream can handle a stream where bytes[17..8191] is 0
  • Removed the logic from AesStream ctor to add padding of 8175 bytes while creating new "hidden" page for encrypted data/log file.

@mbdavid
Copy link
Owner

mbdavid commented Jul 20, 2023

Thanks @anurakt27 !! I will release a new version with this fix today

@mbdavid mbdavid merged commit 967c413 into mbdavid:master Jul 20, 2023
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.

2 participants