pub enum ArjEncryption {
Garble,
Gost40,
Gost256,
Unknown,
}Expand description
ARJ encryption methods
Variants§
Garble
Standard “garble” encryption (XOR-based, very weak)
Gost40
GOST 28147-89 with 40-bit key (export-restricted, weak)
Gost256
GOST 28147-89 with 256-bit key (requires ARJCRYPT module)
Unknown
Encrypted but method unknown
Implementations§
Source§impl ArjEncryption
impl ArjEncryption
Sourcepub fn from_version(version: u8, is_garbled: bool) -> Option<Self>
pub fn from_version(version: u8, is_garbled: bool) -> Option<Self>
Get encryption type from ARJ encryption version byte
Trait Implementations§
Source§impl Clone for ArjEncryption
impl Clone for ArjEncryption
Source§fn clone(&self) -> ArjEncryption
fn clone(&self) -> ArjEncryption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ArjEncryption
Source§impl Debug for ArjEncryption
impl Debug for ArjEncryption
Source§impl Display for ArjEncryption
impl Display for ArjEncryption
impl Eq for ArjEncryption
Source§impl Hash for ArjEncryption
impl Hash for ArjEncryption
Source§impl PartialEq for ArjEncryption
impl PartialEq for ArjEncryption
impl StructuralPartialEq for ArjEncryption
Auto Trait Implementations§
impl Freeze for ArjEncryption
impl RefUnwindSafe for ArjEncryption
impl Send for ArjEncryption
impl Sync for ArjEncryption
impl Unpin for ArjEncryption
impl UnsafeUnpin for ArjEncryption
impl UnwindSafe for ArjEncryption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.