Check.authenc: def of bend-osdev-aead@0.1.0.0 Import: import bend-osdev-aead@0.1.0.0/check.bend as Check Lines 134-137 of bend-osdev-aead@0.1.0.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-aead@0.1.0.0/check.bend&start_line=134&end_line=137 import Base import bend-osdev-bytes@0.1.0.0/bytes.bend as B import bend-osdev-cipher-modes@0.1.0.0/aes.bend as X import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr import bend-osdev-crypto@0.1.0.0/hmac.bend as Hm import bend-osdev-aead@0.1.0.0/authenc.bend as Au def authenc(~seal: Au.AdAuthencKey -> B.Octets -> B.Octets -> B.Octets -> Result<&2, &2, Cr.CrError, B.Octets>, ~open: Au.AdAuthencKey -> B.Octets -> B.Octets -> B.Octets -> Result<&2, &2, Cr.CrError, B.Octets>, +k: B.Octets, +iv: B.Octets, +a: B.Octets, +p: B.Octets) -> String: +r = au.key(k) +c = Result.bind(&2, &2, Cr.CrError, Au.AdAuthencKey, B.Octets, r, kk => seal(kk, iv, a, p)) both(c, Result.bind(&2, &2, Cr.CrError, Au.AdAuthencKey, B.Octets, r, kk => Result.bind(&2, &2, Cr.CrError, B.Octets, B.Octets, c, x => open(kk, iv, a, x)))) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/authenc.bend&name=AdAuthencKey https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/check.bend&name=au.key https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/check.bend&name=both https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-modes@0.1.0.0/aes.bend&name=CmAesKey https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/crypto.bend&name=CrError https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/hmac.bend&name=CrHmacKey