#[non_exhaustive]pub struct Decrypted {
pub data: Vec<u8>,
pub well_formed: bool,
}Expand description
Decrypted data and whether the input was well-formed for its cipher.
Added in 0.2.0.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data: Vec<u8>The plaintext (or, for malformed AES input, the bytes as they were; see well_formed).
well_formed: boolFalse for AES data that was not IV ‖ whole blocks (kept as is) or had invalid PKCS#5
padding (decrypted, kept unstripped). The reader reports it as aes-padding-invalid.
Trait Implementations§
impl Eq for Decrypted
impl StructuralPartialEq for Decrypted
Auto Trait Implementations§
impl Forget for Decrypted
impl Freeze for Decrypted
impl Move for Decrypted
impl RefUnwindSafe for Decrypted
impl Send for Decryptedwhere
RawVecInner: Send,
impl Sync for Decryptedwhere
RawVecInner: Sync,
impl Unpin for Decrypted
impl UnsafeUnpin for Decrypted
impl UnwindSafe for Decryptedwhere
RawVecInner: UnwindSafe,
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