matrix-org / vodozemac

An implementation of Olm and Megolm in pure Rust.
Apache License 2.0
175 stars 30 forks source link

Add an Elliptic Curve Encryption Scheme #151

Closed poljar closed 6 months ago

poljar commented 6 months ago

This commits adds a Elliptic Curve Encryption Scheme, this scheme can be used in ephemeral situations where a full 3DH-based Olm session might be overkill or too hard to set up.

The canonical example where this can be used is the QR code login feature in Matrix^1.

Co-authored-by: Denis Kasak dkasak@termina.org.uk Co-authored-by: Hugh Nimmo-Smith hughns@users.noreply.github.com

codecov-commenter commented 6 months ago

Codecov Report

Attention: Patch coverage is 91.66667% with 10 lines in your changes missing coverage. Please review.

Project coverage is 90.56%. Comparing base (94ffb9d) to head (013fe79). Report is 51 commits behind head on main.

Files with missing lines Patch % Lines
src/ecies/mod.rs 91.42% 9 Missing :warning:
src/ecies/messages.rs 93.33% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #151 +/- ## ========================================== + Coverage 90.37% 90.56% +0.19% ========================================== Files 32 34 +2 Lines 1787 1908 +121 ========================================== + Hits 1615 1728 +113 - Misses 172 180 +8 ```

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