diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2024-03-28 07:04:22 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2024-03-28 07:04:22 +0000 |
commit | 440390c3c9e2c30fc36c65a2d2e14bc3f2d95d40 (patch) | |
tree | b9c637b573a6194c6ef26851b6ff210746db06f0 /lib | |
parent | bd0202c18008e52c1592bddf3939929c92f3db1c (diff) |
Inline initial hash values.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/ripemd/ripemd.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/libcrypto/ripemd/ripemd.c b/lib/libcrypto/ripemd/ripemd.c index b07b85e9fe5..60ef403ded1 100644 --- a/lib/libcrypto/ripemd/ripemd.c +++ b/lib/libcrypto/ripemd/ripemd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ripemd.c,v 1.12 2024/03/28 07:03:25 jsing Exp $ */ +/* $OpenBSD: ripemd.c,v 1.13 2024/03/28 07:04:21 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -106,12 +106,6 @@ #define F5(x,y,z) (((~(z)) | (y)) ^ (x)) #endif -#define RIPEMD160_A 0x67452301L -#define RIPEMD160_B 0xEFCDAB89L -#define RIPEMD160_C 0x98BADCFEL -#define RIPEMD160_D 0x10325476L -#define RIPEMD160_E 0xC3D2E1F0L - #define KL0 0x00000000L #define KL1 0x5A827999L #define KL2 0x6ED9EBA1L @@ -394,11 +388,13 @@ int RIPEMD160_Init(RIPEMD160_CTX *c) { memset(c, 0, sizeof(*c)); - c->A = RIPEMD160_A; - c->B = RIPEMD160_B; - c->C = RIPEMD160_C; - c->D = RIPEMD160_D; - c->E = RIPEMD160_E; + + c->A = 0x67452301UL; + c->B = 0xEFCDAB89UL; + c->C = 0x98BADCFEUL; + c->D = 0x10325476UL; + c->E = 0xC3D2E1F0UL; + return 1; } |