Struct rpkg_rs::encryption::xtea::Xtea
source · pub struct Xtea;Expand description
Implementation of XTEA encryption and decryption methods.
Implementations§
source§impl Xtea
impl Xtea
sourcepub const DEFAULT_KEY: [u32; 4] = _
pub const DEFAULT_KEY: [u32; 4] = _
Default XTEA key, used in thumbs.dat and packagedefinition.txt
sourcepub fn is_encrypted_text_file(input_buffer: &[u8]) -> bool
pub fn is_encrypted_text_file(input_buffer: &[u8]) -> bool
Checks if a given buffer represents an encrypted text file. This function will check for the presence of a default header in the text file.
Auto Trait Implementations§
impl Freeze for Xtea
impl RefUnwindSafe for Xtea
impl Send for Xtea
impl Sync for Xtea
impl Unpin for Xtea
impl UnwindSafe for Xtea
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