Function openssl::aes::unwrap_key[][src]

pub fn unwrap_key(
    key: &AesKey,
    iv: Option<[u8; 8]>,
    out: &mut [u8],
    in_: &[u8]
) -> Result<usize, KeyError>

Unwrap a key, according to RFC 3394

Returns the number of bytes written into out

Panics

Panics if either out or in_ do not have sizes that are a multiple of 8, or if in is not 8 bytes longer than in_