check.bend checks
raw source on the hub · import bend-osdev-gf@0.1.1.0/check.bend as Check
6 imports
import Base import bend-osdev-bytes@0.1.1.0/bytes.bend as B import ./gf.bend as G import ./tables.bend as T import ./gf128.bend as H import ./gfm.bend as M
Definitions
def show source · line 8 · raw
@x:U32 -> String
def tab.count source · line 14 · raw
@ok:Bool -> @bad:Nat -> Nat
The table path against the reference over every pair of bytes (and every inverse): the number of disagreements. r is the table and its answer for (a, b).
def tab.row source · line 21 · raw
@n:Nat -> @+f:0x783d0fad62351acb750d929ab748bb90/gf.Gf8Field -> @r:Pair(0x783d0fad62351acb750d929ab748bb90/tables.Gf8Tab, U32) -> @+a:U32 -> @+b:U32 -> @bad:Nat -> Pair(0x783d0fad62351acb750d929ab748bb90/tables.Gf8Tab, Nat)
def tab.all source · line 31 · raw
@n:Nat -> @+f:0x783d0fad62351acb750d929ab748bb90/gf.Gf8Field -> @r:Pair(0x783d0fad62351acb750d929ab748bb90/tables.Gf8Tab, Nat) -> @+a:U32 -> Pair(0x783d0fad62351acb750d929ab748bb90/tables.Gf8Tab, Nat)
def tab.inv source · line 39 · raw
@n:Nat -> @+f:0x783d0fad62351acb750d929ab748bb90/gf.Gf8Field -> @r:Pair(0x783d0fad62351acb750d929ab748bb90/tables.Gf8Tab, U32) -> @+a:U32 -> @bad:Nat -> Nat
def tab.snd source · line 48 · raw
@r:Pair(0x783d0fad62351acb750d929ab748bb90/tables.Gf8Tab, Nat) -> Nat
def tab.check source · line 52 · raw
@+f:0x783d0fad62351acb750d929ab748bb90/gf.Gf8Field -> Nat
def gcm_h source · line 55 · raw
0x783d0fad62351acb750d929ab748bb90/gf128.Gf128
def gcm_c source · line 58 · raw
0x783d0fad62351acb750d929ab748bb90/gf128.Gf128
def main source · line 61 · raw
IO(Unit)