src/crypto/sha512/types.bend

bend-collections@1.0.0.0 · 11 lines · 2 definitions

1import Base
2
3# Shared representation only; this module contains no algorithm or operations.
4
5# A 64-bit word as its two 32-bit halves, most significant first.
6type Lane is Data:
7  W{hi: U32, lo: U32}
8
9# The working variables a..h (and the chaining value H0..H7).
10type State is Data:
11  H{a: Lane, b: Lane, c: Lane, d: Lane, e: Lane, f: Lane, g: Lane, h: Lane}