#[non_exhaustive]pub enum UnauthenticatedRecipientMode {
Passphrase,
PublicKey,
}Expand description
Result of a cheap structural probe of an .fcr file’s recipient list.
Not a security claim. probe_recipient_mode performs no KDF, no
private-key operation, no credential prompt, no header-MAC verification,
and no payload decryption. A positive result is not evidence that the file
is authentic, decryptable, untampered, or well-formed beyond the structural
shape required to classify it. Use only for UI / routing hints.
For an authenticated mode value — produced only after a recipient unwraps
and the header MAC verifies — see AuthenticatedRecipientMode on
DecryptOutcome.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Passphrase
File contains exactly one native argon2id recipient and is decrypted
with a passphrase.
PublicKey
File contains one or more native x25519 public-key recipients and is
decrypted with a matching PrivateKey.
Trait Implementations§
Source§impl Clone for UnauthenticatedRecipientMode
impl Clone for UnauthenticatedRecipientMode
Source§fn clone(&self) -> UnauthenticatedRecipientMode
fn clone(&self) -> UnauthenticatedRecipientMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more