pub enum AesKeySize {
Aes128,
Aes256,
}Expand description
AES key sizes supported by PDF
Variants§
Implementations§
Source§impl AesKeySize
impl AesKeySize
Sourcepub fn key_length(&self) -> usize
pub fn key_length(&self) -> usize
Get key size in bytes
Sourcepub fn block_size(&self) -> usize
pub fn block_size(&self) -> usize
Get block size (always 16 bytes for AES)
Trait Implementations§
Source§impl Clone for AesKeySize
impl Clone for AesKeySize
Source§fn clone(&self) -> AesKeySize
fn clone(&self) -> AesKeySize
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 AesKeySize
Source§impl Debug for AesKeySize
impl Debug for AesKeySize
Source§impl PartialEq for AesKeySize
impl PartialEq for AesKeySize
impl StructuralPartialEq for AesKeySize
Auto Trait Implementations§
impl Freeze for AesKeySize
impl RefUnwindSafe for AesKeySize
impl Send for AesKeySize
impl Sync for AesKeySize
impl Unpin for AesKeySize
impl UnsafeUnpin for AesKeySize
impl UnwindSafe for AesKeySize
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