This commit is contained in:
2026-06-24 16:28:42 +02:00
commit 1922f2db62
19 changed files with 571 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { invSBox } from '../constants'
export const invSubBytes = (state: number[][]): number[][] => {
const result: number[][] = []
for (let i = 0;i < state.length;i++) {
result[i] = []
for (let j = 0;j < state[i].length;j++) {
const byte = state[i][j]
result[i][j] = invSBox[byte]
}
}
return result
}