def aes.mask_w

bend-osdev-aes@0.1.0.0 · aes.bend:64

import bend-osdev-aes@0.1.0.0/aes.bend as Aes
import Base
import bend-collections@1.0.0.0/src/crypto/aes/types.bend as T

64# each byte's low 8 bits
65def aes.mask_w(w: T.Quad) -> T.Quad:
66  match w:
67    case T.W{a, b, c, d}:
68      T.W{U32.and(255, a), U32.and(255, b), U32.and(255, c), U32.and(255, d)}

Uses (2)

Used by (3)