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

Kyber Encoding Improvements #3411

Merged
merged 3 commits into from
Mar 24, 2023
Merged

Kyber Encoding Improvements #3411

merged 3 commits into from
Mar 24, 2023

Conversation

reneme
Copy link
Collaborator

@reneme reneme commented Mar 23, 2023

This removes the half-baked DER encoding from Kyber (see #3328). Also it reduces copies and code complexity in Kyber's parsing code. The two changes are in individual commits.

@codecov-commenter
Copy link

Codecov Report

Patch coverage: 93.75% and project coverage change: +0.01 🎉

Comparison is base (33c6ad9) 88.20% compared to head (d41524a) 88.21%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3411      +/-   ##
==========================================
+ Coverage   88.20%   88.21%   +0.01%     
==========================================
  Files         618      618              
  Lines       70477    70331     -146     
  Branches     7001     6994       -7     
==========================================
- Hits        62161    62041     -120     
+ Misses       5387     5357      -30     
- Partials     2929     2933       +4     
Impacted Files Coverage Δ
...ib/pubkey/dilithium/dilithium_common/dilithium.cpp 90.52% <ø> (-0.04%) ⬇️
src/lib/pubkey/kyber/kyber_common/kyber.cpp 97.09% <92.50%> (+0.12%) ⬆️
src/tests/test_kyber.cpp 92.92% <100.00%> (-2.46%) ⬇️

... and 11 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Owner

@randombit randombit left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on


Kyber_PublicKey(const AlgorithmIdentifier& alg_id,
const std::vector<uint8_t>& key_bits);
std::span<const uint8_t> key_bits);
Copy link
Owner

Choose a reason for hiding this comment

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

It would be nice to make this change for all of the key types before 3.0

(This is the sort of minor thing that can be done after the RC)

Left a comment in #3318

@reneme reneme merged commit ab8ee4c into master Mar 24, 2023
@randombit randombit deleted the feature/remove_pqc_der_encodings branch March 24, 2023 09:58
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.

3 participants