str4d / rage

A simple, secure and modern file encryption tool (and Rust library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org/v1
Apache License 2.0
2.68k stars 104 forks source link

age: Take recipients by reference in `Encryptor::with_recipients` #523

Closed str4d closed 2 months ago

str4d commented 2 months ago

This aligns it with Decryptor, and means that recipients can be used to encrypt multiple files without cloning.

Part of str4d/rage#353.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 87.09677% with 4 lines in your changes missing coverage. Please review.

Project coverage is 50.87%. Comparing base (8b0b65e) to head (9ab26bf). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
age/src/protocol.rs 86.95% 3 Missing :warning:
age/src/error.rs 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #523 +/- ## ========================================== - Coverage 50.88% 50.87% -0.02% ========================================== Files 42 42 Lines 4121 4136 +15 ========================================== + Hits 2097 2104 +7 - Misses 2024 2032 +8 ```

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