Skip to content

feat(pbes1): add OID mappings for PBES1 combinations#389

Open
Ayush-Patel-56 wants to merge 1 commit intocbomkit:mainfrom
Ayush-Patel-56:fix/pbes1-oid-mappings-384
Open

feat(pbes1): add OID mappings for PBES1 combinations#389
Ayush-Patel-56 wants to merge 1 commit intocbomkit:mainfrom
Ayush-Patel-56:fix/pbes1-oid-mappings-384

Conversation

@Ayush-Patel-56
Copy link
Copy Markdown

Description

Added OID resolution for PBES1 algorithm combinations during the enrichment phase. This ensures CBOM output includes correct OIDs for both PKCS#5 and PKCS#12 variants, which were previously missing.

Changes

  • Created PBES1Enricher to map digest/cipher combinations to their respective OIDs (RFC 2898 and PKCS#12).
  • Registered the new enricher in the Enricher pipeline.
  • Removed legacy TODO from PBES1.java.
  • Added PBES1EnricherTest with coverage for PKCS#5 and PKCS#12 scenarios.

Related Issues

Fixes #384

Verification

  • Ran mvn test -pl enricher -Dtest=PBES1EnricherTest.
  • Confirmed correct OID resolution for:
    • MD5 + DES (1.2.840.113549.1.5.3)
    • SHA1 + 3-Key TripleDES (1.2.840.113549.1.12.1.3)

Screenshots

Attached is a screenshot showing the node tree before and after enrichment, confirming the OID is correctly resolved:
Screenshot 2026-05-03 204349

Signed-off-by: Ayush Patel <ayushpatel2731@gmail.com>
@Ayush-Patel-56 Ayush-Patel-56 requested a review from a team as a code owner May 3, 2026 15:16
@Ayush-Patel-56 Ayush-Patel-56 changed the title feat(pbes1): add OID mappings feat(pbes1): add OID mappings for PBES1 combinations May 3, 2026
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.

Missing OID mappings in PBES1 algorithm model

1 participant