Skip to content

Commit

Permalink
Fix detection for riscv64/riscv32
Browse files Browse the repository at this point in the history
Fixes #22871

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from #22881)
  • Loading branch information
mattcaswell committed Dec 12, 2023
1 parent e46a6b1 commit ff27959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/implementations/ciphers/cipher_aes_ccm_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ static const PROV_CCM_HW aes_ccm = {
# include "cipher_aes_ccm_hw_aesni.inc"
#elif defined(SPARC_AES_CAPABLE)
# include "cipher_aes_ccm_hw_t4.inc"
#elif defined(__riscv) && __riscv_xlen == 64
#elif defined(OPENSSL_CPUID_OBJ) && defined(__riscv) && __riscv_xlen == 64
# include "cipher_aes_ccm_hw_rv64i.inc"
#elif defined(__riscv) && __riscv_xlen == 32
#elif defined(OPENSSL_CPUID_OBJ) && defined(__riscv) && __riscv_xlen == 32
# include "cipher_aes_ccm_hw_rv32i.inc"
#else
const PROV_CCM_HW *ossl_prov_aes_hw_ccm(size_t keybits)
Expand Down

0 comments on commit ff27959

Please sign in to comment.