pub enum CryptClass {
Stream,
String,
Embedded,
}Expand description
Which crypt filter class a payload belongs to.
Stream and String resolve to one cipher because PDFium refuses a
document whose /StmF and /StrF differ (Divergence D1). Embedded is
the one class that can genuinely name another cipher — see
crate::SecurityHandler::embedded_cipher and the [oracle-bug] note on
standard::embedded_cipher, which records that the oracle reads /EFF
nowhere. Only the cipher differs: ISO 32000-1 §7.6.5 gives every /CF
entry the same file encryption key.
Variants§
Stream
A stream’s data, governed by /StmF.
String
A string object, governed by /StrF.
Embedded
An embedded file stream, nominally governed by /EFF.
Trait Implementations§
Source§impl Clone for CryptClass
impl Clone for CryptClass
Source§fn clone(&self) -> CryptClass
fn clone(&self) -> CryptClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CryptClass
Source§impl Debug for CryptClass
impl Debug for CryptClass
impl Eq for CryptClass
Source§impl Hash for CryptClass
impl Hash for CryptClass
Source§impl PartialEq for CryptClass
impl PartialEq for CryptClass
impl StructuralPartialEq for CryptClass
Auto Trait Implementations§
impl Freeze for CryptClass
impl RefUnwindSafe for CryptClass
impl Send for CryptClass
impl Sync for CryptClass
impl Unpin for CryptClass
impl UnsafeUnpin for CryptClass
impl UnwindSafe for CryptClass
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