def cr.f128.bytes

bend-osdev-crypto@0.1.0.0 · inst_cm.bend:63

import bend-osdev-crypto@0.1.0.0/inst_cm.bend as InstCm
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M

63# the 16 bytes of a block, most significant byte of w0 first
64def cr.f128.bytes(b: M.CmBlock) -> List<&2, U32>:
65  match b:
66    case M.CmBlock{w0, w1, w2, w3}:
67      B.append(B.be32(w0), B.append(B.be32(w1), B.append(B.be32(w2), B.be32(w3))))

Uses (5)

Used by (3)