diff --git a/wolfcrypt/src/port/riscv/riscv-64-sha3.c b/wolfcrypt/src/port/riscv/riscv-64-sha3.c index 45722269fd..e6e73dd552 100644 --- a/wolfcrypt/src/port/riscv/riscv-64-sha3.c +++ b/wolfcrypt/src/port/riscv/riscv-64-sha3.c @@ -27,8 +27,9 @@ #include #include +#ifdef WOLFSSL_RISCV_ASM #if defined(WOLFSSL_SHA3) && !defined(WOLFSSL_XILINX_CRYPT) && \ - !defined(WOLFSSL_AFALG_XILINX_SHA3) + !defined(WOLFSSL_AFALG_XILINX_SHA3) #if FIPS_VERSION3_GE(2,0,0) /* set NO_WRAPPERS before headers, use direct internal f()s not wrappers */ @@ -857,7 +858,6 @@ void BlockSha3(word64* s) ); } -#endif - -#endif - +#endif /* WOLFSSL_RISCV_VECTOR */ +#endif /* WOLFSSL_SHA3 && !XILINX */ +#endif /* WOLFSSL_RISCV_ASM */