def open_sealed

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

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

146# decrypt after encrypt is open after seal (on valid lengths).
147def open_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>>:
148  match m:
149    case None{}: None{}
150    case Some{c}: A.open(alg, key, nonce, aad, c)

Uses (5)

Used by (5)