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

Adds support AES decryption #579

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Adds support AES decryption #579

wants to merge 4 commits into from

Conversation

jplot
Copy link

@jplot jplot commented Apr 26, 2024

Copy link

@Ph0tonic Ph0tonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few initial remarks from what I have read.

end

def gp_flags
0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As described below, the general purpose flag should be set to 1:

As for any encrypted file, bit 0 of the "general purpose bit flags" field must be set to 1 in each AES-encrypted file's local header and central directory entry.

Suggested change
0
1

amount_to_read -= BLOCK_SIZE
@counter += 1
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are missing the check of the CRC, we should check that the decrypted content hasn't been tampered.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried to integrate the AES integrity check, but it doesn't work.
If you have an idea, I'd love to hear it.

jplot@21bdb68

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.

None yet

2 participants