pub struct StreamDecryptor { /* private fields */ }Implementations§
Source§impl StreamDecryptor
impl StreamDecryptor
Sourcepub fn with_password(
password: &str,
manifest_blob: &mut Blob,
) -> Result<Self, Error>
pub fn with_password( password: &str, manifest_blob: &mut Blob, ) -> Result<Self, Error>
Constructs an instance with a password and an encrypted manifest
Sourcepub fn decrypt_chunk(
&self,
cypherchunk: &mut CypherChunk,
) -> Result<DecryptedBlob, Error>
pub fn decrypt_chunk( &self, cypherchunk: &mut CypherChunk, ) -> Result<DecryptedBlob, Error>
Decrypts a chunk and returns decrypted text Takes ownership of the chunk and does the decryption in place
Sourcepub fn get_manifest(&self) -> &Manifest
pub fn get_manifest(&self) -> &Manifest
Gets the manifest associated with the file being decrypted
Auto Trait Implementations§
impl Freeze for StreamDecryptor
impl RefUnwindSafe for StreamDecryptor
impl Send for StreamDecryptor
impl Sync for StreamDecryptor
impl Unpin for StreamDecryptor
impl UnsafeUnpin for StreamDecryptor
impl UnwindSafe for StreamDecryptor
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