def lc.be.bits

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

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

148# the word with bytes a (most significant), b, c, d, by bits
149def lc.be.bits(a: U32, b: U32, c: U32, d: U32) -> U32:
150  U32{W.W64.bits.cat(8n, 24n, lc.bits8(d), W.W64.bits.cat(8n, 16n, lc.bits8(c), W.W64.bits.cat(8n, 8n, lc.bits8(b), lc.bits8(a))))}

Uses (3)

Used by (2)