def main

bend-osdev-mode-core@0.1.0.0 · check.bend:49

import bend-osdev-mode-core@0.1.0.0/check.bend as Check
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import bend-osdev-mode-core@0.1.0.0/mode_core.bend as M

49def main() -> IO(Unit):
50  +b : M.CmBlock = M.CmBlock{1122867, 1146447479, 2291772091, 3437096703}
51  do IO<Unit>:
52    IO.print("zero " ++ M.CmBlock.hex(M.CmBlock.zero()))
53    IO.print("block " ++ M.CmBlock.hex(b))
54    IO.print("xor " ++ M.CmBlock.hex(M.CmBlock.xor(b, key())))
55    IO.print("to_octets " ++ B.Octets.hex(M.CmBlock.to_octets(b)))
56    IO.print("of_octets " ++ maybe(M.CmBlock.of_octets(M.CmBlock.to_octets(b))))
57    IO.print("of_octets_15 " ++ maybe(M.CmBlock.of_octets(B.Octets.of_list([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]))))
58    IO.print("dec_enc " ++ hexs(M.CmBlock.dec_enc(~M.CmBlock, ~toy.enc, ~toy.dec, key(), [b, key(), M.CmBlock.zero()])))

Uses (20)

Used by (0)

No other definition uses this definition.