unwrap_key

Function unwrap_key 

Source
pub fn unwrap_key(kek: &[u8], wrapped: &[u8], aad: &[u8]) -> Result<Vec<u8>>
Expand description

Unwrap the DEK using the KEK (Key Encryption Key) and AES-256-GCM. Expects the 12-byte nonce prepended to the ciphertext.