Function hotboot::hide [] [src]

pub fn hide(
    data: Vec<u8>,
    secret: Vec<u8>,
    iters: usize
) -> Result<HiddenData, Error>

Hides data so that it cannot be recovered by a cold boot attack without the secret secret.

Please note both data and secret will be erased at the end of this function, so that it is hard to forget cleaning them up.

iters is the number of iterations to run, the number of bits that will be required uncorrupted to recover the data with the secret is then approximately 384 * iters