Skip to content

aead: implement Encrypt for Option<T> #173

@coderdan

Description

@coderdan

impl<T: Encrypt> Encrypt for Option<T> is currently a commented-out stub in packages/aead/src/encrypt/impls.rs. It is blocked on Cipher::encrypt_none / Cipher::passthrough (see #171).

When unblocked, Some(v) should encrypt the inner value and None should produce a distinguishable, authenticated "no value" output so a decryptor can recover an Option<T> unambiguously.

Tracked from PR #148.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions