Commit graph

7 commits

Author SHA1 Message Date
Jack Grigg
c7a2e998c6 age-core: Re-export secrecy crate 2021-10-18 14:24:19 +01:00
Jack Grigg
741a1662e1 age-plugin: Simplify IdentityPluginV1 trait 2021-04-13 18:28:45 +12:00
Jack Grigg
5f24783a7c age-plugin: Simplify RecipientPluginV1 trait 2021-04-13 18:28:45 +12:00
Jack Grigg
52c6012be3 age-plugin: Wrap all file keys at once in RecipientPluginV1
This allows plugins to optimise the order in which stanzas are wrapped,
e.g. to only require one user interaction with a hardware token.
2021-02-07 18:56:13 +00:00
Jack Grigg
cd0d79e14c plugins: Extend recipient-v1 state machine with add-identities message
This enables plugins to wrap file keys to identities, for example when
the plugin is built around a symmetric primitive (since we do not want
the recipients encoding to ever contain secrets).
2021-02-05 23:49:13 +00:00
Jack Grigg
91804960d9 plugins: Change recipient-v1 state machine phase 2 to be bidirectional
The previous iteration of the recipient-v1 state machine assumed that
user interaction would never be required during encryption. This is
almost certainly true for asymmetric recipients, but is not the case
for symmetric recipients (e.g. the symmetric key might be stored on a
hardware token that requires a PIN).

The recipient-v1 state machine now uses a bi-directional second phase,
matching the identity-v1 state machine. It defines the same commands
for interacting with users.
2021-02-05 23:49:11 +00:00
Jack Grigg
458081688d age-plugin: Example plugin 2020-12-31 01:50:56 +00:00