def LcSm4.decrypt

bend-osdev-legacy-ciphers@0.1.0.0 · sm4.bend:140

import bend-osdev-legacy-ciphers@0.1.0.0/sm4.bend as Sm4
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M

140def LcSm4.decrypt(k: LcSm4Key, b: M.CmBlock) -> M.CmBlock:
141  match k:
142    case LcSm4Key{+tab, rks}:
143      sm4.unrounds(tab, rks, sm4.rev(b))

Uses (4)

Used by (17)