Skip to main content

Node

Type Alias Node 

Source
pub type Node<L> = CipherText<L, PassthroughFrame>;
Expand description

A ciphertext tree whose passthrough subtrees are frames.

Aliased Type§

pub enum Node<L> {
    Single(L),
    Sequence(Vec<CipherText<L, PassthroughFrame>>),
    EmptySequence(L),
    Map(Vec<(String, CipherText<L, PassthroughFrame>)>),
    EmptyMap(L),
    Passthrough(PassthroughFrame),
}

Variants§

§

Single(L)

A single sealed value.

§

Sequence(Vec<CipherText<L, PassthroughFrame>>)

A sequence of ciphertexts produced from a sequence-shaped plaintext.

§

EmptySequence(L)

An empty sequence, authenticated under domain-separated AAD (Context::for_empty_sequence) by a marker leaf.

§

Map(Vec<(String, CipherText<L, PassthroughFrame>)>)

A map of (cleartext key, ciphertext value) pairs produced from a map-shaped plaintext. Keys are stored in the clear but are bound into each value’s AAD via Context::for_map_entry, so they cannot be swapped or renamed undetected (passthrough entries excepted).

§

EmptyMap(L)

An empty map, authenticated under domain-separated AAD (Context::for_empty_map) by a marker leaf.

§

Passthrough(PassthroughFrame)

A subtree passed through the container unencrypted and unauthenticated. Non-sensitive data only — see Sink::passthrough.