Skip to content

define message and ciphertext structures for de/serialization #98

@cfm

Description

@cfm

This is a stub ticket for the record, prompted by recent conversations with @felixlinker and:

- Still for discussion: Message (plaintext) structure. Includes at minimum the pubkeys needed for replies, but could also include NR key/identifier (avoid cross-instance replays), additional application-level metadata.

// Plaintext metadata
pub struct Metadata {
pub sender_pubkey_bytes: [u8; LEN_DHKEM_ENCAPS_KEY],
pub pq_psk_ss_encaps: [u8; LEN_MLKEM_SHAREDSECRET_ENCAPS],
pub dhakem_ss_encaps: [u8; LEN_DHKEM_SHAREDSECRET_ENCAPS],
}
// TODO: NOT FOR PROD, parsing untrusted ct
impl Metadata {

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions