Kex.cr.kex.with: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/kex.bend as Kex Lines 31-38 of bend-osdev-crypto@0.1.0.0/kex.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/kex.bend&start_line=31&end_line=38 import Base import bend-osdev-bytes@0.1.0.0/bytes.bend as B import bend-osdev-crypto@0.1.0.0/crypto.bend as Cr def cr.kex.with(~SK: Data, ~PK: Data, ~shared: SK -> PK -> Result<&2, &2, Cr.CrError, B.Octets>, sk: Result<&2, &2, Cr.CrError, SK>, pk: Result<&2, &2, Cr.CrError, PK>) -> Result<&2, &2, Cr.CrError, B.Octets>: match sk pk: case Fail{e} _: Fail{e} case Done{a} Fail{e}: Fail{e} case Done{a} Done{p}: shared(a, p) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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-crypto@0.1.0.0/crypto.bend&name=CrError