Skip to content

Fix compile issue with aarch64#373

Merged
ColtonWilley merged 2 commits intowolfSSL:masterfrom
padelsbach:wp-aarch64-compile
Mar 11, 2026
Merged

Fix compile issue with aarch64#373
ColtonWilley merged 2 commits intowolfSSL:masterfrom
padelsbach:wp-aarch64-compile

Conversation

@padelsbach
Copy link
Contributor

@padelsbach padelsbach commented Mar 11, 2026

Fixes this compile issue in test_cmac.c and test_gmac.c due to name collision with OpenSSL symbol with the same name

/git/wolfProvider/scripts/../wolfssl-install/include/wolfssl/wolfcrypt/aes.h:905:20: error: conflicting types for ‘AES_set_encrypt_key’; have ‘void(const unsigned char *, word32,  unsigned char *)’ {aka ‘void(const unsigned char *, unsigned int,  unsigned char *)’}
  905 | WOLFSSL_LOCAL void AES_set_encrypt_key(const unsigned char* key, word32 len,

This is only an issue in aarch64 with armasm. From wolfssl/wolfcrypt/aes.h:

#if defined(WOLFSSL_ARMASM)
#if defined(__aarch64__) || defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
WOLFSSL_LOCAL void AES_set_encrypt_key(const unsigned char* key, word32 len,
    unsigned char* ks);

@padelsbach padelsbach force-pushed the wp-aarch64-compile branch 2 times, most recently from 5d994f9 to a1254a7 Compare March 11, 2026 20:13
@padelsbach padelsbach changed the title Wp aarch64 compile Fix compile issue with aarch64 Mar 11, 2026
@padelsbach padelsbach marked this pull request as ready for review March 11, 2026 23:22
@ColtonWilley ColtonWilley merged commit 5c9dc05 into wolfSSL:master Mar 11, 2026
389 of 391 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants