aws / aws-lc-rs

aws-lc-rs is a cryptographic library using AWS-LC for its cryptographic operations. The library strives to be API-compatible with the popular Rust library named ring.
Other
318 stars 49 forks source link

KDF in Counter Mode and One-Step KDF API #482

Closed skmcgrail closed 3 months ago

skmcgrail commented 3 months ago

Description of changes:

Adds support for KDF in Counter Mode and One-Step Key Derivation functions from NIST SP 800-108 and NIST SP 800-56c respectively.

Currently the APIs are under crate::unstable::kdf due to not being able to support this with the fips feature at this time.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 87.98883% with 43 lines in your changes missing coverage. Please review.

Project coverage is 92.58%. Comparing base (c358484) to head (93d8411). Report is 54 commits behind head on main.

Files Patch % Lines
aws-lc-rs/src/unstable/kdf/sskdf.rs 82.97% 24 Missing :warning:
aws-lc-rs/src/unstable/kdf/kbkdf.rs 83.82% 11 Missing :warning:
aws-lc-rs/src/agreement/ephemeral.rs 76.47% 5 Missing and 3 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #482 +/- ## ========================================== - Coverage 95.80% 92.58% -3.22% ========================================== Files 61 66 +5 Lines 8143 8812 +669 Branches 0 8812 +8812 ========================================== + Hits 7801 8159 +358 - Misses 342 396 +54 - Partials 0 257 +257 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.