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
a86ef804
Commit
a86ef804
authored
May 17, 2016
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blowfish-test: Return different values for different errors
parent
b84f3a40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
blowfish.c
libavutil/tests/blowfish.c
+2
-2
No files found.
libavutil/tests/blowfish.c
View file @
a86ef804
...
...
@@ -174,13 +174,13 @@ int main(void)
av_blowfish_crypt_ecb
(
&
ctx
,
&
tmptext_l
[
i
],
&
tmptext_r
[
i
],
0
);
if
(
tmptext_l
[
i
]
!=
ciphertext_l
[
i
]
||
tmptext_r
[
i
]
!=
ciphertext_r
[
i
])
{
printf
(
"Test encryption failed.
\n
"
);
return
1
;
return
2
;
}
av_blowfish_crypt_ecb
(
&
ctx
,
&
tmptext_l
[
i
],
&
tmptext_r
[
i
],
1
);
if
(
tmptext_l
[
i
]
!=
plaintext_l
[
i
]
||
tmptext_r
[
i
]
!=
plaintext_r
[
i
])
{
printf
(
"Test decryption failed.
\n
"
);
return
1
;
return
3
;
}
}
printf
(
"Test encryption/decryption success.
\n
"
);
...
...
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