Check.seqiv: def of bend-osdev-aead@0.1.0.0 Import: import bend-osdev-aead@0.1.0.0/check.bend as Check Lines 169-172 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=169&end_line=172 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/seqiv.bend as Sq def seqiv(+k: B.Octets, +seq: B.Octets, +a: B.Octets, +p: B.Octets) -> String: +r = sq.key(k) +c = Result.bind(&2, &2, Cr.CrError, Sq.AdSeqivKey, B.Octets, r, kk => Sq.AdSeqiv.seal(~X.CmAesKey, ~ccm.seal, kk, seq, a, p)) both(c, Result.bind(&2, &2, Cr.CrError, Sq.AdSeqivKey, B.Octets, r, kk => Result.bind(&2, &2, Cr.CrError, B.Octets, B.Octets, c, x => Sq.AdSeqiv.open(~X.CmAesKey, ~ccm.open, ~12n, kk, seq, a, x)))) Uses (12): 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=ccm.open https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/check.bend&name=ccm.seal https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/check.bend&name=sq.key https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/seqiv.bend&name=AdSeqiv.open https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/seqiv.bend&name=AdSeqiv.seal https://jend.leeeet.dev/definition.txt?path=bend-osdev-aead@0.1.0.0/seqiv.bend&name=AdSeqivKey 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