diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/modes/gcm128.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/lib/libcrypto/modes/gcm128.c b/src/lib/libcrypto/modes/gcm128.c index 3b2cf754ba..8b9a7bcfbb 100644 --- a/src/lib/libcrypto/modes/gcm128.c +++ b/src/lib/libcrypto/modes/gcm128.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gcm128.c,v 1.48 2025/05/24 07:51:21 jsing Exp $ */ | 1 | /* $OpenBSD: gcm128.c,v 1.49 2025/06/08 07:38:42 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2010 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2010 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -82,28 +82,6 @@ gcm_init_4bit(u128 Htable[16], uint64_t H[2]) | |||
82 | Hi[j].lo = V.lo ^ Htable[j].lo; | 82 | Hi[j].lo = V.lo ^ Htable[j].lo; |
83 | } | 83 | } |
84 | } | 84 | } |
85 | |||
86 | #if defined(GHASH_ASM) && (defined(__arm__) || defined(__arm)) | ||
87 | /* | ||
88 | * ARM assembler expects specific dword order in Htable. | ||
89 | */ | ||
90 | { | ||
91 | int j; | ||
92 | #if BYTE_ORDER == LITTLE_ENDIAN | ||
93 | for (j = 0; j < 16; ++j) { | ||
94 | V = Htable[j]; | ||
95 | Htable[j].hi = V.lo; | ||
96 | Htable[j].lo = V.hi; | ||
97 | } | ||
98 | #else /* BIG_ENDIAN */ | ||
99 | for (j = 0; j < 16; ++j) { | ||
100 | V = Htable[j]; | ||
101 | Htable[j].hi = V.lo << 32|V.lo >> 32; | ||
102 | Htable[j].lo = V.hi << 32|V.hi >> 32; | ||
103 | } | ||
104 | #endif | ||
105 | } | ||
106 | #endif | ||
107 | } | 85 | } |
108 | 86 | ||
109 | #ifndef GHASH_ASM | 87 | #ifndef GHASH_ASM |