From: jsing Date: Tue, 26 Mar 2024 06:23:07 +0000 (+0000) Subject: Reorder functions. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e719ba2c342fa808a170f9f3315a64a729f16479;p=openbsd Reorder functions. No functional change. --- diff --git a/lib/libcrypto/md4/md4.c b/lib/libcrypto/md4/md4.c index 12e3ac71d48..9bb0df21a70 100644 --- a/lib/libcrypto/md4/md4.c +++ b/lib/libcrypto/md4/md4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md4.c,v 1.7 2023/08/10 13:41:56 jsing Exp $ */ +/* $OpenBSD: md4.c,v 1.8 2024/03/26 06:23:07 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -124,18 +124,6 @@ LCRYPTO_ALIAS(MD4_Transform); #define INIT_DATA_C (unsigned long)0x98badcfeL #define INIT_DATA_D (unsigned long)0x10325476L -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; - return 1; -} -LCRYPTO_ALIAS(MD4_Init); - #ifndef md4_block_data_order #ifdef X #undef X @@ -246,6 +234,18 @@ md4_block_data_order(MD4_CTX *c, const void *data_, size_t num) } #endif +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; + return 1; +} +LCRYPTO_ALIAS(MD4_Init); + unsigned char * MD4(const unsigned char *d, size_t n, unsigned char *md) {