Implement subBytes

This commit is contained in:
Manuel Thalmann 2023-11-07 19:25:41 +01:00
parent 1e52c33976
commit 755623b0dc

View file

@ -78,7 +78,9 @@ uint32_t subWord(uint32_t w) {
} }
void subBytes(t_state s) { void subBytes(t_state s) {
s[0] = 0; /* ??? */ for (uint8_t i = 0; i < 4; i++) {
s[i] = subWord(s[i]);
}
} }