[][src]Function sodalite::box_open

pub fn box_open(
    m: &mut [u8],
    c: &[u8],
    n: &BoxNonce,
    pk: &BoxPublicKey,
    sk: &BoxSecretKey
) -> Result<(), ()>

Decrypt and verify the cipher text c using the recievers secret key sk, the senders public key pk, and the nonce n.

Panics

  • If the first 16 bytes of c a not zero.
  • XXX: size of c vs m?