pub enum DecryptKeys {
None,
Aacs {
unit_keys: Vec<(u32, [u8; 16])>,
read_data_key: Option<[u8; 16]>,
},
Css {
title_key: [u8; 5],
},
}Expand description
Resolved decryption state from disc scanning.
Passed to decrypt_sectors() — the caller doesn’t need to know
which encryption scheme is in use.
Variants§
None
No encryption on this disc.
Aacs
AACS (Blu-ray / UHD). Unit keys + optional read data key.
Css
CSS (DVD). Title key for sector descrambling.
Implementations§
Source§impl DecryptKeys
impl DecryptKeys
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
True if there are keys to decrypt with.
Trait Implementations§
Source§impl Clone for DecryptKeys
impl Clone for DecryptKeys
Source§fn clone(&self) -> DecryptKeys
fn clone(&self) -> DecryptKeys
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DecryptKeys
impl RefUnwindSafe for DecryptKeys
impl Send for DecryptKeys
impl Sync for DecryptKeys
impl Unpin for DecryptKeys
impl UnsafeUnpin for DecryptKeys
impl UnwindSafe for DecryptKeys
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