aboutsummaryrefslogtreecommitdiffstats
path: root/tools/crypto_bench.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-08-02 17:40:43 -0300
committerJames Almer <jamrial@gmail.com>2015-08-13 13:45:58 -0300
commit1c10c1aa3cc14a5174661701bfea9a64a71cb12b (patch)
tree1b62add4aa7738cb1f60280eb9b0c627ecfcd876 /tools/crypto_bench.c
parentbd1fe53eab9588ffaa5b1bae46b847e42efee6b5 (diff)
downloadffmpeg-1c10c1aa3cc14a5174661701bfea9a64a71cb12b.tar.gz
crypto_bench: add support for ripemd-128
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tools/crypto_bench.c')
-rw-r--r--tools/crypto_bench.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/crypto_bench.c b/tools/crypto_bench.c
index fb749ac887..b3b24a6fe7 100644
--- a/tools/crypto_bench.c
+++ b/tools/crypto_bench.c
@@ -105,6 +105,7 @@ static void run_lavu_ ## suffix(uint8_t *output, \
DEFINE_LAVU_MD(sha1, AVSHA, sha, 160);
DEFINE_LAVU_MD(sha256, AVSHA, sha, 256);
DEFINE_LAVU_MD(sha512, AVSHA512, sha512, 512);
+DEFINE_LAVU_MD(ripemd128, AVRIPEMD, ripemd, 128);
DEFINE_LAVU_MD(ripemd160, AVRIPEMD, ripemd, 160);
static void run_lavu_aes128(uint8_t *output,
@@ -363,6 +364,7 @@ DEFINE_TOMCRYPT_WRAPPER(md5, md5, MD5)
DEFINE_TOMCRYPT_WRAPPER(sha1, sha1, SHA1)
DEFINE_TOMCRYPT_WRAPPER(sha256, sha256, SHA256)
DEFINE_TOMCRYPT_WRAPPER(sha512, sha512, SHA512)
+DEFINE_TOMCRYPT_WRAPPER(ripemd128, rmd128, RIPEMD128)
DEFINE_TOMCRYPT_WRAPPER(ripemd160, rmd160, RIPEMD160)
static void run_tomcrypt_aes128(uint8_t *output,
@@ -515,6 +517,8 @@ struct hash_impl implementations[] = {
IMPL_ALL("SHA-256", sha256, "14028ac673b3087e51a1d407fbf0df4deeec8f217119e13b07bf2138f93db8c5")
IMPL_ALL("SHA-512", sha512, "3afdd44a80d99af15c87bd724cb717243193767835ce866dd5d58c02d674bb57"
"7c25b9e118c200a189fcd5a01ef106a4e200061f3e97dbf50ba065745fd46bef")
+ IMPL(lavu, "RIPEMD-128", ripemd128, "9ab8bfba2ddccc5d99c9d4cdfb844a5f")
+ IMPL(tomcrypt, "RIPEMD-128", ripemd128, "9ab8bfba2ddccc5d99c9d4cdfb844a5f")
IMPL_ALL("RIPEMD-160", ripemd160, "62a5321e4fc8784903bb43ab7752c75f8b25af00")
IMPL_ALL("AES-128", aes128, "crc:ff6bc888")
IMPL_ALL("CAMELLIA", camellia, "crc:7abb59a7")