Skip to main content

encrypt

Function encrypt 

Source
pub fn encrypt(sector: &mut [u8], sector_key: &[u8; 32])
Expand description

Encrypt one sector in place — the exact inverse of decrypt: XOR the 32-byte sector key, then Diffuser A, then Diffuser B. Operates on a sector of any length and never panics.