franziskuskiefer / hpke-rs

Pure Rust implementation of HPKE (https://www.rfc-editor.org/rfc/rfc9180.html)
28 stars 14 forks source link

Fix encaps #16

Closed franziskuskiefer closed 3 years ago

franziskuskiefer commented 3 years ago

This PR fixes a swapped function parameter in the dh kem encaps. It also improves test coverage with the test vectors.

fixes #13 fixes #14

codecov[bot] commented 3 years ago

Codecov Report

Merging #16 (7b8df16) into master (09aa46a) will increase coverage by 0.01%. The diff coverage is 66.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   85.28%   85.30%   +0.01%     
==========================================
  Files          12       13       +1     
  Lines         931      966      +35     
==========================================
+ Hits          794      824      +30     
- Misses        137      142       +5     
Impacted Files Coverage Δ
src/lib.rs 66.23% <34.04%> (-3.22%) :arrow_down:
src/dh_kem.rs 79.80% <78.57%> (-0.20%) :arrow_down:
src/kem.rs 75.55% <100.00%> (+0.55%) :arrow_up:
src/util.rs 100.00% <100.00%> (+42.85%) :arrow_up:
tests/test_features.rs 100.00% <100.00%> (ø)
tests/test_hpke_kat.rs 98.14% <100.00%> (+0.25%) :arrow_up: