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
a525e5db
Unverified
Commit
a525e5db
authored
May 29, 2018
by
kokke
Committed by
GitHub
May 29, 2018
Browse files
Update aes.c
parent
6018b3f4
Changes
1
Show whitespace changes
Inline
Side-by-side
aes.c
View file @
a525e5db
...
...
@@ -464,13 +464,13 @@ static void InvCipher(state_t* state,uint8_t* RoundKey)
#if defined(ECB) && (ECB == 1)
void
AES_ECB_encrypt
(
struct
AES_ctx
*
ctx
,
const
uint8_t
*
buf
)
void
AES_ECB_encrypt
(
struct
AES_ctx
*
ctx
,
uint8_t
*
buf
)
{
// The next function call encrypts the PlainText with the Key using AES algorithm.
Cipher
((
state_t
*
)
buf
,
ctx
->
RoundKey
);
}
void
AES_ECB_decrypt
(
struct
AES_ctx
*
ctx
,
const
uint8_t
*
buf
)
void
AES_ECB_decrypt
(
struct
AES_ctx
*
ctx
,
uint8_t
*
buf
)
{
// The next function call decrypts the PlainText with the Key using AES algorithm.
InvCipher
((
state_t
*
)
buf
,
ctx
->
RoundKey
);
...
...
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