summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/md5/md5.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/lib/libcrypto/md5/md5.c b/src/lib/libcrypto/md5/md5.c
index 19f0d83c47..be954d277e 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.14 2023/08/14 15:26:01 jsing Exp $ */ 1/* $OpenBSD: md5.c,v 1.15 2023/08/14 15:48:16 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 *
@@ -256,19 +256,16 @@ md5_block_data_order(MD5_CTX *c, const void *data_, size_t num)
256} 256}
257#endif 257#endif
258 258
259#define INIT_DATA_A (unsigned long)0x67452301L
260#define INIT_DATA_B (unsigned long)0xefcdab89L
261#define INIT_DATA_C (unsigned long)0x98badcfeL
262#define INIT_DATA_D (unsigned long)0x10325476L
263
264int 259int
265MD5_Init(MD5_CTX *c) 260MD5_Init(MD5_CTX *c)
266{ 261{
267 memset(c, 0, sizeof(*c)); 262 memset(c, 0, sizeof(*c));
268 c->A = INIT_DATA_A; 263
269 c->B = INIT_DATA_B; 264 c->A = 0x67452301UL;
270 c->C = INIT_DATA_C; 265 c->B = 0xefcdab89UL;
271 c->D = INIT_DATA_D; 266 c->C = 0x98badcfeUL;
267 c->D = 0x10325476UL;
268
272 return 1; 269 return 1;
273} 270}
274LCRYPTO_ALIAS(MD5_Init); 271LCRYPTO_ALIAS(MD5_Init);