Enum encryptfile::OutputOption [] [src]

pub enum OutputOption {
    AllowOverwrite,
    IncludeKeyMetadata,
}

Output options.

Variants

If the output file exists and this is set, it will be overwritten. If this is NOT set and the file exists, encryption/decryption will return an error.

This setting is disabled by default.

Controls whether metadata about the generated key is included (as cleartext) in the output file. For example, if scrypt is used, the metadata contains the Log(N),R,and P parameters vaues that were provided to scrypt to generate the key. The metadata does not include the original password text or salt.

This provides a margin of safety in case the original parameters are lost and the file needs to be decrypted; however, it also make it easier for an attacker to run brute force attacks since he will know what parameters to use. This setting only affects password types that use the PasswordKeyGenMethod enum.

This setting enabled by default.

Trait Implementations

impl PartialEq for OutputOption
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for OutputOption
[src]

impl Hash for OutputOption
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for OutputOption
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more