Check.essiv: def of bend-osdev-aead@0.1.0.0 Import: import bend-osdev-aead@0.1.0.0/check.bend as Check Lines 153-156 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=153&end_line=156 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-aead@0.1.0.0/essiv.bend as Es def essiv(+k: B.Octets, +iv: B.Octets, +p: B.Octets) -> String: +r = es.key(k) +c = Result.bind(&2, &2, Cr.CrError, Es.AdEssivKey, B.Octets, r, kk => es.enc(kk, iv, p)) both(c, Result.bind(&2, &2, Cr.CrError, Es.AdEssivKey, B.Octets, r, kk => Result.bind(&2, &2, Cr.CrError, B.Octets, B.Octets, c, x => es.dec(kk, iv, x)))) Uses (10): 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/check.bend&name=both https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/check.bend&name=es.dec https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/check.bend&name=es.enc https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/check.bend&name=es.key https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/essiv.bend&name=AdEssivKey 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