namib-project / dcaf-rs

Implementation of the ACE-OAuth framework.
4 stars 1 forks source link

Add a RustCrypto based backend for cryptographic COSE operations #22

Closed pulsastrix closed 3 months ago

pulsastrix commented 3 months ago

Basically the same as was done for openssl in #13, just based on the RustCrypto collection of crates.

The easiest way of using this backend is by enabling the rustcrypto feature. However, if minimal binary size is desired, you can instead also limit the supported algorithms by adding only the rustcrypto-* features you need.

Resolves #20

coveralls commented 3 months ago

Pull Request Test Coverage Report for Build 10322512694

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/token/cose/crypto_impl/rustcrypto/encrypt/aes_gcm.rs 26 30 86.67%
src/token/cose/crypto_impl/rustcrypto/mac/hmac.rs 34 38 89.47%
src/token/cose/crypto_impl/rustcrypto/key_distribution/aes_key_wrap.rs 24 30 80.0%
src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs 45 57 78.95%
src/token/cose/crypto_impl/rustcrypto/mod.rs 15 38 39.47%
<!-- Total: 260 309 84.14% -->
Totals Coverage Status
Change from base Build 10239244251: -0.02%
Covered Lines: 2986
Relevant Lines: 3515

💛 - Coveralls