summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2024-03-26 12:23:03 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2024-03-26 12:23:03 +0000
commit2a09182ea48ff83a61b744236f6323dbff068c64 (patch)
treecf84531c7adb807a5b40f2d6ac4c96b898001173 /lib
parent4aab587d01957d4ce7839f620b5d32acf44e2b58 (diff)
Inline initial values.
No functional change.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/md4/md4.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/libcrypto/md4/md4.c b/lib/libcrypto/md4/md4.c
index 2d5a4e62686..1889c6facba 100644
--- a/lib/libcrypto/md4/md4.c
+++ b/lib/libcrypto/md4/md4.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md4.c,v 1.14 2024/03/26 12:18:23 jsing Exp $ */
+/* $OpenBSD: md4.c,v 1.15 2024/03/26 12:23:02 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -119,11 +119,6 @@ __END_HIDDEN_DECLS
/* Implemented from RFC1186 The MD4 Message-Digest Algorithm
*/
-#define INIT_DATA_A (unsigned long)0x67452301L
-#define INIT_DATA_B (unsigned long)0xefcdab89L
-#define INIT_DATA_C (unsigned long)0x98badcfeL
-#define INIT_DATA_D (unsigned long)0x10325476L
-
#ifndef md4_block_data_order
#ifdef X
#undef X
@@ -248,11 +243,13 @@ md4_block_data_order(MD4_CTX *c, const void *_in, size_t num)
int
MD4_Init(MD4_CTX *c)
{
- memset (c, 0, sizeof(*c));
- c->A = INIT_DATA_A;
- c->B = INIT_DATA_B;
- c->C = INIT_DATA_C;
- c->D = INIT_DATA_D;
+ memset(c, 0, sizeof(*c));
+
+ c->A = 0x67452301UL;
+ c->B = 0xefcdab89UL;
+ c->C = 0x98badcfeUL;
+ c->D = 0x10325476UL;
+
return 1;
}
LCRYPTO_ALIAS(MD4_Init);