Environment
- OS: Linux
- rage version: 0.9.2
What were you trying to do
Decrypting a file with a custom plugin and multiple identities. The two identities were in a file "ids.txt" (one per line) as such:
AGE-PLUGIN-MY-PLUGIN<identity 1 data>
AGE-PLUGIN-MY-PLUGIN<identity 2 data>
During encryption via cat secret.txt | rage -e -i ids.txt -o secret.txt.enc both identities were correctly sent from the controller to the plugin:
-> add-identity AGE-PLUGIN-MY-PLUGIN<identity 1 data>
-> add-identity AGE-PLUGIN-MY-PLUGIN<identity 2 data>
[...]
What happened
When decrypting using the same identity file via cat secret.txt.enc | rage -d -i ids.txt the controller only sends the first identity from the file:
-> add-identity AGE-PLUGIN-MY-PLUGIN<identity 1 data>
-> recipient-stanza 0 my-plugin ...
[more stanzas and grease]
-> done
The second identity was not sent. If I understand the spec correctly, the plugin should get all identities in phase 1 of "identity-v1".
Environment
What were you trying to do
Decrypting a file with a custom plugin and multiple identities. The two identities were in a file "ids.txt" (one per line) as such:
During encryption via
cat secret.txt | rage -e -i ids.txt -o secret.txt.encboth identities were correctly sent from the controller to the plugin:What happened
When decrypting using the same identity file via
cat secret.txt.enc | rage -d -i ids.txtthe controller only sends the first identity from the file:The second identity was not sent. If I understand the spec correctly, the plugin should get all identities in phase 1 of "identity-v1".