def decrypt_sealed

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/aead/laws.bend:21

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aead/laws.bend as Laws
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aead.bend as A

21# decrypt applied to what encrypt returned (None stays None).
22def decrypt_sealed(+alg: A.Alg, +key: List<&2, U32>, +nonce: List<&2, U32>, +aad: List<&2, U32>, m: Maybe<&2, List<&2, U32>>) -> Maybe<&2, List<&2, U32>>:
23  match m:
24    case None{}: None{}
25    case Some{c}: A.decrypt(alg, key, nonce, aad, c)

Uses (5)

Used by (2)