mirror of
https://github.com/kokke/tiny-AES-c
synced 2024-11-22 05:21:52 +03:00
Update aes.c
This commit is contained in:
parent
576ebd9046
commit
f063d2a668
2
aes.c
2
aes.c
@ -180,7 +180,7 @@ static void KeyExpansion()
|
||||
tempa[3] = getSBoxValue(tempa[3]);
|
||||
}
|
||||
}
|
||||
RoundKey[ i * 4 ] = RoundKey[ i - Nk * 4 ] ^ tempa[0];
|
||||
RoundKey[ i * 4 ] = RoundKey[(i - Nk) * 4 ] ^ tempa[0];
|
||||
RoundKey[(i * 4) + 1] = RoundKey[(i - Nk) * (4 + 1)] ^ tempa[1];
|
||||
RoundKey[(i * 4) + 2] = RoundKey[(i - Nk) * (4 + 2)] ^ tempa[2];
|
||||
RoundKey[(i * 4) + 3] = RoundKey[(i - Nk) * (4 + 3)] ^ tempa[3];
|
||||
|
Loading…
Reference in New Issue
Block a user