pub enum ChromeCookieEncoding {
Raw,
DpapiBlob(Vec<u8>),
V10 {
nonce: [u8; 12],
ciphertext: Vec<u8>,
},
V20 {
nonce: [u8; 12],
ciphertext: Vec<u8>,
},
}Expand description
How a Chrome/Chromium cookie value is encoded in heap memory.
Variants§
Raw
Plaintext — no encryption prefix detected.
DpapiBlob(Vec<u8>)
Classic DPAPI blob (prefix DPAPI, 5 bytes). Windows 7 / no App-Bound.
V10
AES-256-GCM v10: v10 + 12-byte nonce + ciphertext + 16-byte tag.
V20
AES-256-GCM v20 (Chrome 127+): same wire format as v10.
Trait Implementations§
Source§impl Debug for ChromeCookieEncoding
impl Debug for ChromeCookieEncoding
Source§impl PartialEq for ChromeCookieEncoding
impl PartialEq for ChromeCookieEncoding
Source§fn eq(&self, other: &ChromeCookieEncoding) -> bool
fn eq(&self, other: &ChromeCookieEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChromeCookieEncoding
Auto Trait Implementations§
impl Freeze for ChromeCookieEncoding
impl RefUnwindSafe for ChromeCookieEncoding
impl Send for ChromeCookieEncoding
impl Sync for ChromeCookieEncoding
impl Unpin for ChromeCookieEncoding
impl UnsafeUnpin for ChromeCookieEncoding
impl UnwindSafe for ChromeCookieEncoding
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