riscv: Fix mispelling of extension test macro
authorGrant Nichol <me@grantnichol.com>
Sat, 23 Dec 2023 05:46:39 +0000 (23:46 -0600)
committerTomas Mraz <tomas@openssl.org>
Tue, 2 Jan 2024 10:39:18 +0000 (11:39 +0100)
When refactoring the riscv extension test macros,
RISCV_HAS_ZKND_AND_ZKNE was mispelled.

CLA: trivial

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23139)

providers/implementations/ciphers/cipher_aes_xts_hw.c

index b35b71020ed905438ab4712de5f1c3931741e29d..cef1a05c596273c78003a0f61eab50d294816789 100644 (file)
@@ -285,7 +285,7 @@ static const PROV_CIPHER_HW aes_xts_rv32i_zbkb_zknd_zkne = {                   \
 # define PROV_CIPHER_HW_select_xts()                                           \
 if (RISCV_HAS_ZBKB_AND_ZKND_AND_ZKNE())                                        \
     return &aes_xts_rv32i_zbkb_zknd_zkne;                                      \
-if (RISCV_HAS_ZKND_ZKNE())                                                     \
+if (RISCV_HAS_ZKND_AND_ZKNE())                                                 \
     return &aes_xts_rv32i_zknd_zkne;
 # else
 /* The generic case */