Skip to main content

encrypt_message

Function encrypt_message 

Source
pub fn encrypt_message(
    message: &MessagePayload,
    card: &MailboxCard,
    signer: &AgentSigner,
    nonce: u64,
    now: i64,
) -> Result<Packet>
Expand description

Encrypt immutable plaintext with fresh HPKE randomness, then sign the packet.