Implement subBytes
This commit is contained in:
parent
1e52c33976
commit
755623b0dc
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ uint32_t subWord(uint32_t w) {
|
|||
}
|
||||
|
||||
void subBytes(t_state s) {
|
||||
s[0] = 0; /* ??? */
|
||||
for (uint8_t i = 0; i < 4; i++) {
|
||||
s[i] = subWord(s[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue