diff options
Diffstat (limited to 'src/lib/libcrypto/sha')
-rw-r--r-- | src/lib/libcrypto/sha/sha256.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/sha/sha512.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/sha/sha_locl.h | 4 |
3 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/libcrypto/sha/sha256.c b/src/lib/libcrypto/sha/sha256.c index 9c05d3b0f8..e826ca9e19 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.10 2019/01/21 23:20:31 jsg Exp $ */ | 1 | /* $OpenBSD: sha256.c,v 1.11 2021/11/09 18:40:21 bcook Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved | 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved |
4 | * according to the OpenSSL license [found in ../../LICENSE]. | 4 | * according to the OpenSSL license [found in ../../LICENSE]. |
@@ -9,8 +9,7 @@ | |||
9 | 9 | ||
10 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA256) | 10 | #if !defined(OPENSSL_NO_SHA) && !defined(OPENSSL_NO_SHA256) |
11 | 11 | ||
12 | #include <machine/endian.h> | 12 | #include <endian.h> |
13 | |||
14 | #include <stdlib.h> | 13 | #include <stdlib.h> |
15 | #include <string.h> | 14 | #include <string.h> |
16 | 15 | ||
diff --git a/src/lib/libcrypto/sha/sha512.c b/src/lib/libcrypto/sha/sha512.c index 6b95cfa72e..56a207f7d0 100644 --- a/src/lib/libcrypto/sha/sha512.c +++ b/src/lib/libcrypto/sha/sha512.c | |||
@@ -1,12 +1,11 @@ | |||
1 | /* $OpenBSD: sha512.c,v 1.15 2016/11/04 13:56:05 miod Exp $ */ | 1 | /* $OpenBSD: sha512.c,v 1.16 2021/11/09 18:40:21 bcook Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved | 3 | * Copyright (c) 2004 The OpenSSL Project. All rights reserved |
4 | * according to the OpenSSL license [found in ../../LICENSE]. | 4 | * according to the OpenSSL license [found in ../../LICENSE]. |
5 | * ==================================================================== | 5 | * ==================================================================== |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <machine/endian.h> | 8 | #include <endian.h> |
9 | |||
10 | #include <stdlib.h> | 9 | #include <stdlib.h> |
11 | #include <string.h> | 10 | #include <string.h> |
12 | 11 | ||
diff --git a/src/lib/libcrypto/sha/sha_locl.h b/src/lib/libcrypto/sha/sha_locl.h index 46c9a39be2..5daab29fd7 100644 --- a/src/lib/libcrypto/sha/sha_locl.h +++ b/src/lib/libcrypto/sha/sha_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sha_locl.h,v 1.23 2016/12/23 23:22:25 patrick Exp $ */ | 1 | /* $OpenBSD: sha_locl.h,v 1.24 2021/11/09 18:40:21 bcook 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 | * |
@@ -186,7 +186,7 @@ int SHA1_Init(SHA_CTX *c) | |||
186 | #endif | 186 | #endif |
187 | 187 | ||
188 | #if !defined(SHA1_ASM) | 188 | #if !defined(SHA1_ASM) |
189 | #include <machine/endian.h> | 189 | #include <endian.h> |
190 | static void HASH_BLOCK_DATA_ORDER (SHA_CTX *c, const void *p, size_t num) | 190 | static void HASH_BLOCK_DATA_ORDER (SHA_CTX *c, const void *p, size_t num) |
191 | { | 191 | { |
192 | const unsigned char *data=p; | 192 | const unsigned char *data=p; |