def cm.mask
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModesimport Base
257# 0 for a 0 bit, all ones for a 1 bit (the low bit of b)
258def cm.mask(b: U32) -> U32:
259 U32.sub(0, U32.and(1, b))
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModesimport Base
257# 0 for a 0 bit, all ones for a 1 bit (the low bit of b)
258def cm.mask(b: U32) -> U32:
259 U32.sub(0, U32.and(1, b))