MCPcopy Create free account
hub / github.com/7thSamurai/steganography / schedule_core

Method schedule_core

src/aes.cpp:300–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void AES::schedule_core(std::uint8_t *in, unsigned int i) {
301 std::uint8_t t = in[0];
302 in[0] = in[1];
303 in[1] = in[2];
304 in[2] = in[3];
305 in[3] = t;
306
307 in[0] = sbox[in[0]];
308 in[1] = sbox[in[1]];
309 in[2] = sbox[in[2]];
310 in[3] = sbox[in[3]];
311
312 in[0] ^= rcon[i];
313}
314
315void AES::expand_key(const std::uint8_t *in) {
316 std::copy_n(in, 32, expanded_key);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected