Function geph4_protocol::binder::protocol::box_decrypt
source · pub fn box_decrypt(
ctext: &[u8],
my_sk: StaticSecret
) -> Result<(Bytes, PublicKey), BoxDecryptError>
Expand description
Decrypts a message, “box-style”, given our diffie-hellman secret key. Returns both the other side’s public key and the plaintext.