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

Gracefully handle unrecognized HPKE algorithms #412

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

divergentdave
Copy link
Contributor

This fixes #390. The HpkeConfig constructor is changed to allow any wire-format-compatible values, and checking against the known algorithms is deferred until we touch our backend crypto library.

@divergentdave divergentdave requested review from jbr and a team as code owners September 15, 2023 18:16
@github-actions
Copy link

Pull Request Test Coverage Report for Build 6201466397

  • 14 of 16 (87.5%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 91.01%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/dap/src/hpkeConfig.ts 14 16 87.5%
Totals Coverage Status
Change from base Build 6201131084: 0.07%
Covered Lines: 3458
Relevant Lines: 3762

💛 - Coveralls

Copy link
Contributor

@jbr jbr left a comment

Choose a reason for hiding this comment

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

I'm neutral on the range checks on construction, but not at all opposed to them

@divergentdave divergentdave merged commit f6ec5ff into main Sep 15, 2023
4 checks passed
@divergentdave divergentdave deleted the david/unrecognized-algos branch September 15, 2023 19:54
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.

Gracefully handle unrecognized HPKE algorithms
2 participants