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/sha/sha256.c | |
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/sha/sha256.c')
-rw-r--r-- | src/lib/libcrypto/sha/sha256.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/sha/sha256.c b/src/lib/libcrypto/sha/sha256.c index 0d0c4231ef..231a5a058c 100644 --- a/src/lib/libcrypto/sha/sha256.c +++ b/src/lib/libcrypto/sha/sha256.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sha256.c,v 1.27 2023/07/08 12:24:10 beck Exp $ */ | 1 | /* $OpenBSD: sha256.c,v 1.28 2023/08/10 07:15:23 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -135,7 +135,7 @@ sha256_block_data_order(SHA256_CTX *ctx, const void *_in, size_t num) | |||
135 | { | 135 | { |
136 | const uint8_t *in = _in; | 136 | const uint8_t *in = _in; |
137 | const SHA_LONG *in32; | 137 | const SHA_LONG *in32; |
138 | unsigned MD32_REG_T a, b, c, d, e, f, g, h, s0, s1, T1; | 138 | unsigned int a, b, c, d, e, f, g, h, s0, s1, T1; |
139 | SHA_LONG X[16]; | 139 | SHA_LONG X[16]; |
140 | int i; | 140 | int i; |
141 | 141 | ||