Enum encryptfile::OutputOption
[−]
[src]
pub enum OutputOption { AllowOverwrite, IncludeKeyMetadata, }
Output options.
Variants
AllowOverwrite
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.
IncludeKeyMetadata
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]
fn eq(&self, __arg_0: &OutputOption) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for OutputOption
[src]
impl Hash for OutputOption
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for OutputOption
[src]
fn clone(&self) -> OutputOption
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more