Aes.aes.inv_rounds: def of bend-osdev-aes@0.1.0.0 Import: import bend-osdev-aes@0.1.0.0/aes.bend as Aes Lines 158-167 of bend-osdev-aes@0.1.0.0/aes.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-aes@0.1.0.0/aes.bend&start_line=158&end_line=167 import Base import bend-collections@1.0.0.0/src/crypto/aes/types.bend as T # bend-collections' rounds (n full rounds, then the last, a round key each) # undone, the last round key first def aes.inv_rounds(n: Nat, ks: List<&2, T.State>, c: T.State) -> T.State: match n ks: case 0n Con{k, rest}: aes.inv_last(c, k) case 1n+p Con{k, rest}: aes.inv_round(aes.inv_rounds(p, rest, c), k) case _ _: aes.mask(c) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/aes/types.bend&name=State https://jend.leeeet.dev/definition.txt?path=bend-osdev-aes@0.1.0.0/aes.bend&name=aes.inv_last https://jend.leeeet.dev/definition.txt?path=bend-osdev-aes@0.1.0.0/aes.bend&name=aes.inv_round https://jend.leeeet.dev/definition.txt?path=bend-osdev-aes@0.1.0.0/aes.bend&name=aes.mask