Perform substitution to each of the 16 bytes * Uses inverse S-box as lookup table */
| 88 | * Uses inverse S-box as lookup table |
| 89 | */ |
| 90 | void SubBytes(unsigned char * state) { |
| 91 | for (int i = 0; i < 16; i++) { // Perform substitution to each of the 16 bytes |
| 92 | state[i] = inv_s[state[i]]; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | /* Each round operates on 128 bits at a time |
| 97 | * The number of rounds is defined in AESDecrypt() |
no outgoing calls
no test coverage detected