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 8 commits into
base: master
Choose a base branch
from
Open

Adds support AES decryption #579

wants to merge 8 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.

lib/zip/crypto/aes_encryption.rb Outdated Show resolved Hide resolved
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

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 finally found the problem, I've finished the implementation and I'm going to write the tests.

@jplot
Copy link
Author

jplot commented Jun 11, 2024

Hi @hainesr,

What do you think about merging this first version without integrating the integrity test?
And make in a second time the integrity test with the possibility of creating an AES archive.

@coveralls
Copy link

Coverage Status

coverage: 95.115% (-1.9%) from 96.98%
when pulling b8c6c39 on jplot:master
into 5c6a7c9 on rubyzip:master.

@jplot
Copy link
Author

jplot commented Jun 12, 2024

Hi @hainesr,

ready for review.

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

3 participants