pub struct ContentKeys { /* private fields */ }Expand description
Content keys for decrypting Common Encryption, by 128-bit key ID (KID).
Debug lists key IDs but never keys.
§Examples
use playdash::ContentKeys;
let mut keys = ContentKeys::new();
keys.insert_hex(
"01234567-89ab-cdef-0123-456789abcdef",
"00112233445566778899aabbccddeeff",
)?;
assert_eq!(keys.len(), 1);Implementations§
Source§impl ContentKeys
impl ContentKeys
Sourcepub fn insert(&mut self, kid: [u8; 16], key: [u8; 16]) -> &mut Self
pub fn insert(&mut self, kid: [u8; 16], key: [u8; 16]) -> &mut Self
Adds key for kid, replacing any earlier key for that KID.
Trait Implementations§
Source§impl Clone for ContentKeys
impl Clone for ContentKeys
Source§impl Debug for ContentKeys
impl Debug for ContentKeys
Auto Trait Implementations§
impl Freeze for ContentKeys
impl RefUnwindSafe for ContentKeys
impl Send for ContentKeys
impl Sync for ContentKeys
impl Unpin for ContentKeys
impl UnsafeUnpin for ContentKeys
impl UnwindSafe for ContentKeys
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