Skip to main content

encrypt_cose

Function encrypt_cose 

Source
pub(crate) fn encrypt_cose(
    cose_encrypt0_builder: CoseEncrypt0Builder,
    plaintext: &[u8],
    key: &XChaCha20Poly1305Key,
) -> CoseEncrypt0
Expand description

Encrypt a plaintext message with a given key