Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
e3734aa6
Commit
e3734aa6
authored
May 30, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/crypto_bench: add missing RC4 implementation from tomcrypt
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
5420c8f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
crypto_bench.c
tools/crypto_bench.c
+11
-4
No files found.
tools/crypto_bench.c
View file @
e3734aa6
...
...
@@ -528,6 +528,16 @@ static void run_tomcrypt_des(uint8_t *output,
des_ecb_encrypt
(
input
+
i
,
output
+
i
,
&
des
);
}
static
void
run_tomcrypt_rc4
(
uint8_t
*
output
,
const
uint8_t
*
input
,
unsigned
size
)
{
rc4_state
rc4
;
rc4_stream_setup
(
&
rc4
,
hardcoded_key
,
16
);
rc4_stream_crypt
(
&
rc4
,
input
,
size
,
output
);
rc4_stream_done
(
&
rc4
);
}
static
void
run_tomcrypt_twofish
(
uint8_t
*
output
,
const
uint8_t
*
input
,
unsigned
size
)
{
...
...
@@ -647,10 +657,7 @@ struct hash_impl implementations[] = {
IMPL
(
lavu
,
"TWOFISH"
,
twofish
,
"crc:9edbd5c1"
)
IMPL
(
gcrypt
,
"TWOFISH"
,
twofish
,
"crc:9edbd5c1"
)
IMPL
(
tomcrypt
,
"TWOFISH"
,
twofish
,
"crc:9edbd5c1"
)
IMPL
(
lavu
,
"RC4"
,
rc4
,
"crc:538d37b2"
)
IMPL
(
crypto
,
"RC4"
,
rc4
,
"crc:538d37b2"
)
IMPL
(
gcrypt
,
"RC4"
,
rc4
,
"crc:538d37b2"
)
IMPL
(
mbedcrypto
,
"RC4"
,
rc4
,
"crc:538d37b2"
)
IMPL_ALL
(
"RC4"
,
rc4
,
"crc:538d37b2"
)
IMPL
(
lavu
,
"XTEA"
,
xtea
,
"crc:931fc270"
)
IMPL
(
mbedcrypto
,
"XTEA"
,
xtea
,
"crc:931fc270"
)
IMPL
(
tomcrypt
,
"XTEA"
,
xtea
,
"crc:931fc270"
)
...
...
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