A Recipient is passed to [Encrypt] to wrap an opaque file key to one or more recipient stanza(s). It can be for example a public key like [HybridRecipient], a plugin, or a custom implementation.
| 80 | // recipient stanza(s). It can be for example a public key like [HybridRecipient], |
| 81 | // a plugin, or a custom implementation. |
| 82 | type Recipient interface { |
| 83 | // Most age API users won't need to interact with this method directly, and |
| 84 | // should instead pass [Recipient] implementations to [Encrypt]. |
| 85 | Wrap(fileKey []byte) ([]*Stanza, error) |
| 86 | } |
| 87 | |
| 88 | // RecipientWithLabels can be optionally implemented by a [Recipient], in which |
| 89 | // case [Encrypt] will use WrapWithLabels instead of [Recipient.Wrap]. |
no outgoing calls
no test coverage detected
searching dependent graphs…