Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Tiny AES C
Commits
0677e48a
Unverified
Commit
0677e48a
authored
Dec 03, 2018
by
kokke
Committed by
GitHub
Dec 03, 2018
Browse files
Update aes.c
Suggestion by @DamonHD in
https://github.com/kokke/tiny-AES-c/issues/118
parent
691aa01d
Changes
1
Show whitespace changes
Inline
Side-by-side
aes.c
View file @
0677e48a
...
...
@@ -182,11 +182,11 @@ static void KeyExpansion(uint8_t* RoundKey, const uint8_t* Key)
// Function RotWord()
{
uint8_t
tmp
u8
=
tempa
[
0
];
const
uint8_t
u8
tmp
=
tempa
[
0
];
tempa
[
0
]
=
tempa
[
1
];
tempa
[
1
]
=
tempa
[
2
];
tempa
[
2
]
=
tempa
[
3
];
tempa
[
3
]
=
tmp
u8
;
tempa
[
3
]
=
u8
tmp
;
}
// SubWord() is a function that takes a four-byte input word and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment