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
79458d21
Unverified
Commit
79458d21
authored
Dec 06, 2017
by
kokke
Committed by
GitHub
Dec 06, 2017
Browse files
Update aes.h
parent
8526d395
Changes
1
Show whitespace changes
Inline
Side-by-side
aes.h
View file @
79458d21
...
@@ -41,11 +41,12 @@
...
@@ -41,11 +41,12 @@
#define AES_keyExpSize 176
#define AES_keyExpSize 176
#endif
#endif
struct
AES_ctx
{
struct
AES_ctx
{
uint8_t
RoundKey
[
AES_keyExpSize
];
uint8_t
RoundKey
[
AES_keyExpSize
];
#if (defined(CBC) && (CBC == 1)) || (defined(CTR) && (CTR == 1))
#if (defined(CBC) && (CBC == 1)) || (defined(CTR) && (CTR == 1))
uint8_t
Iv
[
AES_BLOCKLEN
];
uint8_t
Iv
[
AES_BLOCKLEN
];
#endif
#endif
};
};
void
AES_init_ctx
(
struct
AES_ctx
*
ctx
,
const
uint8_t
*
key
);
void
AES_init_ctx
(
struct
AES_ctx
*
ctx
,
const
uint8_t
*
key
);
...
...
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