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
cf5773e9
Commit
cf5773e9
authored
Jan 14, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benchmark
Originally committed as revision 7480 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ff8f6594
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
aes.c
libavutil/aes.c
+4
-0
No files found.
libavutil/aes.c
View file @
cf5773e9
...
...
@@ -176,15 +176,19 @@ int main(){
AVAES
*
a
=
av_aes_init
(
"PI=3.141592654.."
,
128
);
uint8_t
ct
[
16
],
pt
[
16
],
key
[
32
];
av_log_level
=
AV_LOG_DEBUG
;
for
(
i
=
0
;
i
<
10000
;
i
++
){
for
(
j
=
0
;
j
<
16
;
j
++
){
pt
[
j
]
=
random
();
}
memcpy
(
a
->
state
,
pt
,
16
);
{
START_TIMER
av_aes_encrypt
(
a
);
if
(
!
(
i
&
(
i
-
1
)))
av_log
(
NULL
,
AV_LOG_ERROR
,
"%02X %02X %02X %02X
\n
"
,
a
->
state
[
0
][
0
],
a
->
state
[
1
][
1
],
a
->
state
[
2
][
2
],
a
->
state
[
3
][
3
]);
av_aes_decrypt
(
a
);
STOP_TIMER
(
"aes"
)}
for
(
j
=
0
;
j
<
16
;
j
++
){
if
(
pt
[
j
]
!=
a
->
state
[
0
][
j
]){
av_log
(
NULL
,
AV_LOG_ERROR
,
"%d %d %02X %02X
\n
"
,
i
,
j
,
pt
[
j
],
a
->
state
[
0
][
j
]);
...
...
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