2011-04-26 17:45:41 -07:00
|
|
|
# vim:ft=automake
|
|
|
|
|
# included from Top Level Makefile.am
|
|
|
|
|
# All paths should be given relative to the root
|
|
|
|
|
|
2022-02-10 13:13:24 -08:00
|
|
|
FIPS_FILES = \
|
|
|
|
|
wolfcrypt/src/async.c \
|
|
|
|
|
wolfcrypt/src/fips.c \
|
|
|
|
|
wolfcrypt/src/fips_test.c \
|
|
|
|
|
wolfcrypt/src/selftest.c \
|
|
|
|
|
wolfcrypt/src/wolfcrypt_first.c \
|
|
|
|
|
wolfcrypt/src/wolfcrypt_last.c
|
Fix for make distcheck, maintainer-clean, to allow distribution builds.
This the second pass at this after seeing how fips is added to tree in later phases.
This allow autoreconf to be directly called which allows the Makefile to rebuild when seeing that changes have been ( having an autogen.sh is older convention which left to history in the way autotools are invoked )
This fixes "make distcheck" and "make maintainer-clean" which are required by most distributions packaging systems.
The files previously touched by autogen.sh are now properly placed into autoconf.
The include files files are generated by configure. ( There is a note placed in configure.ac as to why and reference to the automake documention for this ). Append to file was done on purpose, touch cannot be in configure safetly. Normally autoheader would be used for this but since the include files are created out of tree, care has to be taken to not overwrite those file.
For the source files, they were moved into the coresponding automake file. It is safe to use touch in automake. Since files can optionally copied from elsewhere, they have to be listed in BUILT_SOURCES. They are written srcdir in order to allow make to do VPATH builds ( which is configure by make distcheck ).
To show fips files are preserved without having the actual fips files, a C style comment can be echoed into the files.
There are a few current, but outstanding issues.
1) config.h needs to be fixed configure.ac to use autoheader in order to allow configure to know to rebuilt depencies on its changes. ( Out of scope for this patch. )
2) verion.h checked into the tree and it is a built file. A make maintainer-clean followed by "git status --ignored" will confirm this. ( Out of scope for this patch )
3) autogen.sh has not been updated to reflect fixes. I believe that for this patch, it should be left alone and checked for regression in Jenkins by itself.
4) There is an out of date .spec file for building RPM which should be updated now that distcheck is working.
5) maintainer-clean should have rule added to remove build-aux testdriver.
This has been tested on current Ubuntu testing, OSX, Fedora 34, and Debian 10.
Additionaly "make distcheck" should be added to regression testing, along with "make maintainer-check".
Other improvement possibilities:
A possible future improvement is to let autoconf handle build with optional out of dist files.
Modify fips configure.ac check to allow for an injection of comments into blank fips files in order to prove distribution of fips/non-fips builds.
Update git rules to use 'make maintainer-clean', 'autoreconf -if', 'make distcheck'.
2021-06-19 20:16:14 -07:00
|
|
|
|
2022-02-10 13:13:24 -08:00
|
|
|
BUILT_SOURCES+= $(FIPS_FILES)
|
Fix for make distcheck, maintainer-clean, to allow distribution builds.
This the second pass at this after seeing how fips is added to tree in later phases.
This allow autoreconf to be directly called which allows the Makefile to rebuild when seeing that changes have been ( having an autogen.sh is older convention which left to history in the way autotools are invoked )
This fixes "make distcheck" and "make maintainer-clean" which are required by most distributions packaging systems.
The files previously touched by autogen.sh are now properly placed into autoconf.
The include files files are generated by configure. ( There is a note placed in configure.ac as to why and reference to the automake documention for this ). Append to file was done on purpose, touch cannot be in configure safetly. Normally autoheader would be used for this but since the include files are created out of tree, care has to be taken to not overwrite those file.
For the source files, they were moved into the coresponding automake file. It is safe to use touch in automake. Since files can optionally copied from elsewhere, they have to be listed in BUILT_SOURCES. They are written srcdir in order to allow make to do VPATH builds ( which is configure by make distcheck ).
To show fips files are preserved without having the actual fips files, a C style comment can be echoed into the files.
There are a few current, but outstanding issues.
1) config.h needs to be fixed configure.ac to use autoheader in order to allow configure to know to rebuilt depencies on its changes. ( Out of scope for this patch. )
2) verion.h checked into the tree and it is a built file. A make maintainer-clean followed by "git status --ignored" will confirm this. ( Out of scope for this patch )
3) autogen.sh has not been updated to reflect fixes. I believe that for this patch, it should be left alone and checked for regression in Jenkins by itself.
4) There is an out of date .spec file for building RPM which should be updated now that distcheck is working.
5) maintainer-clean should have rule added to remove build-aux testdriver.
This has been tested on current Ubuntu testing, OSX, Fedora 34, and Debian 10.
Additionaly "make distcheck" should be added to regression testing, along with "make maintainer-check".
Other improvement possibilities:
A possible future improvement is to let autoconf handle build with optional out of dist files.
Modify fips configure.ac check to allow for an injection of comments into blank fips files in order to prove distribution of fips/non-fips builds.
Update git rules to use 'make maintainer-clean', 'autoreconf -if', 'make distcheck'.
2021-06-19 20:16:14 -07:00
|
|
|
|
2022-02-10 13:13:24 -08:00
|
|
|
MAINTAINERCLEANFILES+= $(FIPS_FILES)
|
Fix for make distcheck, maintainer-clean, to allow distribution builds.
This the second pass at this after seeing how fips is added to tree in later phases.
This allow autoreconf to be directly called which allows the Makefile to rebuild when seeing that changes have been ( having an autogen.sh is older convention which left to history in the way autotools are invoked )
This fixes "make distcheck" and "make maintainer-clean" which are required by most distributions packaging systems.
The files previously touched by autogen.sh are now properly placed into autoconf.
The include files files are generated by configure. ( There is a note placed in configure.ac as to why and reference to the automake documention for this ). Append to file was done on purpose, touch cannot be in configure safetly. Normally autoheader would be used for this but since the include files are created out of tree, care has to be taken to not overwrite those file.
For the source files, they were moved into the coresponding automake file. It is safe to use touch in automake. Since files can optionally copied from elsewhere, they have to be listed in BUILT_SOURCES. They are written srcdir in order to allow make to do VPATH builds ( which is configure by make distcheck ).
To show fips files are preserved without having the actual fips files, a C style comment can be echoed into the files.
There are a few current, but outstanding issues.
1) config.h needs to be fixed configure.ac to use autoheader in order to allow configure to know to rebuilt depencies on its changes. ( Out of scope for this patch. )
2) verion.h checked into the tree and it is a built file. A make maintainer-clean followed by "git status --ignored" will confirm this. ( Out of scope for this patch )
3) autogen.sh has not been updated to reflect fixes. I believe that for this patch, it should be left alone and checked for regression in Jenkins by itself.
4) There is an out of date .spec file for building RPM which should be updated now that distcheck is working.
5) maintainer-clean should have rule added to remove build-aux testdriver.
This has been tested on current Ubuntu testing, OSX, Fedora 34, and Debian 10.
Additionaly "make distcheck" should be added to regression testing, along with "make maintainer-check".
Other improvement possibilities:
A possible future improvement is to let autoconf handle build with optional out of dist files.
Modify fips configure.ac check to allow for an injection of comments into blank fips files in order to prove distribution of fips/non-fips builds.
Update git rules to use 'make maintainer-clean', 'autoreconf -if', 'make distcheck'.
2021-06-19 20:16:14 -07:00
|
|
|
|
2022-03-14 13:21:03 +10:00
|
|
|
EXTRA_DIST += src/bio.c
|
|
|
|
|
EXTRA_DIST += src/conf.c
|
2022-05-13 11:06:01 +10:00
|
|
|
EXTRA_DIST += src/pk.c
|
2023-03-22 15:46:50 +10:00
|
|
|
EXTRA_DIST += src/ssl_asn1.c
|
2023-03-06 14:17:25 +10:00
|
|
|
EXTRA_DIST += src/ssl_bn.c
|
2023-07-07 08:54:22 +10:00
|
|
|
EXTRA_DIST += src/ssl_certman.c
|
2023-10-31 10:03:21 +10:00
|
|
|
EXTRA_DIST += src/ssl_crypto.c
|
2024-03-05 11:02:45 +10:00
|
|
|
EXTRA_DIST += src/ssl_load.c
|
2023-03-06 14:17:25 +10:00
|
|
|
EXTRA_DIST += src/ssl_misc.c
|
2024-03-05 11:02:45 +10:00
|
|
|
EXTRA_DIST += src/ssl_p7p12.c
|
|
|
|
|
EXTRA_DIST += src/ssl_sess.c
|
2022-04-06 17:25:26 +10:00
|
|
|
EXTRA_DIST += src/x509.c
|
2022-03-23 13:59:54 +10:00
|
|
|
EXTRA_DIST += src/x509_str.c
|
2022-03-14 13:21:03 +10:00
|
|
|
|
2022-02-10 13:13:24 -08:00
|
|
|
$(FIPS_FILES):
|
|
|
|
|
$(AM_V_at)touch $(srcdir)/$@
|
Fix for make distcheck, maintainer-clean, to allow distribution builds.
This the second pass at this after seeing how fips is added to tree in later phases.
This allow autoreconf to be directly called which allows the Makefile to rebuild when seeing that changes have been ( having an autogen.sh is older convention which left to history in the way autotools are invoked )
This fixes "make distcheck" and "make maintainer-clean" which are required by most distributions packaging systems.
The files previously touched by autogen.sh are now properly placed into autoconf.
The include files files are generated by configure. ( There is a note placed in configure.ac as to why and reference to the automake documention for this ). Append to file was done on purpose, touch cannot be in configure safetly. Normally autoheader would be used for this but since the include files are created out of tree, care has to be taken to not overwrite those file.
For the source files, they were moved into the coresponding automake file. It is safe to use touch in automake. Since files can optionally copied from elsewhere, they have to be listed in BUILT_SOURCES. They are written srcdir in order to allow make to do VPATH builds ( which is configure by make distcheck ).
To show fips files are preserved without having the actual fips files, a C style comment can be echoed into the files.
There are a few current, but outstanding issues.
1) config.h needs to be fixed configure.ac to use autoheader in order to allow configure to know to rebuilt depencies on its changes. ( Out of scope for this patch. )
2) verion.h checked into the tree and it is a built file. A make maintainer-clean followed by "git status --ignored" will confirm this. ( Out of scope for this patch )
3) autogen.sh has not been updated to reflect fixes. I believe that for this patch, it should be left alone and checked for regression in Jenkins by itself.
4) There is an out of date .spec file for building RPM which should be updated now that distcheck is working.
5) maintainer-clean should have rule added to remove build-aux testdriver.
This has been tested on current Ubuntu testing, OSX, Fedora 34, and Debian 10.
Additionaly "make distcheck" should be added to regression testing, along with "make maintainer-check".
Other improvement possibilities:
A possible future improvement is to let autoconf handle build with optional out of dist files.
Modify fips configure.ac check to allow for an injection of comments into blank fips files in order to prove distribution of fips/non-fips builds.
Update git rules to use 'make maintainer-clean', 'autoreconf -if', 'make distcheck'.
2021-06-19 20:16:14 -07:00
|
|
|
|
2020-08-28 17:25:25 -05:00
|
|
|
if !BUILD_NO_LIBRARY
|
2022-12-15 10:37:10 -07:00
|
|
|
lib_LTLIBRARIES+= src/libwolfssl@LIBSUFFIX@.la
|
2020-08-28 17:25:25 -05:00
|
|
|
endif
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES =
|
2024-03-21 03:33:39 +07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_LDFLAGS = ${AM_LDFLAGS} -no-undefined -version-number ${WOLFSSL_LIBRARY_VERSION}
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_LIBADD = $(LIBM) $(LIB_ADD) $(LIB_STATIC_ADD)
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_CFLAGS = -DBUILDING_WOLFSSL $(AM_CFLAGS) -DLIBWOLFSSL_GLOBAL_EXTRA_CFLAGS="\" $(EXTRA_CFLAGS)\""
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_CPPFLAGS = -DBUILDING_WOLFSSL $(AM_CPPFLAGS)
|
2011-04-26 17:45:41 -07:00
|
|
|
|
2014-11-07 13:09:32 -08:00
|
|
|
if BUILD_FIPS
|
2019-06-19 16:51:51 -07:00
|
|
|
|
|
|
|
|
if BUILD_FIPS_V2
|
2018-02-01 11:02:35 -08:00
|
|
|
# FIPSv2 first file
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
2020-10-12 16:06:20 -07:00
|
|
|
wolfcrypt/src/wolfcrypt_first.c
|
2018-02-01 11:02:35 -08:00
|
|
|
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
2018-02-01 11:02:35 -08:00
|
|
|
wolfcrypt/src/hmac.c \
|
|
|
|
|
wolfcrypt/src/random.c \
|
|
|
|
|
wolfcrypt/src/sha256.c
|
|
|
|
|
|
|
|
|
|
if BUILD_RSA
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/rsa.c
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ECC
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ecc.c
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_AES
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes.c
|
2024-04-23 11:26:27 -04:00
|
|
|
if BUILD_CUDA
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/cuda/aes-cuda.cu
|
|
|
|
|
endif BUILD_CUDA
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
|
|
|
|
|
2018-02-09 09:54:34 -08:00
|
|
|
if BUILD_AESNI
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_asm.S
|
2022-09-30 16:19:40 +10:00
|
|
|
if BUILD_X86_ASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_gcm_x86_asm.S
|
2022-09-30 16:19:40 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S
|
2023-09-28 09:25:37 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_xts_asm.S
|
2019-08-23 10:22:31 -07:00
|
|
|
endif
|
2022-09-30 16:19:40 +10:00
|
|
|
endif
|
2018-02-09 09:54:34 -08:00
|
|
|
|
2018-02-01 11:02:35 -08:00
|
|
|
if BUILD_DES3
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/des3.c
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha.c
|
2020-10-16 12:32:02 +10:00
|
|
|
endif
|
|
|
|
|
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2019-08-23 10:22:31 -07:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha256_asm.S
|
2019-08-23 10:22:31 -07:00
|
|
|
endif
|
2024-03-14 11:21:46 +10:00
|
|
|
endif
|
2018-02-01 11:02:35 -08:00
|
|
|
|
|
|
|
|
if BUILD_SHA512
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha512.c
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2019-08-23 10:22:31 -07:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha512_asm.S
|
2019-08-23 10:22:31 -07:00
|
|
|
endif
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
2024-03-14 11:21:46 +10:00
|
|
|
endif
|
2018-02-01 11:02:35 -08:00
|
|
|
|
|
|
|
|
if BUILD_SHA3
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha3.c
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2022-09-01 15:07:15 +10:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha3_asm.S
|
2022-09-01 15:07:15 +10:00
|
|
|
endif
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
2024-03-14 11:21:46 +10:00
|
|
|
endif
|
2018-02-01 11:02:35 -08:00
|
|
|
|
|
|
|
|
if BUILD_DH
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/dh.c
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CMAC
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/cmac.c
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
|
|
|
|
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fips.c \
|
2018-02-01 11:02:35 -08:00
|
|
|
wolfcrypt/src/fips_test.c
|
|
|
|
|
|
|
|
|
|
# fips last file
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wolfcrypt_last.c
|
2020-10-21 11:58:38 -07:00
|
|
|
endif BUILD_FIPS_V2
|
2019-06-19 16:51:51 -07:00
|
|
|
|
|
|
|
|
if BUILD_FIPS_RAND
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
2019-06-19 16:51:51 -07:00
|
|
|
wolfcrypt/src/wolfcrypt_first.c \
|
|
|
|
|
wolfcrypt/src/hmac.c \
|
|
|
|
|
wolfcrypt/src/random.c \
|
|
|
|
|
wolfcrypt/src/sha256.c \
|
2019-06-24 15:40:05 -07:00
|
|
|
wolfcrypt/src/sha256_asm.S \
|
2019-06-19 16:51:51 -07:00
|
|
|
wolfcrypt/src/fips.c \
|
|
|
|
|
wolfcrypt/src/fips_test.c \
|
|
|
|
|
wolfcrypt/src/wolfcrypt_last.c
|
2019-06-24 15:40:05 -07:00
|
|
|
endif BUILD_FIPS_RAND
|
2019-06-19 16:51:51 -07:00
|
|
|
|
2021-03-26 14:56:55 -07:00
|
|
|
if BUILD_FIPS_V5
|
2020-10-12 16:06:20 -07:00
|
|
|
# FIPS 140-3 first file
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
2020-10-12 16:06:20 -07:00
|
|
|
wolfcrypt/src/wolfcrypt_first.c
|
|
|
|
|
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
2020-10-12 16:06:20 -07:00
|
|
|
wolfcrypt/src/hmac.c \
|
2022-07-06 17:37:43 -05:00
|
|
|
wolfcrypt/src/random.c
|
2020-10-12 16:06:20 -07:00
|
|
|
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/kdf.c
|
2021-04-02 13:57:52 -07:00
|
|
|
|
2020-10-12 16:06:20 -07:00
|
|
|
if BUILD_RSA
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/rsa.c
|
2020-10-12 16:06:20 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ECC
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ecc.c
|
2020-10-12 16:06:20 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_AES
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes.c
|
2024-04-23 11:26:27 -04:00
|
|
|
if BUILD_CUDA
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/cuda/aes-cuda.cu
|
|
|
|
|
endif BUILD_CUDA
|
2023-08-29 09:16:09 -07:00
|
|
|
if BUILD_ARMASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-aes.c
|
2023-08-29 09:16:09 -07:00
|
|
|
endif BUILD_ARMASM
|
2023-08-25 13:40:15 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-10-05 16:33:52 +10:00
|
|
|
if !BUILD_ARMASM_CRYPTO
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm_c.c
|
|
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif !BUILD_ARMASM_CRYPTO
|
2023-08-25 13:40:15 +10:00
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm_c.c
|
2023-08-25 13:40:15 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-aes-asm_c.c
|
|
|
|
|
else
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm.S
|
2023-08-25 13:40:15 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-aes-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif BUILD_ARMASM
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
2020-10-12 16:06:20 -07:00
|
|
|
|
|
|
|
|
if BUILD_AESNI
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_asm.S
|
2022-09-30 16:19:40 +10:00
|
|
|
if BUILD_X86_ASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_gcm_x86_asm.S
|
2022-09-30 16:19:40 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S
|
2023-09-28 09:25:37 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_xts_asm.S
|
2020-10-12 16:06:20 -07:00
|
|
|
endif
|
2022-09-30 16:19:40 +10:00
|
|
|
endif
|
2020-10-12 16:06:20 -07:00
|
|
|
|
2024-05-22 19:07:02 +10:00
|
|
|
if BUILD_RISCV_ASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/riscv/riscv-64-aes.c
|
|
|
|
|
endif BUILD_RISCV_ASM
|
|
|
|
|
endif BUILD_AES
|
|
|
|
|
|
2020-10-12 16:06:20 -07:00
|
|
|
if BUILD_SHA
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha.c
|
2020-10-12 16:06:20 -07:00
|
|
|
endif
|
|
|
|
|
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha256.c
|
2022-05-18 16:23:48 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm_c.c
|
2022-05-18 16:23:48 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha256.c
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm_c.c
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha256-asm_c.c
|
|
|
|
|
else
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha256-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
2022-07-06 17:37:43 -05:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha256.c
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2020-10-12 16:06:20 -07:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha256_asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif BUILD_INTELASM
|
2024-03-14 11:21:46 +10:00
|
|
|
endif !BUILD_X86_ASM
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
2020-10-12 16:06:20 -07:00
|
|
|
|
|
|
|
|
if BUILD_SHA512
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512.c
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm_c.c
|
2022-02-07 09:20:49 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512.c
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm_c.c
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha512-asm_c.c
|
|
|
|
|
else
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha512-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
2022-07-06 17:37:43 -05:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha512.c
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2020-10-12 16:06:20 -07:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha512_asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif BUILD_INTELASM
|
2024-03-14 11:21:46 +10:00
|
|
|
endif !BUILD_X86_ASM
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
|
|
|
|
endif BUILD_SHA512
|
2020-10-12 16:06:20 -07:00
|
|
|
|
|
|
|
|
if BUILD_SHA3
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha3.c
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm_c.c
|
2022-02-07 09:20:49 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif BUILD_ARMASM_NEON
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2022-09-01 15:07:15 +10:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha3_asm.S
|
2022-09-01 15:07:15 +10:00
|
|
|
endif
|
2020-10-12 16:06:20 -07:00
|
|
|
endif
|
2024-03-14 11:21:46 +10:00
|
|
|
endif
|
2020-10-12 16:06:20 -07:00
|
|
|
|
|
|
|
|
if BUILD_DH
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/dh.c
|
2020-10-12 16:06:20 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CMAC
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/cmac.c
|
2020-10-12 16:06:20 -07:00
|
|
|
endif
|
|
|
|
|
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fips.c \
|
2020-10-12 16:06:20 -07:00
|
|
|
wolfcrypt/src/fips_test.c
|
|
|
|
|
|
|
|
|
|
# fips last file
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wolfcrypt_last.c
|
2021-03-26 14:56:55 -07:00
|
|
|
endif BUILD_FIPS_V5
|
2020-10-12 16:06:20 -07:00
|
|
|
|
2024-03-01 19:40:27 -05:00
|
|
|
if BUILD_FIPS_V6
|
|
|
|
|
# FIPS 140-3 SRTP-KDF first file
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
|
|
|
|
wolfcrypt/src/wolfcrypt_first.c
|
|
|
|
|
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
|
|
|
|
wolfcrypt/src/hmac.c \
|
|
|
|
|
wolfcrypt/src/random.c
|
|
|
|
|
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/kdf.c
|
|
|
|
|
|
|
|
|
|
if BUILD_RSA
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/rsa.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ECC
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ecc.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_AES
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes.c
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-aes.c
|
|
|
|
|
endif BUILD_ARMASM
|
|
|
|
|
if BUILD_ARMASM_NEON
|
|
|
|
|
if !BUILD_ARMASM_CRYPTO
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif !BUILD_ARMASM_CRYPTO
|
|
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-aes-asm_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-aes-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif BUILD_ARMASM
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
|
|
|
|
endif BUILD_AES
|
|
|
|
|
|
|
|
|
|
if BUILD_AESNI
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_asm.S
|
|
|
|
|
if BUILD_X86_ASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_gcm_x86_asm.S
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_xts_asm.S
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ARMASM_NEON
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha256.c
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha256.c
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha256-asm_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha256-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha256.c
|
|
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha256_asm.S
|
|
|
|
|
endif BUILD_INTELASM
|
|
|
|
|
endif !BUILD_ARMASM
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA512
|
|
|
|
|
if BUILD_ARMASM_NEON
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512.c
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512.c
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha512-asm_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha512-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha512.c
|
|
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha512_asm.S
|
|
|
|
|
endif BUILD_INTELASM
|
|
|
|
|
endif !BUILD_ARMASM
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
|
|
|
|
endif BUILD_SHA512
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA3
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha3.c
|
|
|
|
|
if BUILD_ARMASM_NEON
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif BUILD_ARMASM_NEON
|
|
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha3_asm.S
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_DH
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/dh.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CMAC
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/cmac.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CURVE448
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/curve448.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ED448
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ed448.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CURVE25519
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/curve25519.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ED25519
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ed25519.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
if BUILD_ARMASM_NEON
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-curve25519_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-curve25519.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
|
|
|
|
endif BUILD_ARMASM
|
|
|
|
|
|
|
|
|
|
if BUILD_PWDBASED
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/pwdbased.c
|
|
|
|
|
endif BUILD_PWDBASED
|
|
|
|
|
|
|
|
|
|
if BUILD_SP
|
|
|
|
|
if BUILD_SP_C32
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_c32.c
|
|
|
|
|
endif
|
|
|
|
|
if BUILD_SP_C64
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_c64.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SP_X86_64
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_x86_64.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_x86_64_asm.S
|
|
|
|
|
endif
|
|
|
|
|
if !BUILD_FIPS_V2
|
|
|
|
|
if BUILD_SP_ARM32
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_arm32.c
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
if BUILD_SP_ARM_THUMB
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_armthumb.c
|
|
|
|
|
endif
|
|
|
|
|
if !BUILD_FIPS_V2
|
|
|
|
|
if BUILD_SP_ARM64
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_arm64.c
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
if BUILD_SP_ARM_CORTEX
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_cortexm.c
|
|
|
|
|
endif
|
|
|
|
|
endif BUILD_SP
|
|
|
|
|
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fips.c \
|
|
|
|
|
wolfcrypt/src/fips_test.c
|
|
|
|
|
|
|
|
|
|
# fips last file
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wolfcrypt_last.c
|
|
|
|
|
endif BUILD_FIPS_V6
|
|
|
|
|
|
|
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif BUILD_FIPS
|
|
|
|
|
|
|
|
|
|
# For wolfRand, exclude everything else.
|
|
|
|
|
if !BUILD_FIPS_RAND
|
2018-02-01 11:02:35 -08:00
|
|
|
|
|
|
|
|
# For FIPSV2, exclude the wolfCrypt files included above.
|
2019-06-19 16:51:51 -07:00
|
|
|
# For wolfRand, exclude just a couple files.
|
2018-02-01 11:02:35 -08:00
|
|
|
# For old FIPS, keep the wolfCrypt versions of the
|
|
|
|
|
# CtaoCrypt files included above.
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2022-01-05 11:06:25 -08:00
|
|
|
if BUILD_HMAC
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/hmac.c
|
2022-01-05 11:06:25 -08:00
|
|
|
endif
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2014-12-31 13:37:51 -07:00
|
|
|
|
2018-02-22 16:17:08 -07:00
|
|
|
# CAVP self test
|
|
|
|
|
if BUILD_SELFTEST
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/selftest.c
|
2018-02-22 16:17:08 -07:00
|
|
|
endif
|
|
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_FIPS_RAND
|
|
|
|
|
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/hash.c
|
2022-01-05 11:06:25 -08:00
|
|
|
|
|
|
|
|
if !BUILD_DO178
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/cpuid.c
|
2022-01-05 11:06:25 -08:00
|
|
|
endif !BUILD_DO178
|
2014-12-31 15:20:53 -07:00
|
|
|
|
2019-06-19 16:51:51 -07:00
|
|
|
if !BUILD_FIPS_RAND
|
2019-06-24 15:40:05 -07:00
|
|
|
|
2021-04-02 13:57:52 -07:00
|
|
|
if !BUILD_FIPS_V5
|
2024-03-01 19:40:27 -05:00
|
|
|
if !BUILD_FIPS_V6
|
2022-01-05 11:06:25 -08:00
|
|
|
if BUILD_KDF
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/kdf.c
|
2022-01-05 11:06:25 -08:00
|
|
|
endif
|
2024-03-01 19:40:27 -05:00
|
|
|
endif !BUILD_FIPS_V6
|
2021-04-02 13:57:52 -07:00
|
|
|
endif !BUILD_FIPS_V5
|
|
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2016-10-31 16:51:02 -06:00
|
|
|
if BUILD_RNG
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/random.c
|
2016-10-31 16:51:02 -06:00
|
|
|
endif
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2016-10-31 16:51:02 -06:00
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha256.c
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha256.c
|
2022-05-18 16:23:48 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm_c.c
|
2022-05-18 16:23:48 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha256.c
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm_c.c
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha256-asm_c.c
|
|
|
|
|
else
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha256-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha256-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
2016-07-22 15:49:15 +00:00
|
|
|
else
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2019-01-25 12:03:08 +10:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha256_asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif BUILD_INTELASM
|
2024-03-14 11:21:46 +10:00
|
|
|
endif !BUILD_X86_ASM
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2016-07-22 15:49:15 +00:00
|
|
|
|
2018-07-18 17:26:25 -06:00
|
|
|
if BUILD_AFALG
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/af_alg/afalg_hash.c
|
2018-07-18 17:26:25 -06:00
|
|
|
endif
|
|
|
|
|
|
2021-08-19 11:25:59 +10:00
|
|
|
if BUILD_KCAPI
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_aes.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_hash.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_hmac.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_ecc.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_rsa.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_dh.c
|
2021-08-19 11:25:59 +10:00
|
|
|
endif
|
|
|
|
|
|
2016-08-15 13:59:41 -06:00
|
|
|
if BUILD_WOLFEVENT
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wolfevent.c
|
2016-08-15 13:59:41 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ASYNCCRYPT
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/async.c
|
2016-08-15 13:59:41 -06:00
|
|
|
endif
|
|
|
|
|
|
2014-12-31 13:37:51 -07:00
|
|
|
if BUILD_RSA
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/rsa.c
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2015-09-28 10:06:30 -06:00
|
|
|
endif
|
2018-03-05 16:18:44 +10:00
|
|
|
|
2020-09-18 17:04:26 -07:00
|
|
|
if BUILD_RC2
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/rc2.c
|
2020-09-18 17:04:26 -07:00
|
|
|
endif
|
|
|
|
|
|
2024-03-01 19:40:27 -05:00
|
|
|
if !BUILD_FIPS_V6
|
2017-08-10 17:27:22 +10:00
|
|
|
if BUILD_SP
|
2022-01-05 11:06:25 -08:00
|
|
|
if BUILD_SP_C32
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_c32.c
|
2022-01-05 11:06:25 -08:00
|
|
|
endif
|
|
|
|
|
if BUILD_SP_C64
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_c64.c
|
2022-01-05 11:06:25 -08:00
|
|
|
endif
|
|
|
|
|
|
2018-03-05 16:18:44 +10:00
|
|
|
if BUILD_SP_X86_64
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_x86_64.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_x86_64_asm.S
|
2018-03-05 16:18:44 +10:00
|
|
|
endif
|
2020-05-12 16:28:39 -06:00
|
|
|
if !BUILD_FIPS_V2
|
2018-03-05 16:18:44 +10:00
|
|
|
if BUILD_SP_ARM32
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_arm32.c
|
2018-03-05 16:18:44 +10:00
|
|
|
endif
|
2020-05-12 16:28:39 -06:00
|
|
|
endif
|
2018-09-25 09:10:45 +10:00
|
|
|
if BUILD_SP_ARM_THUMB
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_armthumb.c
|
2018-09-25 09:10:45 +10:00
|
|
|
endif
|
2021-02-03 15:38:08 -07:00
|
|
|
if !BUILD_FIPS_V2
|
2018-03-05 16:18:44 +10:00
|
|
|
if BUILD_SP_ARM64
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_arm64.c
|
2018-03-05 16:18:44 +10:00
|
|
|
endif
|
2021-02-03 15:38:08 -07:00
|
|
|
endif
|
2019-01-11 14:38:34 -08:00
|
|
|
if BUILD_SP_ARM_CORTEX
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_cortexm.c
|
2019-01-11 14:38:34 -08:00
|
|
|
endif
|
2020-10-21 11:58:38 -07:00
|
|
|
endif BUILD_SP
|
2024-03-01 19:40:27 -05:00
|
|
|
endif !BUILD_FIPS_V6
|
|
|
|
|
|
2022-02-08 10:40:05 +10:00
|
|
|
if BUILD_SP_INT
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_int.c
|
2022-02-08 10:40:05 +10:00
|
|
|
endif
|
2014-11-07 13:09:32 -08:00
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2014-12-31 13:37:51 -07:00
|
|
|
if BUILD_AES
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes.c
|
2024-04-23 11:26:27 -04:00
|
|
|
if BUILD_CUDA
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/cuda/aes-cuda.cu
|
|
|
|
|
endif BUILD_CUDA
|
2023-08-29 09:16:09 -07:00
|
|
|
if BUILD_ARMASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-aes.c
|
2023-08-29 09:16:09 -07:00
|
|
|
endif BUILD_ARMASM
|
2023-08-25 13:40:15 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-10-05 16:33:52 +10:00
|
|
|
if !BUILD_ARMASM_CRYPTO
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm_c.c
|
2023-08-25 13:40:15 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-aes-asm_c.c
|
2023-07-13 17:24:36 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm.S
|
2023-08-25 13:40:15 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-aes-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
2022-10-05 16:33:52 +10:00
|
|
|
endif !BUILD_ARMASM_CRYPTO
|
2023-08-25 13:40:15 +10:00
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm_c.c
|
2023-08-25 13:40:15 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-aes-asm_c.c
|
|
|
|
|
else
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-aes-asm.S
|
2023-08-25 13:40:15 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-aes-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif BUILD_ARMASM
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
2024-05-22 19:07:02 +10:00
|
|
|
|
2018-07-18 17:26:25 -06:00
|
|
|
if BUILD_AFALG
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/af_alg/afalg_aes.c
|
2023-07-13 17:24:36 +10:00
|
|
|
endif BUILD_AFALG
|
2024-05-22 19:07:02 +10:00
|
|
|
|
|
|
|
|
if BUILD_RISCV_ASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/riscv/riscv-64-aes.c
|
|
|
|
|
endif BUILD_RISCV_ASM
|
2022-10-05 16:33:52 +10:00
|
|
|
endif BUILD_AES
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2014-12-31 13:37:51 -07:00
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2016-05-23 17:50:36 -07:00
|
|
|
if BUILD_CMAC
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/cmac.c
|
2016-05-23 17:50:36 -07:00
|
|
|
endif
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2016-05-23 17:50:36 -07:00
|
|
|
|
2022-01-24 12:44:57 -08:00
|
|
|
if !BUILD_FIPS_V2
|
2014-12-31 13:37:51 -07:00
|
|
|
if BUILD_DES3
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/des3.c
|
2022-01-24 12:44:57 -08:00
|
|
|
endif BUILD_DES3
|
|
|
|
|
endif !BUILD_FIPS_V2
|
2014-12-31 13:37:51 -07:00
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2014-12-31 13:37:51 -07:00
|
|
|
if BUILD_SHA
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha.c
|
2014-12-31 13:37:51 -07:00
|
|
|
endif
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2014-12-31 13:37:51 -07:00
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2015-01-05 10:32:51 -07:00
|
|
|
if BUILD_SHA512
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512.c
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm_c.c
|
2022-02-07 09:20:49 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512.c
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm_c.c
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha512-asm_c.c
|
|
|
|
|
else
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-sha512-asm.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
2019-05-24 12:14:06 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha512.c
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2019-01-25 12:03:08 +10:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha512_asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif BUILD_INTELASM
|
2024-03-14 11:21:46 +10:00
|
|
|
endif !BUILD_X86_ASM
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
|
|
|
|
endif BUILD_SHA512
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2014-12-31 13:37:51 -07:00
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2017-05-23 13:50:49 +10:00
|
|
|
if BUILD_SHA3
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha3.c
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm_c.c
|
2022-02-07 09:20:49 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif BUILD_ARMASM_NEON
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2022-09-01 15:07:15 +10:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sha3_asm.S
|
2022-09-01 15:07:15 +10:00
|
|
|
endif
|
2017-05-23 13:50:49 +10:00
|
|
|
endif
|
2024-03-14 11:21:46 +10:00
|
|
|
endif
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2019-06-26 10:45:12 -07:00
|
|
|
|
2023-02-10 11:48:59 +10:00
|
|
|
if !BUILD_FIPS_CURRENT
|
|
|
|
|
if BUILD_SM2
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sm2.c
|
2023-09-26 09:34:25 +10:00
|
|
|
if BUILD_SP
|
|
|
|
|
if BUILD_SP_C32
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_sm2_c32.c
|
|
|
|
|
endif
|
|
|
|
|
if BUILD_SP_C64
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_sm2_c64.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SP_X86_64
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_sm2_x86_64.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_sm2_x86_64_asm.S
|
|
|
|
|
endif
|
|
|
|
|
if !BUILD_FIPS_V2
|
|
|
|
|
if BUILD_SP_ARM32
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_sm2_arm32.c
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
if BUILD_SP_ARM_THUMB
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_sm2_armthumb.c
|
|
|
|
|
endif
|
|
|
|
|
if !BUILD_FIPS_V2
|
|
|
|
|
if BUILD_SP_ARM64
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_sm2_arm64.c
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
if BUILD_SP_ARM_CORTEX
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sp_sm2_cortexm.c
|
|
|
|
|
endif
|
|
|
|
|
endif BUILD_SP
|
2023-02-10 11:48:59 +10:00
|
|
|
endif BUILD_SM2
|
|
|
|
|
endif !BUILD_FIPS_CURRENT
|
|
|
|
|
|
|
|
|
|
if !BUILD_FIPS_CURRENT
|
|
|
|
|
if BUILD_SM3
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sm3.c
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2023-02-10 11:48:59 +10:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sm3_asm.S
|
|
|
|
|
endif
|
2024-03-14 11:21:46 +10:00
|
|
|
endif
|
2023-02-10 11:48:59 +10:00
|
|
|
endif BUILD_SM3
|
|
|
|
|
endif !BUILD_FIPS_CURRENT
|
|
|
|
|
|
|
|
|
|
if !BUILD_FIPS_CURRENT
|
|
|
|
|
if BUILD_SM4
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sm4.c
|
|
|
|
|
endif BUILD_SM4
|
|
|
|
|
endif !BUILD_FIPS_CURRENT
|
|
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_FIPS_RAND
|
|
|
|
|
|
2022-01-14 13:56:23 +10:00
|
|
|
if BUILD_SIPHASH
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/siphash.c
|
2022-01-14 13:56:23 +10:00
|
|
|
endif
|
|
|
|
|
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
2014-12-19 09:26:22 -07:00
|
|
|
wolfcrypt/src/logging.c \
|
2022-01-05 11:06:25 -08:00
|
|
|
wolfcrypt/src/wc_port.c
|
|
|
|
|
|
|
|
|
|
if BUILD_ERROR_STRINGS
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/error.c
|
2022-01-05 11:06:25 -08:00
|
|
|
endif
|
2020-10-23 15:27:10 -05:00
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
if !BUILD_FIPS_RAND
|
2022-01-05 11:06:25 -08:00
|
|
|
if !BUILD_DO178
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
2019-06-26 10:45:12 -07:00
|
|
|
wolfcrypt/src/wc_encrypt.c \
|
2022-01-05 11:06:25 -08:00
|
|
|
wolfcrypt/src/signature.c
|
|
|
|
|
endif !BUILD_DO178
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wolfmath.c
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_FIPS_RAND
|
2014-11-07 13:09:32 -08:00
|
|
|
|
|
|
|
|
if BUILD_MEMORY
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/memory.c
|
2014-12-29 10:27:03 -07:00
|
|
|
endif
|
2014-11-07 13:09:32 -08:00
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
if !BUILD_FIPS_RAND
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2013-03-12 13:03:42 -07:00
|
|
|
if BUILD_DH
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/dh.c
|
2013-03-12 13:03:42 -07:00
|
|
|
endif
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
2013-03-12 13:03:42 -07:00
|
|
|
|
2013-03-12 12:48:41 -07:00
|
|
|
if BUILD_ASN
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/asn.c
|
2014-12-19 10:46:58 -07:00
|
|
|
endif
|
2013-03-12 12:48:41 -07:00
|
|
|
|
2023-01-18 11:30:46 -08:00
|
|
|
if BUILD_HPKE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/hpke.c
|
|
|
|
|
endif
|
|
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_FIPS_RAND
|
|
|
|
|
|
2013-03-12 13:12:10 -07:00
|
|
|
if BUILD_CODING
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/coding.c
|
2014-12-19 10:46:58 -07:00
|
|
|
endif
|
2013-03-12 13:12:10 -07:00
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
if !BUILD_FIPS_RAND
|
|
|
|
|
|
2014-07-01 14:16:44 -06:00
|
|
|
if BUILD_POLY1305
|
2019-05-10 14:26:53 +02:00
|
|
|
if BUILD_ARMASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-poly1305.c
|
2019-06-12 15:37:01 +02:00
|
|
|
endif
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/poly1305.c
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2019-01-25 12:03:08 +10:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/poly1305_asm.S
|
2019-01-25 12:03:08 +10:00
|
|
|
endif
|
2014-07-01 14:16:44 -06:00
|
|
|
endif
|
2024-03-14 11:21:46 +10:00
|
|
|
endif
|
2014-07-01 14:16:44 -06:00
|
|
|
|
2013-03-11 17:13:24 -07:00
|
|
|
if BUILD_RC4
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/arc4.c
|
2013-03-11 17:13:24 -07:00
|
|
|
endif
|
|
|
|
|
|
2013-03-11 16:26:08 -07:00
|
|
|
if BUILD_MD4
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/md4.c
|
2014-12-29 10:27:03 -07:00
|
|
|
endif
|
2013-03-11 16:26:08 -07:00
|
|
|
|
2013-03-11 17:37:08 -07:00
|
|
|
if BUILD_MD5
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/md5.c
|
2013-03-11 17:37:08 -07:00
|
|
|
endif
|
|
|
|
|
|
2024-03-01 19:40:27 -05:00
|
|
|
if !BUILD_FIPS_V6
|
2013-03-11 17:01:05 -07:00
|
|
|
if BUILD_PWDBASED
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/pwdbased.c
|
2024-03-01 19:40:27 -05:00
|
|
|
endif BUILD_PWDBASED
|
|
|
|
|
endif !BUILD_FIPS_V6
|
|
|
|
|
|
|
|
|
|
if BUILD_PKCS12
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/pkcs12.c
|
2024-03-01 19:40:27 -05:00
|
|
|
endif BUILD_PKCS12
|
2013-03-11 17:01:05 -07:00
|
|
|
|
2013-03-11 16:39:06 -07:00
|
|
|
if BUILD_DSA
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/dsa.c
|
2012-10-29 15:39:42 -07:00
|
|
|
endif
|
|
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2011-04-26 17:45:41 -07:00
|
|
|
if BUILD_AESNI
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_asm.S
|
2022-09-30 16:19:40 +10:00
|
|
|
if BUILD_X86_ASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_gcm_x86_asm.S
|
2022-09-30 16:19:40 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S
|
2023-09-28 09:25:37 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/aes_xts_asm.S
|
2015-01-06 14:26:13 -07:00
|
|
|
endif
|
2018-02-09 09:54:34 -08:00
|
|
|
endif
|
2022-09-30 16:19:40 +10:00
|
|
|
endif
|
2011-04-26 17:45:41 -07:00
|
|
|
|
2013-01-17 21:52:31 -08:00
|
|
|
if BUILD_CAMELLIA
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/camellia.c
|
2013-01-17 21:52:31 -08:00
|
|
|
endif
|
|
|
|
|
|
2012-07-27 14:01:02 -07:00
|
|
|
if BUILD_MD2
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/md2.c
|
2014-12-29 10:27:03 -07:00
|
|
|
endif
|
2012-07-27 14:01:02 -07:00
|
|
|
|
2011-04-26 17:45:41 -07:00
|
|
|
if BUILD_RIPEMD
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ripemd.c
|
2011-04-26 17:45:41 -07:00
|
|
|
endif
|
|
|
|
|
|
2012-12-31 13:10:47 -08:00
|
|
|
if BUILD_BLAKE2
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/blake2b.c
|
2012-12-31 13:10:47 -08:00
|
|
|
endif
|
2019-05-23 21:47:42 -06:00
|
|
|
if BUILD_BLAKE2S
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/blake2s.c
|
2019-05-23 21:47:42 -06:00
|
|
|
endif
|
2012-12-31 13:10:47 -08:00
|
|
|
|
2014-07-01 14:16:44 -06:00
|
|
|
if BUILD_CHACHA
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-chacha.c
|
2019-05-10 14:26:53 +02:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/chacha.c
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2019-01-25 12:03:08 +10:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/chacha_asm.S
|
2019-01-25 12:03:08 +10:00
|
|
|
endif
|
2019-05-10 14:26:53 +02:00
|
|
|
endif
|
2024-03-14 11:21:46 +10:00
|
|
|
endif
|
2015-02-24 12:33:52 -08:00
|
|
|
if BUILD_POLY1305
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/chacha20_poly1305.c
|
2015-02-24 12:33:52 -08:00
|
|
|
endif
|
2014-07-01 14:16:44 -06:00
|
|
|
endif
|
|
|
|
|
|
2013-03-13 12:25:34 -07:00
|
|
|
if !BUILD_INLINE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/misc.c
|
2014-12-29 10:27:03 -07:00
|
|
|
endif
|
2011-08-03 10:59:08 -07:00
|
|
|
|
2011-04-26 17:45:41 -07:00
|
|
|
if BUILD_FASTMATH
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/tfm.c
|
2012-11-02 16:49:31 -07:00
|
|
|
endif
|
|
|
|
|
|
2022-01-14 14:02:55 -08:00
|
|
|
if BUILD_HEAPMATH
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/integer.c
|
2014-12-29 10:27:03 -07:00
|
|
|
endif
|
2011-04-26 17:45:41 -07:00
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2011-04-26 17:45:41 -07:00
|
|
|
if BUILD_ECC
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ecc.c
|
2011-04-26 17:45:41 -07:00
|
|
|
endif
|
2023-03-02 11:30:56 -07:00
|
|
|
endif
|
|
|
|
|
|
2021-01-12 12:25:52 +10:00
|
|
|
if BUILD_ECCSI
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/eccsi.c
|
2021-01-12 12:25:52 +10:00
|
|
|
endif
|
|
|
|
|
if BUILD_SAKKE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sakke.c
|
2021-01-12 12:25:52 +10:00
|
|
|
endif
|
2011-04-26 17:45:41 -07:00
|
|
|
|
2022-10-07 08:33:05 +10:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2022-09-08 11:23:30 +10:00
|
|
|
if BUILD_WC_KYBER
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wc_kyber.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wc_kyber_poly.c
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2022-09-08 11:23:30 +10:00
|
|
|
if BUILD_INTELASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wc_kyber_asm.S
|
2022-09-08 11:23:30 +10:00
|
|
|
endif
|
|
|
|
|
endif
|
2022-10-07 08:33:05 +10:00
|
|
|
endif
|
2024-03-14 11:21:46 +10:00
|
|
|
endif
|
2022-09-08 11:23:30 +10:00
|
|
|
|
2024-06-06 22:07:26 +10:00
|
|
|
if BUILD_DILITHIUM
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/dilithium.c
|
|
|
|
|
endif
|
|
|
|
|
|
2023-07-06 10:55:53 -05:00
|
|
|
if BUILD_WC_LMS
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wc_lms.c
|
2024-02-29 08:44:33 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wc_lms_impl.c
|
2023-07-06 10:55:53 -05:00
|
|
|
endif
|
|
|
|
|
|
2023-10-09 10:13:32 -05:00
|
|
|
if BUILD_WC_XMSS
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wc_xmss.c
|
2024-01-23 15:22:46 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/wc_xmss_impl.c
|
2023-10-09 10:13:32 -05:00
|
|
|
endif
|
|
|
|
|
|
2024-03-01 19:40:27 -05:00
|
|
|
if !BUILD_FIPS_V6
|
2015-03-24 11:56:40 -07:00
|
|
|
if BUILD_CURVE25519
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/curve25519.c
|
2015-03-19 11:40:41 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ED25519
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ed25519.c
|
2015-03-19 11:40:41 -06:00
|
|
|
endif
|
2024-03-01 19:40:27 -05:00
|
|
|
endif !BUILD_FIPS_V6
|
2015-03-19 11:40:41 -06:00
|
|
|
|
|
|
|
|
if BUILD_FEMATH
|
2017-06-16 09:41:10 -07:00
|
|
|
if BUILD_CURVE25519_SMALL
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_low_mem.c
|
2015-06-05 15:39:37 -06:00
|
|
|
else
|
2024-04-27 01:12:58 -05:00
|
|
|
if BUILD_CURVE25519_INTELASM
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_x25519_asm.S
|
2024-03-14 11:21:46 +10:00
|
|
|
endif !BUILD_X86_ASM
|
2019-04-18 14:29:02 +10:00
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
2024-03-01 19:40:27 -05:00
|
|
|
if !BUILD_FIPS_V6
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519_c.c
|
2022-02-07 09:20:49 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519.S
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519_c.c
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-curve25519_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519_c.c
|
|
|
|
|
else
|
2023-09-11 22:21:16 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519.S
|
2023-07-13 17:24:36 +10:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-curve25519.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519.S
|
|
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
2024-03-01 19:40:27 -05:00
|
|
|
endif !BUILD_FIPS_V6
|
2019-04-18 14:29:02 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_operations.c
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_ARMASM
|
2024-04-27 01:12:58 -05:00
|
|
|
endif !BUILD_CURVE25519_INTELASM
|
2023-07-13 17:24:36 +10:00
|
|
|
endif !BUILD_CURVE25519_SMALL
|
|
|
|
|
endif BUILD_FEMATH
|
2015-03-19 11:40:41 -06:00
|
|
|
|
|
|
|
|
if BUILD_GEMATH
|
2017-06-16 09:41:10 -07:00
|
|
|
if BUILD_ED25519_SMALL
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ge_low_mem.c
|
2015-06-05 15:39:37 -06:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ge_operations.c
|
2017-07-12 15:53:11 -06:00
|
|
|
if !BUILD_FEMATH
|
2024-04-27 01:12:58 -05:00
|
|
|
if BUILD_CURVE25519_INTELASM
|
2024-03-14 11:21:46 +10:00
|
|
|
if !BUILD_X86_ASM
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_x25519_asm.S
|
2024-03-14 11:21:46 +10:00
|
|
|
endif !BUILD_X86_ASM
|
2019-04-18 14:29:02 +10:00
|
|
|
else
|
2024-03-01 19:40:27 -05:00
|
|
|
if !BUILD_FIPS_V6
|
2019-04-18 14:29:02 +10:00
|
|
|
if BUILD_ARMASM
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_NEON
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519_c.c
|
2022-02-07 09:20:49 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519.S
|
2024-03-01 19:40:27 -05:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
2019-04-18 14:29:02 +10:00
|
|
|
else
|
2023-07-13 17:24:36 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-curve25519_c.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/thumb2-curve25519.S
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519.S
|
2024-03-01 19:40:27 -05:00
|
|
|
endif !BUILD_ARMASM_INLINE
|
|
|
|
|
endif !BUILD_ARMASM_NEON
|
2023-07-13 17:24:36 +10:00
|
|
|
else
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_operations.c
|
2024-03-01 19:40:27 -05:00
|
|
|
endif !BUILD_ARMASM
|
|
|
|
|
endif !BUILD_FIPS_V6
|
2024-04-27 01:12:58 -05:00
|
|
|
endif !BUILD_CURVE25519_INTELASM
|
2024-03-01 19:40:27 -05:00
|
|
|
endif !BUILD_FEMATH
|
|
|
|
|
endif !BUILD_ED25519_SMALL
|
|
|
|
|
endif BUILD_GEMATH
|
2015-02-19 10:59:05 -07:00
|
|
|
|
2024-03-01 19:40:27 -05:00
|
|
|
if !BUILD_FIPS_V6
|
2020-02-19 18:07:45 +10:00
|
|
|
if BUILD_CURVE448
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/curve448.c
|
2020-02-19 18:07:45 +10:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ED448
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ed448.c
|
2020-02-19 18:07:45 +10:00
|
|
|
endif
|
2024-03-01 19:40:27 -05:00
|
|
|
endif !BUILD_FIPS_V6
|
2020-02-19 18:07:45 +10:00
|
|
|
|
|
|
|
|
if BUILD_FE448
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_448.c
|
2020-02-19 18:07:45 +10:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_GE448
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ge_448.c
|
2020-02-19 18:07:45 +10:00
|
|
|
if !BUILD_FE448
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_448.c
|
2020-02-19 18:07:45 +10:00
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
2021-10-14 10:43:08 -04:00
|
|
|
if BUILD_LIBOQS
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/falcon.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/dilithium.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/sphincs.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ext_kyber.c
|
2023-11-30 10:57:06 +01:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/liboqs/liboqs.c
|
2021-10-14 10:43:08 -04:00
|
|
|
endif
|
|
|
|
|
|
2023-07-06 10:55:53 -05:00
|
|
|
if BUILD_LIBLMS
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ext_lms.c
|
|
|
|
|
endif
|
|
|
|
|
|
2023-10-05 09:18:50 -05:00
|
|
|
if BUILD_LIBXMSS
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ext_xmss.c
|
|
|
|
|
endif
|
|
|
|
|
|
2013-03-19 16:25:58 -07:00
|
|
|
if BUILD_LIBZ
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/compress.c
|
2014-12-29 10:27:03 -07:00
|
|
|
endif
|
2013-03-19 16:25:58 -07:00
|
|
|
|
2014-01-10 15:17:03 -07:00
|
|
|
if BUILD_PKCS7
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/pkcs7.c
|
2014-12-29 10:27:03 -07:00
|
|
|
endif
|
2014-01-10 15:17:03 -07:00
|
|
|
|
2015-07-06 14:10:20 -03:00
|
|
|
if BUILD_SRP
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/srp.c
|
2015-07-06 14:10:20 -03:00
|
|
|
endif
|
|
|
|
|
|
2018-07-18 17:26:25 -06:00
|
|
|
if BUILD_AFALG
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/af_alg/wc_afalg.c
|
2018-07-18 17:26:25 -06:00
|
|
|
endif
|
|
|
|
|
|
2015-09-10 16:24:25 -07:00
|
|
|
if !BUILD_CRYPTONLY
|
2014-12-30 10:38:41 -07:00
|
|
|
# ssl files
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += \
|
2014-12-30 10:38:41 -07:00
|
|
|
src/internal.c \
|
2017-09-08 13:58:25 -06:00
|
|
|
src/wolfio.c \
|
2014-12-30 10:38:41 -07:00
|
|
|
src/keys.c \
|
|
|
|
|
src/ssl.c \
|
2017-06-08 14:55:28 -07:00
|
|
|
src/tls.c
|
|
|
|
|
|
|
|
|
|
if BUILD_TLS13
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += src/tls13.c
|
2017-06-08 14:55:28 -07:00
|
|
|
endif
|
2014-12-30 10:38:41 -07:00
|
|
|
|
2014-11-07 13:09:32 -08:00
|
|
|
if BUILD_OCSP
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += src/ocsp.c
|
2014-11-07 13:09:32 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CRL
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += src/crl.c
|
2014-11-07 13:09:32 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SNIFFER
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += src/sniffer.c
|
2014-05-08 10:26:31 -07:00
|
|
|
endif
|
2015-09-10 16:24:25 -07:00
|
|
|
|
2022-05-20 09:59:23 +02:00
|
|
|
if BUILD_DTLS13
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += src/dtls13.c
|
2022-05-20 09:59:23 +02:00
|
|
|
endif
|
|
|
|
|
|
2022-08-08 13:24:00 +02:00
|
|
|
if BUILD_QUIC
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += src/quic.c
|
2022-08-08 13:24:00 +02:00
|
|
|
endif
|
|
|
|
|
|
2022-10-04 16:22:59 +02:00
|
|
|
if BUILD_DTLS
|
2022-12-15 10:37:10 -07:00
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += src/dtls.c
|
2022-08-10 16:39:44 +02:00
|
|
|
endif
|
|
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_CRYPTONLY
|
|
|
|
|
|
2023-12-10 05:47:47 -08:00
|
|
|
if BUILD_XILINX
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/xilinx/xil-aesgcm.c
|
|
|
|
|
endif
|
2021-07-26 19:38:46 +02:00
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_FIPS_RAND
|
2023-07-06 13:05:39 -04:00
|
|
|
|
|
|
|
|
if BUILD_ARIA
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/aria/aria-crypt.c
|
|
|
|
|
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/aria/aria-cryptocb.c
|
|
|
|
|
endif
|
2023-12-10 05:47:47 -08:00
|
|
|
|