Skip to content

Commit b839db6

Browse files
committed
fips: enable aes self tests only on x86 and aarch64
Since AES has no base aliases available for noarch, `aes_self_tests` will cause a link failure on non-x86 and non-aarch64 platforms. Signed-off-by: Julian Zhu <[email protected]>
1 parent 4b68374 commit b839db6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fips/Makefile.am

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
src_include += -I $(srcdir)/fips
3131
extern_hdrs += include/isal_crypto_api.h include/aes_xts.h include/aes_keyexp.h include/sha1_mb.h include/sha256_mb.h
3232

33-
lsrc_x86_64 += fips/self_tests.c
34-
lsrc_aarch64 += fips/self_tests_generic.c
35-
lsrc += fips/aes_self_tests.c
33+
lsrc_x86_64 += fips/self_tests.c fips/aes_self_tests.c
34+
lsrc_aarch64 += fips/self_tests_generic.c fips/aes_self_tests.c
3635
lsrc += fips/sha_self_tests.c
3736

3837
lsrc_x86_64 += fips/asm_self_tests.asm

0 commit comments

Comments
 (0)