src/crypto/blake/blake2b/types.bend
bend-collections-laws-crypto@1.0.0.0 · 22 lines · 5 definitions
1
2import Base
3
4
5type Lane is Data:
6 W{lo: U32, hi: U32}
7
8
9type State is Data:
10 V{v0: Lane, v1: Lane, v2: Lane, v3: Lane, v4: Lane, v5: Lane, v6: Lane, v7: Lane, v8: Lane, v9: Lane, v10: Lane, v11: Lane, v12: Lane, v13: Lane, v14: Lane, v15: Lane}
11
12
13type Chain is Data:
14 H{h0: Lane, h1: Lane, h2: Lane, h3: Lane, h4: Lane, h5: Lane, h6: Lane, h7: Lane}
15
16
17type Quad is Data:
18 Q{a: Lane, b: Lane, c: Lane, d: Lane}
19
20
21type Counter is Data:
22 C{c0: U32, c1: U32, c2: U32, c3: U32}