[−][src]Struct rclone_crypt::decrypter::Decrypter
Decrypter instance for a single file. This is not a managed reader; it must be assisted with a separate reader that passes it blocks of encrypted data of interest.
Methods
impl Decrypter
[src]
pub fn new(file_key: &FileKey, file_header: &[u8]) -> Result<Self>
[src]
pub fn decrypt_block(&self, block_id: u64, block: &[u8]) -> Result<Vec<u8>>
[src]
Decrypts a block using the nonce and password state The block must be of max BLOCK_SIZE bytes; the final block in the file may be lower than this but otherwise block will be of that exact size.
Auto Trait Implementations
impl RefUnwindSafe for Decrypter
impl Send for Decrypter
impl Sync for Decrypter
impl Unpin for Decrypter
impl UnwindSafe for Decrypter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,