def lc.be

bend-osdev-cipher-core@0.1.0.0 · cipher_core.bend:46

import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as CipherCore
import Base

46# the word with bytes a (most significant), b, c, d
47def lc.be(a: U32, b: U32, c: U32, d: U32) -> U32:
48  U32.or(U32.or(U32.shln(U32.and(255, a), 24n), U32.shln(U32.and(255, b), 16n)), U32.or(U32.shln(U32.and(255, c), 8n), U32.and(255, d)))

Uses (4)

Used by (7)