def fc.rot11
import bend-osdev-legacy-ciphers@0.1.0.0/fcrypt.bend as Fcryptimport Base
import bend-osdev-word64@0.1.0.0/word64.bend as W
193# v rotated right by 11 within 56 bits
194def fc.rot11(+v: W.W64) -> W.W64:
195 W.W64.and(W.W64.or(W.W64.shr(v, 11n), W.W64.shl(v, 45n)), W.W64.from_parts(16777215, 4294967295))