summaryrefslogtreecommitdiffstats
path: root/sop/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sop/src/main.rs')
-rw-r--r--sop/src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/sop/src/main.rs b/sop/src/main.rs
index f708e001..f8abce91 100644
--- a/sop/src/main.rs
+++ b/sop/src/main.rs
@@ -302,14 +302,12 @@ fn real_main() -> Result<()> {
// Encrypt the message.
let mut encryptor =
Encryptor::for_recipients(message, recipients)
+ .add_passwords(passwords)
.symmetric_algo(
symmetric_algos.get(0).cloned().unwrap_or_default());
if let Some(&a) = aead_algos.get(0) {
encryptor = encryptor.aead_algo(a);
}
- for p in passwords {
- encryptor = encryptor.add_password(p);
- }
let message = encryptor.build()
.context("Failed to create encryptor")?;