def payload_shape

qasim-bend-kit@0.1.0.2 · proof/AES_NistObservationProof.bend:150

import qasim-bend-kit@0.1.0.2/proof/AES_NistObservationProof.bend as AESNistObservationProof
import Base
import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES
import qasim-bend-kit@0.1.0.2/libs/AES256GCMCore.bend as Core

150def payload_shape(+words: List<&2, U32>, +envelope: AES.Envelope) ->
151    {AES.decrypt_auth_result(words, envelope, True{}) ==
152     Done{Core.gcm_decrypt_expanded(words, AES.raw_nonce_bytes(AES.envelope_nonce(envelope)), AES.ciphertext(envelope))} : Result<&2, &2, AES.Error, List<&2, U32>>}:
153    match envelope:
154        case AES.Envelope{nonce, bytes, tag, valid}: {==}

Uses (11)

Used by (1)