def aes.state_of

bend-osdev-cipher-modes@0.1.0.0 · aes.bend:66

import bend-osdev-cipher-modes@0.1.0.0/aes.bend as Aes
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M

66def aes.state_of(b: M.CmBlock) -> CmAesState:
67  match b:
68    case M.CmBlock{+w0, +w1, +w2, +w3}:
69      CmAesState{aes.byte(w0, 24n), aes.byte(w0, 16n), aes.byte(w0, 8n), aes.byte(w0, 0n), aes.byte(w1, 24n), aes.byte(w1, 16n), aes.byte(w1, 8n), aes.byte(w1, 0n), aes.byte(w2, 24n), aes.byte(w2, 16n), aes.byte(w2, 8n), aes.byte(w2, 0n), aes.byte(w3, 24n), aes.byte(w3, 16n), aes.byte(w3, 8n), aes.byte(w3, 0n)}

Uses (3)

Used by (2)