AESEnvelopeProof.aes_parse_decoded_checked_map: def of qasim-bend-kit@0.1.0.2 Import: import qasim-bend-kit@0.1.0.2/proof/AES_EnvelopeProof.bend as AESEnvelopeProof Lines 873-902 of qasim-bend-kit@0.1.0.2/proof/AES_EnvelopeProof.bend: https://jend.leeeet.dev/read.txt?path=qasim-bend-kit@0.1.0.2/proof/AES_EnvelopeProof.bend&start_line=873&end_line=902 import Base import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES def aes_parse_decoded_checked_map(+nonce: List<&2, U32>, +tag: List<&2, U32>, +ciphertext: List<&2, U32>, nonce_size: {List.length(&2, U32, nonce) == 12n : Nat}, tag_size: {List.length(&2, U32, tag) == 16n : Nat}) -> {Result.map(&2, &2, AES.Error, AES.Envelope, String, AES.encode, AES.parse_decoded(aes_hex_mask_bytes(nonce), aes_hex_mask_bytes(tag), aes_hex_mask_bytes(ciphertext), AES.aes_nat_eq_proof( List.length(&2, U32, aes_hex_mask_bytes(nonce)), 12n), AES.aes_nat_eq_proof( List.length(&2, U32, aes_hex_mask_bytes(tag)), 16n), AES.aes_bytes_valid_proof(aes_hex_mask_bytes(nonce)), AES.aes_bytes_valid_proof(aes_hex_mask_bytes(tag)), AES.aes_bytes_valid_proof(aes_hex_mask_bytes(ciphertext)))) == Done{"v1." ++ AES.hex_bytes(nonce) ++ "." ++ AES.hex_bytes(tag) ++ "." ++ AES.hex_bytes(ciphertext)} : Result<&2, &2, AES.Error, String>}: aes_parse_decoded_if_some(nonce, tag, ciphertext, AES.aes_nat_eq_proof( List.length(&2, U32, aes_hex_mask_bytes(nonce)), 12n), AES.aes_nat_eq_proof( List.length(&2, U32, aes_hex_mask_bytes(tag)), 16n), AES.aes_bytes_valid_proof(aes_hex_mask_bytes(nonce)), AES.aes_bytes_valid_proof(aes_hex_mask_bytes(tag)), AES.aes_bytes_valid_proof(aes_hex_mask_bytes(ciphertext)), aes_masked_size_is_some(nonce, 12n, nonce_size), aes_masked_size_is_some(tag, 16n, tag_size), aes_masked_bytes_cert_is_some(nonce), aes_masked_bytes_cert_is_some(tag), aes_masked_bytes_cert_is_some(ciphertext)) Uses (19): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result.map https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend&name=Envelope https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend&name=Error https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend&name=aes_bytes_valid_proof https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend&name=aes_nat_eq_proof https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend&name=encode https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend&name=hex_bytes https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend&name=parse_decoded https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/proof/AES_EnvelopeProof.bend&name=aes_hex_mask_bytes https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/proof/AES_EnvelopeProof.bend&name=aes_masked_bytes_cert_is_some https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/proof/AES_EnvelopeProof.bend&name=aes_masked_size_is_some https://jend.leeeet.dev/definition.txt?path=qasim-bend-kit@0.1.0.2/proof/AES_EnvelopeProof.bend&name=aes_parse_decoded_if_some