MCPcopy Create free account
hub / github.com/FIT-DNU/Cryptography-and-Cyber-Security / SubBytes

Function SubBytes

AES-decrypt.cpp:90–94  ·  view source on GitHub ↗

Perform substitution to each of the 16 bytes * Uses inverse S-box as lookup table */

Source from the content-addressed store, hash-verified

88 * Uses inverse S-box as lookup table
89 */
90void 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()

Callers 2

RoundFunction · 0.70
InitialRoundFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected