Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(
    ua_secret: &SecretKey,
    auth: &[u8],
    body: &[u8],
) -> Result<Vec<u8>>
Expand description

Open a body with the subscription’s private key: what a browser or the UnifiedPush connector does on receipt. Here for tests and for native receivers.