~/bend-docscommunity

PROOF.bend source

PROOF.bend on the hub · documented module

# Generated by gen/laws.py; do not edit by hand.import Baseimport bend-osdev-bytes@0.1.0.0/bytes.bend as Bimport ./hashes.bend as Hsimport ./md4.bend as M4import ./md5.bend as M5import ./sha1.bend as S1import ./ripemd160.bend as RMimport ./sm3.bend as SMimport ./streebog.bend as STimport ./michael.bend as MIimport bend-osdev-bytes@0.1.0.0/LAWS.bend as BLimport bend-osdev-bytes@0.1.0.0/PROOF.bend as BPimport ./LAWS.bend as Laws# The engine: feeding xs ++ ys is feeding xs, then ys (induction on xs)def feed_append(~C: Data, ~compress: C -> List<&2, U32> -> C, ~last: U32, xs: List<&2, U32>, +ys: List<&2, U32>, s: Hs.HsMdState<C>) -> {Hs.hs.md.feed(~C, ~compress, ~last, B.append(xs, ys), s) == Hs.hs.md.feed(~C, ~compress, ~last, ys, Hs.hs.md.feed(~C, ~compress, ~last, xs, s)) : Hs.HsMdState<C>}:  match xs:    case Nil{}:      {==}    case Con{x, t}:      feed_append(~C, ~compress, ~last, t, ys, Hs.hs.md.step(~C, ~compress, ~last, s, x))def Laws.md_streaming(C, compress, last, s, a, b):  %Equal.sym(List<&2, U32>, B.Octets.to_list(B.Octets.append(a, b)), B.append(B.Octets.to_list(a), B.Octets.to_list(b)), BL.octets_append_list(a, b)) : {Hs.hs.md.feed(~C, ~compress, ~last, _, s) == Hs.HsMd.update(~C, ~compress, ~last, Hs.HsMd.update(~C, ~compress, ~last, s, a), b) : Hs.HsMdState<C>}  feed_append(~C, ~compress, ~last, B.Octets.to_list(a), B.Octets.to_list(b), s)# Lengths: an Octets made from a list has the list's length; the bytes of# a chaining value are a list of fixed shape whatever its words aredef mask_len(xs: List<&2, U32>) -> {B.len(B.mask(xs)) == B.len(xs) : Nat}:  match xs:    case Nil{}:      {==}    case Con{h, t}:      %mask_len(t) : {B.len(B.mask(Con{h, t})) == 1n+_ : Nat}      {==}def octets_len_of(+xs: List<&2, U32>) -> {B.Octets.len(B.Octets.of_list(xs)) == B.len(xs) : Nat}:  %Equal.sym(Nat, B.Octets.len(B.Octets.of_list(xs)), B.len(B.Octets.to_list(B.Octets.of_list(xs))), BL.octets_len_list(B.Octets.of_list(xs))) : {_ == B.len(xs) : Nat}  %Equal.sym(List<&2, U32>, B.Octets.to_list(B.Octets.of_list(xs)), B.mask(xs), BL.octets_to_of(xs)) : {B.len(_) == B.len(xs) : Nat}  mask_len(xs)def w2le_len_list(a0: U32, a1: U32) -> {B.len(B.append(B.le32(a0), B.le32(a1))) == 8n : Nat}:  match a0 a1:    case U32{wa0} U32{wa1}:      {==}def w2le_len(x: Hs.HsW2) -> {B.Octets.len(Hs.HsW2.le(x)) == 8n : Nat}:  match x:    case Hs.HsW2{+a0, +a1}:      %Equal.sym(Nat, B.Octets.len(B.Octets.of_list(B.append(B.le32(a0), B.le32(a1)))), B.len(B.append(B.le32(a0), B.le32(a1))), octets_len_of(B.append(B.le32(a0), B.le32(a1)))) : {_ == 8n : Nat}      w2le_len_list(a0, a1)def w4le_len_list(a0: U32, a1: U32, a2: U32, a3: U32) -> {B.len(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.le32(a3))))) == 16n : Nat}:  match a0 a1 a2 a3:    case U32{wa0} U32{wa1} U32{wa2} U32{wa3}:      {==}def w4le_len(x: Hs.HsW4) -> {B.Octets.len(Hs.HsW4.le(x)) == 16n : Nat}:  match x:    case Hs.HsW4{+a0, +a1, +a2, +a3}:      %Equal.sym(Nat, B.Octets.len(B.Octets.of_list(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.le32(a3)))))), B.len(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.le32(a3))))), octets_len_of(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.le32(a3)))))) : {_ == 16n : Nat}      w4le_len_list(a0, a1, a2, a3)def w5le_len_list(a0: U32, a1: U32, a2: U32, a3: U32, a4: U32) -> {B.len(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.append(B.le32(a3), B.le32(a4)))))) == 20n : Nat}:  match a0 a1 a2 a3 a4:    case U32{wa0} U32{wa1} U32{wa2} U32{wa3} U32{wa4}:      {==}def w5le_len(x: Hs.HsW5) -> {B.Octets.len(Hs.HsW5.le(x)) == 20n : Nat}:  match x:    case Hs.HsW5{+a0, +a1, +a2, +a3, +a4}:      %Equal.sym(Nat, B.Octets.len(B.Octets.of_list(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.append(B.le32(a3), B.le32(a4))))))), B.len(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.append(B.le32(a3), B.le32(a4)))))), octets_len_of(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.append(B.le32(a3), B.le32(a4))))))) : {_ == 20n : Nat}      w5le_len_list(a0, a1, a2, a3, a4)def w5be_len_list(a0: U32, a1: U32, a2: U32, a3: U32, a4: U32) -> {B.len(B.append(B.be32(a0), B.append(B.be32(a1), B.append(B.be32(a2), B.append(B.be32(a3), B.be32(a4)))))) == 20n : Nat}:  match a0 a1 a2 a3 a4:    case U32{wa0} U32{wa1} U32{wa2} U32{wa3} U32{wa4}:      {==}def w5be_len(x: Hs.HsW5) -> {B.Octets.len(Hs.HsW5.be(x)) == 20n : Nat}:  match x:    case Hs.HsW5{+a0, +a1, +a2, +a3, +a4}:      %Equal.sym(Nat, B.Octets.len(B.Octets.of_list(B.append(B.be32(a0), B.append(B.be32(a1), B.append(B.be32(a2), B.append(B.be32(a3), B.be32(a4))))))), B.len(B.append(B.be32(a0), B.append(B.be32(a1), B.append(B.be32(a2), B.append(B.be32(a3), B.be32(a4)))))), octets_len_of(B.append(B.be32(a0), B.append(B.be32(a1), B.append(B.be32(a2), B.append(B.be32(a3), B.be32(a4))))))) : {_ == 20n : Nat}      w5be_len_list(a0, a1, a2, a3, a4)def w8be_len_list(a0: U32, a1: U32, a2: U32, a3: U32, a4: U32, a5: U32, a6: U32, a7: U32) -> {B.len(B.append(B.be32(a0), B.append(B.be32(a1), B.append(B.be32(a2), B.append(B.be32(a3), B.append(B.be32(a4), B.append(B.be32(a5), B.append(B.be32(a6), B.be32(a7))))))))) == 32n : Nat}:  match a0 a1 a2 a3 a4 a5 a6 a7:    case U32{wa0} U32{wa1} U32{wa2} U32{wa3} U32{wa4} U32{wa5} U32{wa6} U32{wa7}:      {==}def w8be_len(x: Hs.HsW8) -> {B.Octets.len(Hs.HsW8.be(x)) == 32n : Nat}:  match x:    case Hs.HsW8{+a0, +a1, +a2, +a3, +a4, +a5, +a6, +a7}:      %Equal.sym(Nat, B.Octets.len(B.Octets.of_list(B.append(B.be32(a0), B.append(B.be32(a1), B.append(B.be32(a2), B.append(B.be32(a3), B.append(B.be32(a4), B.append(B.be32(a5), B.append(B.be32(a6), B.be32(a7)))))))))), B.len(B.append(B.be32(a0), B.append(B.be32(a1), B.append(B.be32(a2), B.append(B.be32(a3), B.append(B.be32(a4), B.append(B.be32(a5), B.append(B.be32(a6), B.be32(a7))))))))), octets_len_of(B.append(B.be32(a0), B.append(B.be32(a1), B.append(B.be32(a2), B.append(B.be32(a3), B.append(B.be32(a4), B.append(B.be32(a5), B.append(B.be32(a6), B.be32(a7)))))))))) : {_ == 32n : Nat}      w8be_len_list(a0, a1, a2, a3, a4, a5, a6, a7)def stb512_len_list(a0: U32, a1: U32, a2: U32, a3: U32, a4: U32, a5: U32, a6: U32, a7: U32, a8: U32, a9: U32, a10: U32, a11: U32, a12: U32, a13: U32, a14: U32, a15: U32) -> {B.len(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.append(B.le32(a3), B.append(B.le32(a4), B.append(B.le32(a5), B.append(B.le32(a6), B.append(B.le32(a7), B.append(B.le32(a8), B.append(B.le32(a9), B.append(B.le32(a10), B.append(B.le32(a11), B.append(B.le32(a12), B.append(B.le32(a13), B.append(B.le32(a14), B.le32(a15))))))))))))))))) == 64n : Nat}:  match a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 a13 a14 a15:    case U32{wa0} U32{wa1} U32{wa2} U32{wa3} U32{wa4} U32{wa5} U32{wa6} U32{wa7} U32{wa8} U32{wa9} U32{wa10} U32{wa11} U32{wa12} U32{wa13} U32{wa14} U32{wa15}:      {==}def stb512_len(x: Hs.HsW16) -> {B.Octets.len(ST.hs.stb.out512(x)) == 64n : Nat}:  match x:    case Hs.HsW16{+a0, +a1, +a2, +a3, +a4, +a5, +a6, +a7, +a8, +a9, +a10, +a11, +a12, +a13, +a14, +a15}:      %Equal.sym(Nat, B.Octets.len(B.Octets.of_list(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.append(B.le32(a3), B.append(B.le32(a4), B.append(B.le32(a5), B.append(B.le32(a6), B.append(B.le32(a7), B.append(B.le32(a8), B.append(B.le32(a9), B.append(B.le32(a10), B.append(B.le32(a11), B.append(B.le32(a12), B.append(B.le32(a13), B.append(B.le32(a14), B.le32(a15)))))))))))))))))), B.len(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.append(B.le32(a3), B.append(B.le32(a4), B.append(B.le32(a5), B.append(B.le32(a6), B.append(B.le32(a7), B.append(B.le32(a8), B.append(B.le32(a9), B.append(B.le32(a10), B.append(B.le32(a11), B.append(B.le32(a12), B.append(B.le32(a13), B.append(B.le32(a14), B.le32(a15))))))))))))))))), octets_len_of(B.append(B.le32(a0), B.append(B.le32(a1), B.append(B.le32(a2), B.append(B.le32(a3), B.append(B.le32(a4), B.append(B.le32(a5), B.append(B.le32(a6), B.append(B.le32(a7), B.append(B.le32(a8), B.append(B.le32(a9), B.append(B.le32(a10), B.append(B.le32(a11), B.append(B.le32(a12), B.append(B.le32(a13), B.append(B.le32(a14), B.le32(a15)))))))))))))))))) : {_ == 64n : Nat}      stb512_len_list(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15)def stb256_len_list(a8: U32, a9: U32, a10: U32, a11: U32, a12: U32, a13: U32, a14: U32, a15: U32) -> {B.len(B.append(B.le32(a8), B.append(B.le32(a9), B.append(B.le32(a10), B.append(B.le32(a11), B.append(B.le32(a12), B.append(B.le32(a13), B.append(B.le32(a14), B.le32(a15))))))))) == 32n : Nat}:  match a8 a9 a10 a11 a12 a13 a14 a15:    case U32{wa8} U32{wa9} U32{wa10} U32{wa11} U32{wa12} U32{wa13} U32{wa14} U32{wa15}:      {==}def stb256_len(x: Hs.HsW16) -> {B.Octets.len(ST.hs.stb.out256(x)) == 32n : Nat}:  match x:    case Hs.HsW16{a0, a1, a2, a3, a4, a5, a6, a7, +a8, +a9, +a10, +a11, +a12, +a13, +a14, +a15}:      %Equal.sym(Nat, B.Octets.len(B.Octets.of_list(B.append(B.le32(a8), B.append(B.le32(a9), B.append(B.le32(a10), B.append(B.le32(a11), B.append(B.le32(a12), B.append(B.le32(a13), B.append(B.le32(a14), B.le32(a15)))))))))), B.len(B.append(B.le32(a8), B.append(B.le32(a9), B.append(B.le32(a10), B.append(B.le32(a11), B.append(B.le32(a12), B.append(B.le32(a13), B.append(B.le32(a14), B.le32(a15))))))))), octets_len_of(B.append(B.le32(a8), B.append(B.le32(a9), B.append(B.le32(a10), B.append(B.le32(a11), B.append(B.le32(a12), B.append(B.le32(a13), B.append(B.le32(a14), B.le32(a15)))))))))) : {_ == 32n : Nat}      stb256_len_list(a8, a9, a10, a11, a12, a13, a14, a15)def Laws.md4_streaming(s, a, b):  Laws.md_streaming(~Hs.HsW4, ~M4.HsMd4.compress, ~63, s, a, b)def Laws.md4_split(a, b):  %Laws.md4_streaming(M4.HsMd4.init(), a, b) : {M4.HsMd4.final(_) == M4.HsMd4.digest(B.Octets.append(a, b)) : B.Octets}  {==}def Laws.md4_split3(a, b, c):  %Laws.md4_streaming(M4.HsMd4.update(M4.HsMd4.init(), a), b, c) : {M4.HsMd4.final(_) == M4.HsMd4.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  %Laws.md4_streaming(M4.HsMd4.init(), a, B.Octets.append(b, c)) : {M4.HsMd4.final(_) == M4.HsMd4.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  {==}def Laws.md4_length(s):  w4le_len(Hs.HsMd.cv(~Hs.HsW4, Hs.hs.md.feed(~Hs.HsW4, ~M4.HsMd4.compress, ~63, Hs.HsMd.md_pad(~63, Hs.HsMd.count(~Hs.HsW4, s), Hs.hs.len.le(Hs.HsMd.bits(~Hs.HsW4, ~63, s))), s)))def Laws.md4_digest_length(m):  Laws.md4_length(M4.HsMd4.update(M4.HsMd4.init(), m))def Laws.md4_rfc1320_1():  {==}def Laws.md4_rfc1320_2():  {==}def Laws.md4_rfc1320_3():  {==}def Laws.md4_rfc1320_4():  {==}def Laws.md4_rfc1320_5():  {==}def Laws.md4_rfc1320_6():  {==}def Laws.md4_rfc1320_7():  {==}def Laws.md5_streaming(s, a, b):  Laws.md_streaming(~Hs.HsW4, ~M5.HsMd5.compress, ~63, s, a, b)def Laws.md5_split(a, b):  %Laws.md5_streaming(M5.HsMd5.init(), a, b) : {M5.HsMd5.final(_) == M5.HsMd5.digest(B.Octets.append(a, b)) : B.Octets}  {==}def Laws.md5_split3(a, b, c):  %Laws.md5_streaming(M5.HsMd5.update(M5.HsMd5.init(), a), b, c) : {M5.HsMd5.final(_) == M5.HsMd5.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  %Laws.md5_streaming(M5.HsMd5.init(), a, B.Octets.append(b, c)) : {M5.HsMd5.final(_) == M5.HsMd5.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  {==}def Laws.md5_length(s):  w4le_len(Hs.HsMd.cv(~Hs.HsW4, Hs.hs.md.feed(~Hs.HsW4, ~M5.HsMd5.compress, ~63, Hs.HsMd.md_pad(~63, Hs.HsMd.count(~Hs.HsW4, s), Hs.hs.len.le(Hs.HsMd.bits(~Hs.HsW4, ~63, s))), s)))def Laws.md5_digest_length(m):  Laws.md5_length(M5.HsMd5.update(M5.HsMd5.init(), m))def Laws.md5_rfc1321_1():  {==}def Laws.md5_rfc1321_2():  {==}def Laws.md5_rfc1321_3():  {==}def Laws.md5_rfc1321_4():  {==}def Laws.md5_rfc1321_5():  {==}def Laws.md5_rfc1321_6():  {==}def Laws.md5_rfc1321_7():  {==}def Laws.sha1_streaming(s, a, b):  Laws.md_streaming(~Hs.HsW5, ~S1.HsSha1.compress, ~63, s, a, b)def Laws.sha1_split(a, b):  %Laws.sha1_streaming(S1.HsSha1.init(), a, b) : {S1.HsSha1.final(_) == S1.HsSha1.digest(B.Octets.append(a, b)) : B.Octets}  {==}def Laws.sha1_split3(a, b, c):  %Laws.sha1_streaming(S1.HsSha1.update(S1.HsSha1.init(), a), b, c) : {S1.HsSha1.final(_) == S1.HsSha1.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  %Laws.sha1_streaming(S1.HsSha1.init(), a, B.Octets.append(b, c)) : {S1.HsSha1.final(_) == S1.HsSha1.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  {==}def Laws.sha1_length(s):  w5be_len(Hs.HsMd.cv(~Hs.HsW5, Hs.hs.md.feed(~Hs.HsW5, ~S1.HsSha1.compress, ~63, Hs.HsMd.md_pad(~63, Hs.HsMd.count(~Hs.HsW5, s), Hs.hs.len.be(Hs.HsMd.bits(~Hs.HsW5, ~63, s))), s)))def Laws.sha1_digest_length(m):  Laws.sha1_length(S1.HsSha1.update(S1.HsSha1.init(), m))def Laws.sha1_fips_1():  {==}def Laws.sha1_fips_2():  {==}def Laws.ripemd160_streaming(s, a, b):  Laws.md_streaming(~Hs.HsW5, ~RM.HsRipemd160.compress, ~63, s, a, b)def Laws.ripemd160_split(a, b):  %Laws.ripemd160_streaming(RM.HsRipemd160.init(), a, b) : {RM.HsRipemd160.final(_) == RM.HsRipemd160.digest(B.Octets.append(a, b)) : B.Octets}  {==}def Laws.ripemd160_split3(a, b, c):  %Laws.ripemd160_streaming(RM.HsRipemd160.update(RM.HsRipemd160.init(), a), b, c) : {RM.HsRipemd160.final(_) == RM.HsRipemd160.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  %Laws.ripemd160_streaming(RM.HsRipemd160.init(), a, B.Octets.append(b, c)) : {RM.HsRipemd160.final(_) == RM.HsRipemd160.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  {==}def Laws.ripemd160_length(s):  w5le_len(Hs.HsMd.cv(~Hs.HsW5, Hs.hs.md.feed(~Hs.HsW5, ~RM.HsRipemd160.compress, ~63, Hs.HsMd.md_pad(~63, Hs.HsMd.count(~Hs.HsW5, s), Hs.hs.len.le(Hs.HsMd.bits(~Hs.HsW5, ~63, s))), s)))def Laws.ripemd160_digest_length(m):  Laws.ripemd160_length(RM.HsRipemd160.update(RM.HsRipemd160.init(), m))def Laws.ripemd160_paper_1():  {==}def Laws.ripemd160_paper_2():  {==}def Laws.ripemd160_paper_3():  {==}def Laws.ripemd160_paper_4():  {==}def Laws.ripemd160_paper_5():  {==}def Laws.ripemd160_paper_6():  {==}def Laws.ripemd160_paper_7():  {==}def Laws.ripemd160_paper_8():  {==}def Laws.sm3_streaming(s, a, b):  Laws.md_streaming(~Hs.HsW8, ~SM.HsSm3.compress, ~63, s, a, b)def Laws.sm3_split(a, b):  %Laws.sm3_streaming(SM.HsSm3.init(), a, b) : {SM.HsSm3.final(_) == SM.HsSm3.digest(B.Octets.append(a, b)) : B.Octets}  {==}def Laws.sm3_split3(a, b, c):  %Laws.sm3_streaming(SM.HsSm3.update(SM.HsSm3.init(), a), b, c) : {SM.HsSm3.final(_) == SM.HsSm3.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  %Laws.sm3_streaming(SM.HsSm3.init(), a, B.Octets.append(b, c)) : {SM.HsSm3.final(_) == SM.HsSm3.digest(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  {==}def Laws.sm3_length(s):  w8be_len(Hs.HsMd.cv(~Hs.HsW8, Hs.hs.md.feed(~Hs.HsW8, ~SM.HsSm3.compress, ~63, Hs.HsMd.md_pad(~63, Hs.HsMd.count(~Hs.HsW8, s), Hs.hs.len.be(Hs.HsMd.bits(~Hs.HsW8, ~63, s))), s)))def Laws.sm3_digest_length(m):  Laws.sm3_length(SM.HsSm3.update(SM.HsSm3.init(), m))def Laws.sm3_example_1():  {==}def Laws.sm3_example_2():  {==}def Laws.streebog512_streaming(s, a, b):  Laws.md_streaming(~ST.HsStbCv, ~ST.HsStreebog.compress, ~63, s, a, b)def Laws.streebog512_split(a, b):  %Laws.streebog512_streaming(ST.HsStreebog.init512(), a, b) : {ST.HsStreebog.final512(_) == ST.HsStreebog.digest512(B.Octets.append(a, b)) : B.Octets}  {==}def Laws.streebog512_split3(a, b, c):  %Laws.streebog512_streaming(ST.HsStreebog.update(ST.HsStreebog.init512(), a), b, c) : {ST.HsStreebog.final512(_) == ST.HsStreebog.digest512(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  %Laws.streebog512_streaming(ST.HsStreebog.init512(), a, B.Octets.append(b, c)) : {ST.HsStreebog.final512(_) == ST.HsStreebog.digest512(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  {==}def Laws.streebog512_length(s):  stb512_len(ST.hs.stb.finish(s))def Laws.streebog512_digest_length(m):  Laws.streebog512_length(ST.HsStreebog.update(ST.HsStreebog.init512(), m))def Laws.streebog256_streaming(s, a, b):  Laws.md_streaming(~ST.HsStbCv, ~ST.HsStreebog.compress, ~63, s, a, b)def Laws.streebog256_split(a, b):  %Laws.streebog256_streaming(ST.HsStreebog.init256(), a, b) : {ST.HsStreebog.final256(_) == ST.HsStreebog.digest256(B.Octets.append(a, b)) : B.Octets}  {==}def Laws.streebog256_split3(a, b, c):  %Laws.streebog256_streaming(ST.HsStreebog.update(ST.HsStreebog.init256(), a), b, c) : {ST.HsStreebog.final256(_) == ST.HsStreebog.digest256(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  %Laws.streebog256_streaming(ST.HsStreebog.init256(), a, B.Octets.append(b, c)) : {ST.HsStreebog.final256(_) == ST.HsStreebog.digest256(B.Octets.append(a, B.Octets.append(b, c))) : B.Octets}  {==}def Laws.streebog256_length(s):  stb256_len(ST.hs.stb.finish(s))def Laws.streebog256_digest_length(m):  Laws.streebog256_length(ST.HsStreebog.update(ST.HsStreebog.init256(), m))def Laws.streebog_lps_zero():  {==}def Laws.streebog_g_example1():  {==}def Laws.streebog_g0_example1():  {==}def Laws.michael_streaming(s, a, b):  Laws.md_streaming(~Hs.HsW2, ~MI.HsMichael.compress, ~3, s, a, b)def Laws.michael_split(k, a, b):  %Laws.michael_streaming(MI.HsMichael.init(k), a, b) : {MI.HsMichael.final(_) == MI.HsMichael.mic(k, B.Octets.append(a, b)) : B.Octets}  {==}def Laws.michael_length(s):  w2le_len(Hs.HsMd.cv(~Hs.HsW2, Hs.HsMd.update_list(~Hs.HsW2, ~MI.HsMichael.compress, ~3, s, MI.hs.michael.pad(Hs.HsMd.count(~Hs.HsW2, s)))))def Laws.michael_mic_length(k, m):  Laws.michael_length(MI.HsMichael.update(MI.HsMichael.init(k), m))def Laws.michael_short_key():  {==}def Laws.michael_vector_1():  {==}def Laws.michael_vector_2():  {==}def Laws.michael_vector_3():  {==}def Laws.michael_vector_4():  {==}def Laws.michael_vector_5():  {==}def Laws.michael_vector_6():  {==}def Laws.michael_tkip_m63():  {==}