summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2024-03-26 12:23:02 +0000
committerjsing <>2024-03-26 12:23:02 +0000
commit42ff0af3f210b114fd4f86002c1463044bef5035 (patch)
treef9dcec0330883d0e62a21f61161ee918063f27d7 /src/lib
parent07988e5d0622efc08b0158af17d020a393c0d0b1 (diff)
downloadopenbsd-42ff0af3f210b114fd4f86002c1463044bef5035.tar.gz
openbsd-42ff0af3f210b114fd4f86002c1463044bef5035.tar.bz2
openbsd-42ff0af3f210b114fd4f86002c1463044bef5035.zip
Inline initial values.
No functional change.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/md4/md4.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/lib/libcrypto/md4/md4.c b/src/lib/libcrypto/md4/md4.c
index 2d5a4e6268..1889c6facb 100644
--- a/src/lib/libcrypto/md4/md4.c
+++ b/src/lib/libcrypto/md4/md4.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: md4.c,v 1.14 2024/03/26 12:18:23 jsing Exp $ */ 1/* $OpenBSD: md4.c,v 1.15 2024/03/26 12:23:02 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 *
@@ -119,11 +119,6 @@ __END_HIDDEN_DECLS
119/* Implemented from RFC1186 The MD4 Message-Digest Algorithm 119/* Implemented from RFC1186 The MD4 Message-Digest Algorithm
120 */ 120 */
121 121
122#define INIT_DATA_A (unsigned long)0x67452301L
123#define INIT_DATA_B (unsigned long)0xefcdab89L
124#define INIT_DATA_C (unsigned long)0x98badcfeL
125#define INIT_DATA_D (unsigned long)0x10325476L
126
127#ifndef md4_block_data_order 122#ifndef md4_block_data_order
128#ifdef X 123#ifdef X
129#undef X 124#undef X
@@ -248,11 +243,13 @@ md4_block_data_order(MD4_CTX *c, const void *_in, size_t num)
248int 243int
249MD4_Init(MD4_CTX *c) 244MD4_Init(MD4_CTX *c)
250{ 245{
251 memset (c, 0, sizeof(*c)); 246 memset(c, 0, sizeof(*c));
252 c->A = INIT_DATA_A; 247
253 c->B = INIT_DATA_B; 248 c->A = 0x67452301UL;
254 c->C = INIT_DATA_C; 249 c->B = 0xefcdab89UL;
255 c->D = INIT_DATA_D; 250 c->C = 0x98badcfeUL;
251 c->D = 0x10325476UL;
252
256 return 1; 253 return 1;
257} 254}
258LCRYPTO_ALIAS(MD4_Init); 255LCRYPTO_ALIAS(MD4_Init);