Skip to content

Conversation

@jeremylong
Copy link
Contributor

Implement the ability to only generate the hash/digest for specific algorithms instead of all available algorithms. On extremely large projects, the digest calculation can add a significant amount of time.

This allows you to specify exactly which algorithms to use:

      List<Hash> hashes = BomUtils.calculateHashes(
          myFile,
          Version.VERSION_16,
          Arrays.asList(Hash.Algorithm.SHA_256, Hash.Algorithm.SHA_512) 
      );

@jeremylong jeremylong requested a review from a team as a code owner January 21, 2026 18:47
@codacy-production
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for ca1f2221 77.50%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (ca1f222) Report Missing Report Missing Report Missing
Head commit (6c105bd) 6678 5063 75.82%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#776) 40 31 77.50%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

Copy link
Member

@stevespringett stevespringett left a comment

Choose a reason for hiding this comment

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

LGTM

@nscuro nscuro added the enhancement New feature or request label Jan 21, 2026
@nscuro nscuro merged commit 0031339 into CycloneDX:master Jan 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants