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.
impl<T: Encrypt> Encrypt for Option<T>is currently a commented-out stub inpackages/aead/src/encrypt/impls.rs. It is blocked onCipher::encrypt_none/Cipher::passthrough(see #171).When unblocked,
Some(v)should encrypt the inner value andNoneshould produce a distinguishable, authenticated "no value" output so a decryptor can recover anOption<T>unambiguously.Tracked from PR #148.