Function dryoc::classic::crypto_box::crypto_box_seal_open
source · pub fn crypto_box_seal_open(
message: &mut [u8],
ciphertext: &[u8],
recipient_public_key: &PublicKey,
recipient_secret_key: &SecretKey
) -> Result<(), Error>
Expand description
Decrypts a sealed box from ciphertext
with recipient’s secret key
recipient_secret_key
, placing the result into message
. The nonce and
public are derived from ciphertext
. message
length should be equal to
the length of ciphertext
minus CRYPTO_BOX_SEALBYTES
bytes for the
message tag and ephemeral public key.
Compatible with libsodium’s crypto_box_seal_open
.