Skip to main content

unwrap_dek

Function unwrap_dek 

Source
pub fn unwrap_dek(
    recipient_secret: &[u8; 32],
    wrapped: &[u8],
) -> Result<DataKey, String>
Expand description

Unwrap a DEK with the recipient’s secret key. Fails for the wrong recipient or a tampered blob.