diff options
author | jsing <> | 2023-08-10 07:15:23 +0000 |
---|---|---|
committer | jsing <> | 2023-08-10 07:15:23 +0000 |
commit | 5ccf52b751e2b7dd5a5c0593f12b501074180fff (patch) | |
tree | 9ca48e5b24acc855af178267c3089d8f870623b0 /src/lib/libcrypto/ripemd | |
parent | 0c67b8136f2ccb712ba6ab0d74f8dac9b61c59e8 (diff) | |
download | openbsd-5ccf52b751e2b7dd5a5c0593f12b501074180fff.tar.gz openbsd-5ccf52b751e2b7dd5a5c0593f12b501074180fff.tar.bz2 openbsd-5ccf52b751e2b7dd5a5c0593f12b501074180fff.zip |
Remove MD32_REG_T.
This is a hack that is only enabled on a handful of 64 bit platforms, as
a workaround for poor compiler optimisation. If you're running an archiac
compiler on an archiac architecture, then you can deal with slightly lower
performance.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/ripemd')
-rw-r--r-- | src/lib/libcrypto/ripemd/ripemd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ripemd/ripemd.c b/src/lib/libcrypto/ripemd/ripemd.c index 4edf3de4d3..5cf197c831 100644 --- a/src/lib/libcrypto/ripemd/ripemd.c +++ b/src/lib/libcrypto/ripemd/ripemd.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ripemd.c,v 1.1 2023/07/28 11:08:01 jsing Exp $ */ | 1 | /* $OpenBSD: ripemd.c,v 1.2 2023/08/10 07:15:23 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 | * |
@@ -179,11 +179,11 @@ void | |||
179 | ripemd160_block_data_order(RIPEMD160_CTX *ctx, const void *p, size_t num) | 179 | ripemd160_block_data_order(RIPEMD160_CTX *ctx, const void *p, size_t num) |
180 | { | 180 | { |
181 | const unsigned char *data = p; | 181 | const unsigned char *data = p; |
182 | unsigned MD32_REG_T A, B,C, D, E; | 182 | unsigned int A, B, C, D, E; |
183 | unsigned MD32_REG_T a, b,c, d,e, l; | 183 | unsigned int a, b, c, d, e, l; |
184 | #ifndef MD32_XARRAY | 184 | #ifndef MD32_XARRAY |
185 | /* See comment in crypto/sha/sha_locl.h for details. */ | 185 | /* See comment in crypto/sha/sha_locl.h for details. */ |
186 | unsigned MD32_REG_T XX0, XX1, XX2, XX3, XX4, XX5, XX6, XX7, | 186 | unsigned int XX0, XX1, XX2, XX3, XX4, XX5, XX6, XX7, |
187 | XX8, XX9, XX10, XX11, XX12, XX13, XX14, XX15; | 187 | XX8, XX9, XX10, XX11, XX12, XX13, XX14, XX15; |
188 | # define X(i) XX##i | 188 | # define X(i) XX##i |
189 | #else | 189 | #else |