Skip to content

Commit 0bdf8b5

Browse files
committed
wolfssl/wolfcrypt/sha3.h: in asm prototypes section, snip out redundant prototypes for BlockSha3(), and add indentation for clarity.
1 parent 8256e42 commit 0bdf8b5

1 file changed

Lines changed: 14 additions & 18 deletions

File tree

wolfssl/wolfcrypt/sha3.h

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -223,26 +223,22 @@ WOLFSSL_API int wc_Shake256_Copy(wc_Shake* src, wc_Sha3* dst);
223223
WOLFSSL_LOCAL void BlockSha3(word64 *s);
224224

225225
#ifdef WC_SHA3_NO_ASM
226-
/* asm speedups disabled */
227-
#if defined(USE_INTEL_SPEEDUP) && !defined(WC_MLKEM_NO_ASM)
228-
/* native ML-KEM uses this directly. */
229-
WOLFSSL_LOCAL void sha3_blocksx4_avx2(word64* s);
230-
#endif
226+
/* asm speedups disabled */
227+
#if defined(USE_INTEL_SPEEDUP) && !defined(WC_MLKEM_NO_ASM)
228+
/* native ML-KEM uses this directly. */
229+
WOLFSSL_LOCAL void sha3_blocksx4_avx2(word64* s);
230+
#endif
231231
#elif defined(USE_INTEL_SPEEDUP)
232-
WOLFSSL_LOCAL void sha3_block_n_bmi2(word64* s, const byte* data, word32 n,
233-
word64 c);
234-
WOLFSSL_LOCAL void sha3_block_bmi2(word64* s);
235-
WOLFSSL_LOCAL void sha3_block_avx2(word64* s);
236-
WOLFSSL_LOCAL void sha3_blocksx4_avx2(word64* s);
237-
WOLFSSL_LOCAL void BlockSha3(word64 *s);
232+
WOLFSSL_LOCAL void sha3_block_n_bmi2(word64* s, const byte* data, word32 n,
233+
word64 c);
234+
WOLFSSL_LOCAL void sha3_block_bmi2(word64* s);
235+
WOLFSSL_LOCAL void sha3_block_avx2(word64* s);
236+
WOLFSSL_LOCAL void sha3_blocksx4_avx2(word64* s);
238237
#elif defined(__aarch64__) && defined(WOLFSSL_ARMASM)
239-
#ifdef WOLFSSL_ARMASM_CRYPTO_SHA3
240-
WOLFSSL_LOCAL void BlockSha3_crypto(word64 *s);
241-
#endif
242-
WOLFSSL_LOCAL void BlockSha3_base(word64 *s);
243-
WOLFSSL_LOCAL void BlockSha3(word64 *s);
244-
#elif defined(WOLFSSL_ARMASM) || defined(WOLFSSL_RISCV_ASM)
245-
WOLFSSL_LOCAL void BlockSha3(word64 *s);
238+
#ifdef WOLFSSL_ARMASM_CRYPTO_SHA3
239+
WOLFSSL_LOCAL void BlockSha3_crypto(word64 *s);
240+
#endif
241+
WOLFSSL_LOCAL void BlockSha3_base(word64 *s);
246242
#endif
247243

248244
#ifdef __cplusplus

0 commit comments

Comments
 (0)