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
597e3232
Commit
597e3232
authored
Jan 14, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 7504 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7200f5d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
aes.c
libavutil/aes.c
+4
-10
No files found.
libavutil/aes.c
View file @
597e3232
...
...
@@ -99,22 +99,16 @@ void av_aes_encrypt(AVAES *a){
crypt
(
a
,
2
,
sbox
,
enc_multbl
);
}
static
void
init_multbl3
(
uint8_t
tbl
[
4
][
256
][
4
]){
int
i
,
j
,
k
;
for
(
k
=
1
;
k
<
4
;
k
++
)
for
(
j
=
0
;
j
<
256
;
j
++
)
for
(
i
=
0
;
i
<
4
;
i
++
)
tbl
[
k
][
j
][
i
]
=
tbl
[
k
-
1
][
j
][(
i
-
1
)
&
3
];
}
static
void
init_multbl2
(
uint8_t
tbl
[
1024
],
int
c
[
4
],
uint8_t
*
log8
,
uint8_t
*
alog8
,
uint8_t
*
sbox
){
int
i
;
int
i
,
j
;
for
(
i
=
0
;
i
<
1024
;
i
++
){
int
x
=
sbox
[
i
/
4
];
if
(
x
)
tbl
[
i
]
=
alog8
[
log8
[
x
]
+
log8
[
c
[
i
&
3
]]
];
}
#ifndef CONFIG_SMALL
init_multbl3
(
tbl
);
for
(
j
=
256
;
j
<
1024
;
j
++
)
for
(
i
=
0
;
i
<
4
;
i
++
)
tbl
[
4
*
j
+
i
]
=
tbl
[
4
*
j
+
((
i
-
1
)
&
3
)
-
1024
];
#endif
}
...
...
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