Implement addRoundKey
This commit is contained in:
parent
aff464383e
commit
ea7b6b89de
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue