def word
import bend-collections@1.0.0.0/src/crypto/aes/gcm.bend as Gcmimport Base
import bend-collections@1.0.0.0/src/crypto/aes/types.bend as T
75def word(q: T.Quad) -> U32:
76 match q:
77 case T.W{a, b, c, d}:
78 U32.or(U32.shln(U32.and(255, a), 24n), U32.or(U32.shln(U32.and(255, b), 16n),
79 U32.or(U32.shln(U32.and(255, c), 8n), U32.and(255, d))))