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

file checksums: add new signature algorithm xxh128 #1394

Merged
merged 11 commits into from
Apr 17, 2023

Conversation

arogge
Copy link
Member

@arogge arogge commented Feb 24, 2023

Thank you for contributing to the Bareos Project!

Backport of PR #1359 to bareos-22

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
Tests
  • Decision taken that a test is required (if not, then remove this paragraph)
  • The choice of the type of test (unit test or systemtest) is reasonable
  • Testname matches exactly what is being tested
  • On a fail, output of the test leads quickly to the origin of the fault

@arogge arogge marked this pull request as draft February 24, 2023 11:00
@arogge arogge force-pushed the dev/arogge/bareos-22/add-xxh128 branch from 32b7c3b to 8b1673e Compare February 27, 2023 10:53
@arogge arogge requested a review from pstorz March 30, 2023 10:08
@arogge arogge marked this pull request as ready for review March 30, 2023 10:08
Copy link
Member

@pstorz pstorz left a comment

Choose a reason for hiding this comment

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

Looks good!

@pstorz pstorz force-pushed the dev/arogge/bareos-22/add-xxh128 branch 4 times, most recently from e18cbeb to 8b1673e Compare April 3, 2023 10:32
@pstorz pstorz force-pushed the dev/arogge/bareos-22/add-xxh128 branch from ad198c5 to 8b1673e Compare April 9, 2023 10:02
As OpenSSL is a hard requirement, these cannot be used anymore and thus
will be removed.

(cherry picked from commit e97e21d)
Refactor the code on crypto_openssl so that we can add another digest
that is not openssl-based. This mostly adds another level of
indirection by moving digest update and finalize into class scope and
making Digest a base-class with no ties to OpenSSL.

TL;DR use virtual dispatch so we can call something that is not OpenSSL

(cherry picked from commit 29e6692)
git-subtree-dir: third-party/xxHash
git-subtree-split: 35b0373c697b5f160d3db26b1cbb45a0d5ba788c
Add CMake configuration for xxHash library

(cherry picked from commit 89089c3)
Registers the xxHash128 checksum in every place configurable hashes are
done.

(cherry picked from commit 8801b21)
Change "Signature" in bareos systemtest's fileset to xxh128.

(cherry picked from commit d69e476)
Add documentation for the new Signature XXH128 to the FileSet Option
documentation.

(cherry picked from commit 930785b)
We only want to ignore the files in the third-party subdirectories, not
the ones in the toplevel, that we write ourselves.

(cherry picked from commit dd35d95)
@arogge arogge force-pushed the dev/arogge/bareos-22/add-xxh128 branch from 8b1673e to 3eddd5f Compare April 17, 2023 13:02
@pstorz pstorz merged commit 807bc56 into bareos:bareos-22 Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants