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

added extra encryption algorithm #621

Merged
merged 10 commits into from Jun 14, 2020

Conversation

samalloing
Copy link
Collaborator

Hi @carlwilson

In this pull request I added code for a new encryption algorithm 256-bit AES. It is allowed in the extensionlevel 3 as a new encryption algorithm. This code is independent of the Extension level code I mailed you about.

Sam

In the extensionlevel 3 a new encryption algorithm is allowed 256-bit AES. This commit adds that option
Extra code when the encryption algorithm is 5, because there are additional properties
When the Encryption Algorithm is 5, the fields OwnerEncryptionKey and UserEncryptionKey are mandatory
Copy link
Member

@david-russo david-russo left a comment

Choose a reason for hiding this comment

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

More good work. Thanks, Sam.

@samalloing
Copy link
Collaborator Author

Thanks again @david-russo . I updated the pull request

@carlwilson
Copy link
Member

Thanks both @samalloing and @david-russo

@carlwilson
Copy link
Member

Interesting, this has broken the build. The issue is that the IDs for the message resources are mal-formed and the messages can't be loaded. I've added a review comment that requests changes.

Copy link
Member

@carlwilson carlwilson left a comment

Choose a reason for hiding this comment

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

See comment inline but good work overall thanks @samalloing

@@ -153,3 +153,6 @@ PDF-HUL-147 = Page tree node not found.
PDF-HUL-148 = PDF minor version number is greater than 7.
PDF-HUL-149 = Invalid indirect destination - referenced object ''{0}'' cannot be found
PDF-HUL-150 = Cross-reference stream must be a stream
PDF_HUL_151 = Unexpected error occurred while attempting to read the cross-reference table
Copy link
Member

Choose a reason for hiding this comment

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

These are the culprits, they should be using hyphens, not underscores.

@samalloing
Copy link
Collaborator Author

I updated it, sorry about the mistake @carlwilson

@codecov
Copy link

codecov bot commented Jun 11, 2020

Codecov Report

Merging #621 into integration will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff               @@
##             integration     #621   +/-   ##
==============================================
  Coverage          45.63%   45.63%           
  Complexity          1046     1046           
==============================================
  Files                 57       57           
  Lines               9149     9149           
  Branches            1687     1687           
==============================================
  Hits                4175     4175           
  Misses              4424     4424           
  Partials             550      550           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4294ddb...8569249. Read the comment docs.

@carlwilson
Copy link
Member

I updated it, sorry about the mistake @carlwilson

No need at all, that's what the autotests are for, thanks @samalloing

@carlwilson carlwilson merged commit dab5273 into openpreserve:integration Jun 14, 2020
@samalloing samalloing deleted the samalloing-patch-4 branch June 19, 2020 08:17
@carlwilson carlwilson added this to the JHOVE 1.26 milestone Apr 6, 2022
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