Skip to main content

decrypt

Function decrypt 

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

Decrypt one sector in place (the method-0x8000 diffuser order): Diffuser B, then Diffuser A, then XOR the 32-byte sector key. The exact inverse of encrypt. Operates on a sector of any length and never panics.