summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md5
diff options
context:
space:
mode:
authorjsing <>2026-01-17 14:53:09 +0000
committerjsing <>2026-01-17 14:53:09 +0000
commitfdea186c25361674646de3b0a16b3ad37c8f0ec3 (patch)
tree174362589c541e85180078e5e9ac69d9e90ada52 /src/lib/libcrypto/md5
parentdb12bd9b580e2fc1c5c7d3224d2d9d0f534d1b8d (diff)
downloadopenbsd-fdea186c25361674646de3b0a16b3ad37c8f0ec3.tar.gz
openbsd-fdea186c25361674646de3b0a16b3ad37c8f0ec3.tar.bz2
openbsd-fdea186c25361674646de3b0a16b3ad37c8f0ec3.zip
Replace MD5_ASM with function specific defines.
Use the same pattern that is now used for most other code - provide HAVE_MD5_BLOCK_DATA_ORDER and use this to selectively enable source code.
Diffstat (limited to 'src/lib/libcrypto/md5')
-rw-r--r--src/lib/libcrypto/md5/md5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/md5/md5.c b/src/lib/libcrypto/md5/md5.c
index f1c9223d86..f5ad5570a4 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.25 2025/01/24 13:35:04 jsing Exp $ */ 1/* $OpenBSD: md5.c,v 1.26 2026/01/17 14:53:09 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 *
@@ -70,11 +70,11 @@
70/* Ensure that MD5_LONG and uint32_t are equivalent size. */ 70/* Ensure that MD5_LONG and uint32_t are equivalent size. */
71CTASSERT(sizeof(MD5_LONG) == sizeof(uint32_t)); 71CTASSERT(sizeof(MD5_LONG) == sizeof(uint32_t));
72 72
73#ifdef MD5_ASM 73#ifdef HAVE_MD5_BLOCK_DATA_ORDER
74void md5_block_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#endif 75#endif
76 76
77#ifndef MD5_ASM 77#ifndef HAVE_MD5_BLOCK_DATA_ORDER
78static inline uint32_t 78static inline uint32_t
79md5_F(uint32_t x, uint32_t y, uint32_t z) 79md5_F(uint32_t x, uint32_t y, uint32_t z)
80{ 80{