file checksums: add new signature algorithm xxh128#1359
Merged
arogge merged 11 commits intobareos:masterfrom Feb 27, 2023
Merged
file checksums: add new signature algorithm xxh128#1359arogge merged 11 commits intobareos:masterfrom
arogge merged 11 commits intobareos:masterfrom
Conversation
pstorz
reviewed
Jan 20, 2023
Member
pstorz
left a comment
There was a problem hiding this comment.
Please see comments. Does it make sense to have a hash speed test?
Either as extra binary or as commandline switch to bareos-fd?
That way everybody could check the speed test of the different hashtypes on their real hardware.
946774e to
0f2191b
Compare
As OpenSSL is a hard requirement, these cannot be used anymore and thus will be removed.
0f2191b to
9d077b5
Compare
6b7066e to
2a4c076
Compare
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
2a4c076 to
d0ff9c0
Compare
git-subtree-dir: third-party/xxHash git-subtree-split: 35b0373c697b5f160d3db26b1cbb45a0d5ba788c
Add CMake configuration for xxHash library
Registers the xxHash128 checksum in every place configurable hashes are done.
Change "Signature" in bareos systemtest's fileset to xxh128.
Add documentation for the new Signature XXH128 to the FileSet Option documentation.
We only want to ignore the files in the third-party subdirectories, not the ones in the toplevel, that we write ourselves.
d0ff9c0 to
dd35d95
Compare
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for a new signature algorithm xxh128 (xxHash 3 128-bits). The hashing is not cryptographically safe, but is is a lot faster than all other algorithms we support.
Please check
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)
General
Source code quality
bareos-check-sources --since-mergedoes not report any problemsTests