RecipientWithLabels can be optionally implemented by a [Recipient], in which case [Encrypt] will use WrapWithLabels instead of [Recipient.Wrap]. Encrypt will succeed only if the labels returned by all the recipients (assuming the empty set for those that don't implement RecipientWithLabels) are the
| 97 | // to ensure a recipient is always used alone (by returning a random label, for |
| 98 | // example to preserve its authentication properties). |
| 99 | type RecipientWithLabels interface { |
| 100 | WrapWithLabels(fileKey []byte) (s []*Stanza, labels []string, err error) |
| 101 | } |
| 102 | |
| 103 | // A Stanza is a section of the age header that encapsulates the file key as |
| 104 | // encrypted to a specific recipient. |
no outgoing calls
no test coverage detected
searching dependent graphs…