From e645f65a85d604ca35a8889b91950b72ea837f74 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Fri, 24 Jan 2025 13:35:04 +0000 Subject: Provide a readable assembly implementation for MD5 on amd64. This appears to be about 5% faster than the current perlasm version on a modern Intel CPU. While here rename md5_block_asm_data_order to md5_block_data_order, for consistency with other hashes. ok tb@ --- src/lib/libcrypto/md5/asm/md5-586.pl | 2 +- src/lib/libcrypto/md5/asm/md5-x86_64.pl | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib/libcrypto/md5/asm') diff --git a/src/lib/libcrypto/md5/asm/md5-586.pl b/src/lib/libcrypto/md5/asm/md5-586.pl index 6cb66bb499..a039efd899 100644 --- a/src/lib/libcrypto/md5/asm/md5-586.pl +++ b/src/lib/libcrypto/md5/asm/md5-586.pl @@ -30,7 +30,7 @@ $X="esi"; 0, 7, 14, 5, 12, 3, 10, 1, 8, 15, 6, 13, 4, 11, 2, 9, # R3 ); -&md5_block("md5_block_asm_data_order"); +&md5_block("md5_block_data_order"); &asm_finish(); sub Np diff --git a/src/lib/libcrypto/md5/asm/md5-x86_64.pl b/src/lib/libcrypto/md5/asm/md5-x86_64.pl index 5001c34724..a2d97b28e3 100755 --- a/src/lib/libcrypto/md5/asm/md5-x86_64.pl +++ b/src/lib/libcrypto/md5/asm/md5-x86_64.pl @@ -125,9 +125,9 @@ $code .= <