Skip to main content

decrypt_key_bytes

Function decrypt_key_bytes 

Source
pub fn decrypt_key_bytes(
    vector: &[u8],
    data: &[u8],
    key: &[u8],
    meter: &Arc<Meter>,
) -> Result<MeteredVec<u8>, Error>
Expand description

Encrypt each AES-ECB vector block and XOR its prefix with the supplied data. The caller validates the AES key length; no key or decrypted table is retained.