Aes.aes.inv.go: def of bend-osdev-cipher-modes@0.1.0.0 Import: import bend-osdev-cipher-modes@0.1.0.0/aes.bend as Aes Lines 31-38 of bend-osdev-cipher-modes@0.1.0.0/aes.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-cipher-modes@0.1.0.0/aes.bend&start_line=31&end_line=38 import Base # a := a^2 * x, n times: from a = x, six times gives x^127 def aes.inv.go(n: Nat, a: U32, +x: U32) -> U32: match n: case 0n: a case 1n+q: +s = a aes.inv.go(q, aes.gmul(aes.gmul(s, s), x), x) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-modes@0.1.0.0/aes.bend&name=aes.gmul