summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md5/md5.c
diff options
context:
space:
mode:
authorjsing <>2025-01-24 13:35:04 +0000
committerjsing <>2025-01-24 13:35:04 +0000
commite645f65a85d604ca35a8889b91950b72ea837f74 (patch)
tree4a38be3aa387374f26fe17d96d1f3348009bd64c /src/lib/libcrypto/md5/md5.c
parentb6ef5ce8e459627efe3f07bc95bcfa8c48704fba (diff)
downloadopenbsd-e645f65a85d604ca35a8889b91950b72ea837f74.tar.gz
openbsd-e645f65a85d604ca35a8889b91950b72ea837f74.tar.bz2
openbsd-e645f65a85d604ca35a8889b91950b72ea837f74.zip
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@
Diffstat (limited to 'src/lib/libcrypto/md5/md5.c')
-rw-r--r--src/lib/libcrypto/md5/md5.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/md5/md5.c b/src/lib/libcrypto/md5/md5.c
index 3bc558f0f2..f1c9223d86 100644
--- a/src/lib/libcrypto/md5/md5.c
+++ b/src/lib/libcrypto/md5/md5.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: md5.c,v 1.24 2025/01/19 07:51:41 jsing Exp $ */ 1/* $OpenBSD: md5.c,v 1.25 2025/01/24 13:35:04 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -71,8 +71,7 @@
71CTASSERT(sizeof(MD5_LONG) == sizeof(uint32_t)); 71CTASSERT(sizeof(MD5_LONG) == sizeof(uint32_t));
72 72
73#ifdef MD5_ASM 73#ifdef MD5_ASM
74void md5_block_asm_data_order(MD5_CTX *c, const void *p, size_t num); 74void md5_block_data_order(MD5_CTX *c, const void *p, size_t num);
75#define md5_block_data_order md5_block_asm_data_order
76#endif 75#endif
77 76
78#ifndef MD5_ASM 77#ifndef MD5_ASM