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
8ddb7c6e
Commit
8ddb7c6e
authored
Dec 08, 2014
by
kokke
Browse files
Update aes.c
parent
b5a39eea
Changes
1
Hide whitespace changes
Inline
Side-by-side
aes.c
View file @
8ddb7c6e
...
@@ -473,7 +473,7 @@ static void InvCipher(void)
...
@@ -473,7 +473,7 @@ static void InvCipher(void)
/* Public functions: */
/* Public functions: */
/*****************************************************************************/
/*****************************************************************************/
void
AES128_ECB_encrypt
(
uint8_t
*
input
,
uint8_t
*
key
,
uint8_t
*
output
)
void
AES128_ECB_encrypt
(
uint8_t
*
input
,
const
uint8_t
*
key
,
uint8_t
*
output
)
{
{
// Copy the Key and CipherText
// Copy the Key and CipherText
Key
=
key
;
Key
=
key
;
...
@@ -487,7 +487,7 @@ void AES128_ECB_encrypt(uint8_t* input, uint8_t* key, uint8_t *output)
...
@@ -487,7 +487,7 @@ void AES128_ECB_encrypt(uint8_t* input, uint8_t* key, uint8_t *output)
Cipher
();
Cipher
();
}
}
void
AES128_ECB_decrypt
(
uint8_t
*
input
,
uint8_t
*
key
,
uint8_t
*
output
)
void
AES128_ECB_decrypt
(
uint8_t
*
input
,
const
uint8_t
*
key
,
uint8_t
*
output
)
{
{
Key
=
key
;
Key
=
key
;
in
=
input
;
in
=
input
;
...
...
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