Implement addRoundKey

This commit is contained in:
Manuel Thalmann 2023-11-14 08:53:30 +01:00
parent aff464383e
commit ea7b6b89de

View file

@ -162,7 +162,10 @@ void expandKey(uint8_t k[16], uint32_t ek[44]) {
/* Adding expanded round key (prepared before) */
void addRoundKey(t_state s, uint32_t ek[], short round) {
/* ??? */
s[0] ^= ek[round];
s[1] ^= ek[round + 1];
s[2] ^= ek[round + 2];
s[3] ^= ek[round + 3];
}
void aes(uint8_t *in, uint8_t *out, uint8_t *skey)