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
ce24c0db
Unverified
Commit
ce24c0db
authored
Jan 17, 2019
by
kokke
Committed by
GitHub
Jan 17, 2019
Browse files
Merge pull request #121 from rkeene/invcipher-not-ctr
Only define InvCipher if needed
parents
0677e48a
c033c7c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
aes.c
View file @
ce24c0db
...
...
@@ -432,6 +432,7 @@ static void Cipher(state_t* state, uint8_t* RoundKey)
AddRoundKey
(
Nr
,
state
,
RoundKey
);
}
#if (defined(CBC) && CBC == 1) || (defined(ECB) && ECB == 1)
static
void
InvCipher
(
state_t
*
state
,
uint8_t
*
RoundKey
)
{
uint8_t
round
=
0
;
...
...
@@ -456,7 +457,7 @@ static void InvCipher(state_t* state,uint8_t* RoundKey)
InvSubBytes
(
state
);
AddRoundKey
(
0
,
state
,
RoundKey
);
}
#endif // #if (defined(CBC) && CBC == 1) || (defined(ECB) && ECB == 1)
/*****************************************************************************/
/* Public functions: */
...
...
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