mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-10 22:40:49 +02:00
ba3fd1203b
The aes.rounds-validity check that returns KEYUSAGE_E lives only in the pure-C block encrypt (AesEncryptBlocks_C). On ARMv8 with crypto extensions, --enable-all auto-enables WOLFSSL_ARMASM, whose asm wc_AesEncrypt bypasses that check, so corrupting aes.rounds no longer fails the op (returns 0). This broke the SetKey/CTR/CFB/OFB/CCM/CMAC rounds-corruption assertions on the arm64 CI runners. Extend WC_TEST_AES_ROUNDS_OFFLOADED to also cover WOLFSSL_ARMASM (joining WOLF_CRYPTO_CB_FIND / WOLF_CRYPTO_CB_ONLY_AES). MC/DC of that decision is still obtained from the pure-C configs in the variant union. x86 (incl. AES-NI, which does validate rounds) is unaffected.
Before creating any new configure files (.conf) read the CONF_FILES_README.md