awslabs / mls-rs

An implementation of Messaging Layer Security (RFC 9420)
Apache License 2.0
99 stars 19 forks source link

Add commit_required function on Group #179

Closed tomleavy closed 3 months ago

tomleavy commented 3 months ago

Resolves #156

Description of changes:

Sometimes it is nice to be able to determine if Group::encrypt_application_message will return MlsError::CommitRequired without actually trying to encrypt a message.

Call-outs:

bumped version to 0.41.1

Testing:

Added a test to cover this function

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

codecov-commenter commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.00%. Comparing base (6eeef96) to head (d13f510).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #179 +/- ## ========================================== + Coverage 89.95% 90.00% +0.04% ========================================== Files 175 175 Lines 31101 31123 +22 ========================================== + Hits 27976 28011 +35 + Misses 3125 3112 -13 ```

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