Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
8d4ae47c
Commit
8d4ae47c
authored
Jan 14, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 7499 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1b105243
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
aes.c
libavutil/aes.c
+3
-6
No files found.
libavutil/aes.c
View file @
8d4ae47c
...
...
@@ -158,7 +158,9 @@ AVAES *av_aes_init(uint8_t *key, int key_bits, int decrypt) {
memcpy
(
tk
,
key
,
KC
*
4
);
for
(
t
=
0
;
t
<
(
rounds
+
1
)
*
4
;)
{
memcpy
(
a
->
round_key
[
0
][
t
],
tk
,
KC
*
4
);
if
(
decrypt
)
memcpy
(
a
->
round_key
[
0
][
t
],
tk
,
KC
*
4
);
else
memcpy
(
a
->
round_key
[
rounds
][
-
t
],
tk
,
KC
*
4
);
t
+=
KC
;
for
(
i
=
0
;
i
<
4
;
i
++
)
...
...
@@ -179,11 +181,6 @@ AVAES *av_aes_init(uint8_t *key, int key_bits, int decrypt) {
a
->
round_key
[
i
][
0
][
j
]
=
sbox
[
a
->
round_key
[
i
][
0
][
j
]];
mix
(
a
->
round_key
[
i
],
dec_multbl
);
}
}
else
{
for
(
i
=
0
;
i
<
(
rounds
+
1
)
/
2
;
i
++
){
for
(
j
=
0
;
j
<
16
;
j
++
)
FFSWAP
(
int
,
a
->
round_key
[
i
][
0
][
j
],
a
->
round_key
[
rounds
-
i
][
0
][
j
]);
}
}
return
a
;
...
...
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