pub struct Rar5EncryptionHeader {
pub version: u8,
pub flags: u8,
pub lg2_count: u8,
pub salt: [u8; 16],
pub check_value: Option<[u8; 12]>,
}Expand description
Archive encryption header (type 4).
Fields§
§version: u8Encryption version (currently 0 for AES-256)
flags: u8Encryption flags
lg2_count: u8Log2 of PBKDF2 iteration count
salt: [u8; 16]16-byte salt for key derivation
check_value: Option<[u8; 12]>Password check value (if FLAG_CHECK_PRESENT)
Implementations§
Source§impl Rar5EncryptionHeader
impl Rar5EncryptionHeader
Sourcepub const FLAG_CHECK_PRESENT: u8 = 0x01
pub const FLAG_CHECK_PRESENT: u8 = 0x01
Flag indicating password check value is present
Trait Implementations§
Source§impl Clone for Rar5EncryptionHeader
impl Clone for Rar5EncryptionHeader
Source§fn clone(&self) -> Rar5EncryptionHeader
fn clone(&self) -> Rar5EncryptionHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Rar5EncryptionHeader
impl Debug for Rar5EncryptionHeader
Source§impl PartialEq for Rar5EncryptionHeader
impl PartialEq for Rar5EncryptionHeader
impl Eq for Rar5EncryptionHeader
impl StructuralPartialEq for Rar5EncryptionHeader
Auto Trait Implementations§
impl Freeze for Rar5EncryptionHeader
impl RefUnwindSafe for Rar5EncryptionHeader
impl Send for Rar5EncryptionHeader
impl Sync for Rar5EncryptionHeader
impl Unpin for Rar5EncryptionHeader
impl UnsafeUnpin for Rar5EncryptionHeader
impl UnwindSafe for Rar5EncryptionHeader
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