def result_ciphertext_length
import qasim-bend-kit@0.1.0.2/proof/AES_EncryptProof.bend as AESEncryptProofimport Base
import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES
190def result_ciphertext_length(
191 result: Result<&2, &2, AES.Error, AES.Envelope>) -> Nat:
192 match result:
193 case Fail{error}: 0n
194 case Done{envelope}:
195 List.length(&2, U32, AES.ciphertext(envelope))