def cm.b0

bend-osdev-cipher-modes@0.1.0.0 · cipher_modes.bend:68

import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModes
import Base
import bend-osdev-word64@0.1.0.0/word64.bend as W

68# the bytes of w, most significant first
69def cm.b0(w: U32) -> U32:
70  match w:
71    case U32{x}:
72      cm.of8(W.W64.bits.hi(8n, 8n, W.W64.bits.hi(8n, 16n, W.W64.bits.hi(8n, 24n, x))))

Uses (3)

Used by (4)