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
|
|
|
|
|
|
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
|
|
|
BUILT_SOURCES+= ctaocrypt/src/fips.c
|
|
|
|
|
BUILT_SOURCES+= ctaocrypt/src/fips_test.c
|
|
|
|
|
BUILT_SOURCES+= wolfcrypt/src/async.c
|
|
|
|
|
BUILT_SOURCES+= wolfcrypt/src/fips.c
|
|
|
|
|
BUILT_SOURCES+= wolfcrypt/src/fips_test.c
|
|
|
|
|
BUILT_SOURCES+= wolfcrypt/src/selftest.c
|
|
|
|
|
BUILT_SOURCES+= wolfcrypt/src/wolfcrypt_first.c
|
|
|
|
|
BUILT_SOURCES+= wolfcrypt/src/wolfcrypt_last.c
|
|
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES+= ctaocrypt/src/fips.c
|
|
|
|
|
MAINTAINERCLEANFILES+= ctaocrypt/src/fips_test.c
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfcrypt/src/async.c
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfcrypt/src/fips.c
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfcrypt/src/fips_test.c
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfcrypt/src/selftest.c
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfcrypt/src/wolfcrypt_first.c
|
|
|
|
|
MAINTAINERCLEANFILES+= wolfcrypt/src/wolfcrypt_last.c
|
|
|
|
|
|
|
|
|
|
ctaocrypt/src/fips.c: Makefile
|
2021-10-04 23:34:24 -05:00
|
|
|
@test -e $(srcdir)/$@ || 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
|
|
|
|
|
|
|
|
ctaocrypt/src/fips_test.c: Makefile
|
2021-10-04 23:34:24 -05:00
|
|
|
@test -e $(srcdir)/$@ || 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
|
|
|
|
|
|
|
|
wolfcrypt/src/async.c: Makefile
|
2021-10-04 23:34:24 -05:00
|
|
|
@test -e $(srcdir)/$@ || 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
|
|
|
|
|
|
|
|
wolfcrypt/src/fips.c: Makefile
|
2021-10-04 23:34:24 -05:00
|
|
|
@test -e $(srcdir)/$@ || 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
|
|
|
|
|
|
|
|
wolfcrypt/src/fips_test.c: Makefile
|
2021-10-04 23:34:24 -05:00
|
|
|
@test -e $(srcdir)/$@ || 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
|
|
|
|
|
|
|
|
wolfcrypt/src/selftest.c: Makefile
|
2021-10-04 23:34:24 -05:00
|
|
|
@test -e $(srcdir)/$@ || 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
|
|
|
|
|
|
|
|
wolfcrypt/src/wolfcrypt_first.c: Makefile
|
2021-10-04 23:34:24 -05:00
|
|
|
@test -e $(srcdir)/$@ || 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
|
|
|
|
|
|
|
|
wolfcrypt/src/wolfcrypt_last.c: Makefile
|
2021-10-04 23:34:24 -05:00
|
|
|
@test -e $(srcdir)/$@ || 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
|
2014-12-19 09:26:22 -07:00
|
|
|
lib_LTLIBRARIES+= src/libwolfssl.la
|
2020-08-28 17:25:25 -05:00
|
|
|
endif
|
2014-12-19 09:26:22 -07:00
|
|
|
src_libwolfssl_la_SOURCES =
|
2014-12-29 16:38:13 -07:00
|
|
|
src_libwolfssl_la_LDFLAGS = ${AM_LDFLAGS} -no-undefined -version-info ${WOLFSSL_LIBRARY_VERSION}
|
2015-09-28 10:06:30 -06:00
|
|
|
src_libwolfssl_la_LIBADD = $(LIBM) $(LIB_ADD) $(LIB_STATIC_ADD)
|
2021-08-27 23:03:14 -05:00
|
|
|
src_libwolfssl_la_CFLAGS = -DBUILDING_WOLFSSL $(AM_CFLAGS) -DLIBWOLFSSL_GLOBAL_EXTRA_CFLAGS="\" $(EXTRA_CFLAGS)\""
|
2014-12-29 16:38:13 -07:00
|
|
|
src_libwolfssl_la_CPPFLAGS = -DBUILDING_WOLFSSL $(AM_CPPFLAGS)
|
2014-11-07 13:09:32 -08:00
|
|
|
|
2015-09-28 10:06:30 -06:00
|
|
|
# install the packaged IPP libraries
|
|
|
|
|
if BUILD_FAST_RSA
|
|
|
|
|
|
|
|
|
|
# Link needed IPP libraries
|
|
|
|
|
noinst_SCRIPTS+=IPP_links
|
|
|
|
|
IPP_links:
|
|
|
|
|
@$(IPPLINK)
|
|
|
|
|
|
|
|
|
|
ippdir = $(libdir)
|
|
|
|
|
ipp_DATA = $(IPPLIBS)
|
|
|
|
|
|
|
|
|
|
include_HEADERS+=$(IPPHEADERS)
|
|
|
|
|
endif # BUILD_FAST_RSA
|
|
|
|
|
|
2014-05-08 10:26:31 -07:00
|
|
|
if BUILD_FIPS
|
2019-06-19 16:51:51 -07:00
|
|
|
|
|
|
|
|
if BUILD_FIPS_V1
|
2018-02-01 11:02:35 -08:00
|
|
|
# fips first file
|
2014-12-19 09:26:22 -07:00
|
|
|
src_libwolfssl_la_SOURCES += ctaocrypt/src/wolfcrypt_first.c
|
2014-05-08 10:26:31 -07:00
|
|
|
|
2014-12-19 09:26:22 -07:00
|
|
|
src_libwolfssl_la_SOURCES += \
|
2018-02-01 11:02:35 -08:00
|
|
|
ctaocrypt/src/hmac.c \
|
2012-11-01 12:36:47 -07:00
|
|
|
ctaocrypt/src/random.c \
|
2014-12-31 13:37:51 -07:00
|
|
|
ctaocrypt/src/sha256.c
|
2012-10-29 15:39:42 -07:00
|
|
|
|
2013-03-11 12:49:59 -07:00
|
|
|
if BUILD_RSA
|
2014-12-31 13:37:51 -07:00
|
|
|
src_libwolfssl_la_SOURCES += ctaocrypt/src/rsa.c
|
2013-03-11 12:49:59 -07:00
|
|
|
endif
|
2018-02-01 11:02:35 -08:00
|
|
|
|
|
|
|
|
if BUILD_AES
|
|
|
|
|
src_libwolfssl_la_SOURCES += ctaocrypt/src/aes.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_DES3
|
|
|
|
|
src_libwolfssl_la_SOURCES += ctaocrypt/src/des3.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA
|
|
|
|
|
src_libwolfssl_la_SOURCES += ctaocrypt/src/sha.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA512
|
|
|
|
|
src_libwolfssl_la_SOURCES += ctaocrypt/src/sha512.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
src_libwolfssl_la_SOURCES += ctaocrypt/src/fips.c
|
|
|
|
|
src_libwolfssl_la_SOURCES += ctaocrypt/src/fips_test.c
|
|
|
|
|
|
|
|
|
|
# fips last file
|
|
|
|
|
src_libwolfssl_la_SOURCES += ctaocrypt/src/wolfcrypt_last.c
|
2020-10-21 11:58:38 -07:00
|
|
|
endif BUILD_FIPS_V1
|
2018-02-01 11:02:35 -08:00
|
|
|
|
2019-06-19 16:51:51 -07:00
|
|
|
if BUILD_FIPS_V2
|
2018-02-01 11:02:35 -08:00
|
|
|
# FIPSv2 first file
|
|
|
|
|
src_libwolfssl_la_SOURCES += \
|
2020-10-12 16:06:20 -07:00
|
|
|
wolfcrypt/src/wolfcrypt_first.c
|
2018-02-01 11:02:35 -08:00
|
|
|
|
|
|
|
|
src_libwolfssl_la_SOURCES += \
|
|
|
|
|
wolfcrypt/src/hmac.c \
|
|
|
|
|
wolfcrypt/src/random.c \
|
|
|
|
|
wolfcrypt/src/sha256.c
|
|
|
|
|
|
|
|
|
|
if BUILD_RSA
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/rsa.c
|
2017-12-07 10:58:55 -08:00
|
|
|
endif
|
2013-03-11 12:49:59 -07:00
|
|
|
|
2017-12-01 11:45:16 -08:00
|
|
|
if BUILD_ECC
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ecc.c
|
|
|
|
|
endif
|
|
|
|
|
|
2014-11-07 13:09:32 -08:00
|
|
|
if BUILD_AES
|
2018-02-01 11:02:35 -08:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes.c
|
2013-03-12 13:03:42 -07:00
|
|
|
endif
|
|
|
|
|
|
2018-02-09 09:54:34 -08:00
|
|
|
if BUILD_AESNI
|
2018-05-18 15:02:43 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_asm.S
|
2019-08-23 10:22:31 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S
|
|
|
|
|
endif
|
2018-02-09 09:54:34 -08:00
|
|
|
|
2014-11-07 13:09:32 -08:00
|
|
|
if BUILD_DES3
|
2018-02-01 11:02:35 -08:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/des3.c
|
2014-11-07 13:09:32 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA
|
2018-02-01 11:02:35 -08:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha.c
|
2020-10-16 12:32:02 +10:00
|
|
|
endif
|
|
|
|
|
|
2019-08-23 10:22:31 -07:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha256_asm.S
|
|
|
|
|
endif
|
2014-11-07 13:09:32 -08:00
|
|
|
|
2015-01-05 10:32:51 -07:00
|
|
|
if BUILD_SHA512
|
2018-02-01 11:02:35 -08:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512.c
|
2019-08-23 10:22:31 -07:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512_asm.S
|
|
|
|
|
endif
|
2015-01-05 10:32:51 -07:00
|
|
|
endif
|
2013-03-12 12:48:41 -07:00
|
|
|
|
2018-02-01 11:02:35 -08:00
|
|
|
if BUILD_SHA3
|
2017-12-27 11:07:42 -08:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha3.c
|
|
|
|
|
endif
|
|
|
|
|
|
2018-02-01 11:02:35 -08:00
|
|
|
if BUILD_DH
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/dh.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CMAC
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/cmac.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fips.c \
|
|
|
|
|
wolfcrypt/src/fips_test.c
|
2014-03-19 09:43:57 -07:00
|
|
|
|
2014-11-07 13:09:32 -08:00
|
|
|
# fips last file
|
2018-02-01 11:02:35 -08:00
|
|
|
src_libwolfssl_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
|
|
|
|
|
src_libwolfssl_la_SOURCES += \
|
|
|
|
|
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
|
|
|
|
2020-10-12 16:06:20 -07:00
|
|
|
if BUILD_FIPS_V3
|
2020-10-21 11:58:38 -07:00
|
|
|
# FIPS Ready first file
|
|
|
|
|
src_libwolfssl_la_SOURCES += \
|
|
|
|
|
wolfcrypt/src/wolfcrypt_first.c
|
|
|
|
|
|
|
|
|
|
src_libwolfssl_la_SOURCES += \
|
|
|
|
|
wolfcrypt/src/hmac.c \
|
|
|
|
|
wolfcrypt/src/random.c \
|
|
|
|
|
wolfcrypt/src/sha256.c
|
|
|
|
|
|
|
|
|
|
if BUILD_RSA
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/rsa.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ECC
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ecc.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_AES
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_AESNI
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_asm.S
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_DES3
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/des3.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha.c
|
|
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha256_asm.S
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA512
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512.c
|
|
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512_asm.S
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA3
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha3.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_DH
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/dh.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CMAC
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/cmac.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fips.c \
|
|
|
|
|
wolfcrypt/src/fips_test.c
|
|
|
|
|
|
|
|
|
|
# FIPS Ready last file
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/wolfcrypt_last.c
|
|
|
|
|
endif BUILD_FIPS_V3
|
|
|
|
|
|
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
|
|
|
|
|
src_libwolfssl_la_SOURCES += \
|
|
|
|
|
wolfcrypt/src/wolfcrypt_first.c
|
|
|
|
|
|
|
|
|
|
src_libwolfssl_la_SOURCES += \
|
|
|
|
|
wolfcrypt/src/hmac.c \
|
|
|
|
|
wolfcrypt/src/random.c \
|
|
|
|
|
wolfcrypt/src/sha256.c
|
|
|
|
|
|
2021-04-02 13:57:52 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/kdf.c
|
|
|
|
|
|
2020-10-12 16:06:20 -07:00
|
|
|
if BUILD_RSA
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/rsa.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ECC
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ecc.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_AES
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes.c
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-aes.c
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_AESNI
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_asm.S
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha256.c
|
|
|
|
|
endif
|
|
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha256_asm.S
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA512
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512.c
|
|
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512.c
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm_c.c
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm_c.c
|
|
|
|
|
else
|
2020-10-12 16:06:20 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm.S
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm.S
|
|
|
|
|
endif
|
2022-02-07 09:20:49 +10:00
|
|
|
endif
|
2020-10-12 16:06:20 -07:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512_asm.S
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SHA3
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha3.c
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm.S
|
|
|
|
|
endif
|
|
|
|
|
endif
|
2020-10-12 16:06:20 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_DH
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/dh.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CMAC
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/cmac.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fips.c \
|
|
|
|
|
wolfcrypt/src/fips_test.c
|
|
|
|
|
|
|
|
|
|
# fips last file
|
|
|
|
|
src_libwolfssl_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
|
|
|
|
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
|
2018-02-01 11:02:35 -08:00
|
|
|
src_libwolfssl_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
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/selftest.c
|
|
|
|
|
endif
|
|
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_FIPS_RAND
|
|
|
|
|
|
2022-01-05 11:06:25 -08:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/hash.c
|
|
|
|
|
|
|
|
|
|
if !BUILD_DO178
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/cpuid.c
|
|
|
|
|
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
|
2022-01-05 11:06:25 -08:00
|
|
|
if BUILD_KDF
|
2021-04-02 13:57:52 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/kdf.c
|
2022-01-05 11:06:25 -08:00
|
|
|
endif
|
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
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/random.c
|
|
|
|
|
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
|
2016-07-22 15:49:15 +00:00
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha256.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha256.c
|
2019-01-25 12:03:08 +10:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha256_asm.S
|
|
|
|
|
endif
|
2016-07-22 15:49:15 +00:00
|
|
|
endif
|
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
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/af_alg/afalg_hash.c
|
|
|
|
|
endif
|
|
|
|
|
|
2021-08-19 11:25:59 +10:00
|
|
|
if BUILD_KCAPI
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_aes.c
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_hash.c
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_hmac.c
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_ecc.c
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_rsa.c
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/kcapi/kcapi_dh.c
|
|
|
|
|
endif
|
|
|
|
|
|
2016-08-15 13:59:41 -06:00
|
|
|
if BUILD_WOLFEVENT
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/wolfevent.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ASYNCCRYPT
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/async.c
|
|
|
|
|
endif
|
|
|
|
|
|
2015-09-28 10:06:30 -06:00
|
|
|
if !BUILD_USER_RSA
|
2014-12-31 13:37:51 -07:00
|
|
|
if BUILD_RSA
|
2015-09-28 10:06:30 -06:00
|
|
|
if BUILD_FAST_RSA
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/user-crypto/src/rsa.c
|
|
|
|
|
else
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2014-12-31 13:37:51 -07:00
|
|
|
src_libwolfssl_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
|
2017-12-07 10:58:55 -08:00
|
|
|
endif
|
2020-10-12 16:06:20 -07:00
|
|
|
endif
|
2018-03-05 16:18:44 +10:00
|
|
|
|
2020-09-18 17:04:26 -07:00
|
|
|
if BUILD_RC2
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/rc2.c
|
|
|
|
|
endif
|
|
|
|
|
|
2017-08-10 17:27:22 +10:00
|
|
|
if BUILD_SP
|
2022-01-05 11:06:25 -08:00
|
|
|
if BUILD_SP_C32
|
2018-03-05 16:18:44 +10:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sp_c32.c
|
2022-01-05 11:06:25 -08:00
|
|
|
endif
|
|
|
|
|
if BUILD_SP_C64
|
2018-03-05 16:18:44 +10:00
|
|
|
src_libwolfssl_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
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sp_x86_64.c
|
2019-01-25 12:03:08 +10:00
|
|
|
src_libwolfssl_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
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sp_arm32.c
|
|
|
|
|
endif
|
2020-05-12 16:28:39 -06:00
|
|
|
endif
|
2018-09-25 09:10:45 +10:00
|
|
|
if BUILD_SP_ARM_THUMB
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sp_armthumb.c
|
|
|
|
|
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
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sp_arm64.c
|
|
|
|
|
endif
|
2021-02-03 15:38:08 -07:00
|
|
|
endif
|
2019-01-11 14:38:34 -08:00
|
|
|
if BUILD_SP_ARM_CORTEX
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sp_cortexm.c
|
|
|
|
|
endif
|
2020-10-21 11:58:38 -07:00
|
|
|
endif BUILD_SP
|
2022-02-08 10:40:05 +10:00
|
|
|
if BUILD_SP_INT
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sp_int.c
|
|
|
|
|
endif
|
2013-03-12 13:12:10 -07:00
|
|
|
|
2020-10-21 11:58:38 -07:00
|
|
|
if !BUILD_FIPS_CURRENT
|
2014-12-31 13:37:51 -07:00
|
|
|
if BUILD_AES
|
2017-07-10 19:12:41 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes.c
|
2016-09-15 06:03:48 +00:00
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-aes.c
|
2014-12-31 13:37:51 -07:00
|
|
|
endif
|
2018-07-18 17:26:25 -06:00
|
|
|
if BUILD_AFALG
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/af_alg/afalg_aes.c
|
|
|
|
|
endif
|
2016-09-15 06:03:48 +00: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
|
2016-05-23 17:50:36 -07:00
|
|
|
if BUILD_CMAC
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/cmac.c
|
|
|
|
|
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
|
|
|
|
|
if !BUILD_FIPS_V3
|
2014-12-31 13:37:51 -07:00
|
|
|
if BUILD_DES3
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/des3.c
|
2022-01-24 12:44:57 -08:00
|
|
|
endif BUILD_DES3
|
|
|
|
|
endif !BUILD_FIPS_V3
|
|
|
|
|
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
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha.c
|
|
|
|
|
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
|
2019-05-24 12:14:06 +10:00
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512.c
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm_c.c
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm_c.c
|
|
|
|
|
else
|
2019-05-24 12:14:06 +10:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha512-asm.S
|
2019-06-07 14:16:45 +10:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-sha512-asm.S
|
2022-02-07 09:20:49 +10:00
|
|
|
endif
|
2019-05-24 12:14:06 +10:00
|
|
|
else
|
2014-12-31 13:37:51 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512.c
|
2019-01-25 12:03:08 +10:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha512_asm.S
|
|
|
|
|
endif
|
2015-01-05 10:32:51 -07:00
|
|
|
endif
|
2018-02-01 11:02:35 -08: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
|
2017-05-23 13:50:49 +10:00
|
|
|
if BUILD_SHA3
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sha3.c
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM
|
|
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm_c.c
|
|
|
|
|
else
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-sha3-asm.S
|
|
|
|
|
endif
|
|
|
|
|
endif
|
2017-05-23 13:50:49 +10:00
|
|
|
endif
|
2020-10-21 11:58:38 -07:00
|
|
|
endif !BUILD_FIPS_CURRENT
|
2019-06-26 10:45:12 -07:00
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_FIPS_RAND
|
|
|
|
|
|
2022-01-14 13:56:23 +10:00
|
|
|
if BUILD_SIPHASH
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/siphash.c
|
|
|
|
|
endif
|
|
|
|
|
|
2014-12-19 10:46:58 -07:00
|
|
|
src_libwolfssl_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
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/error.c
|
|
|
|
|
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
|
2019-06-24 15:40:05 -07:00
|
|
|
src_libwolfssl_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
|
|
|
|
|
src_libwolfssl_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
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/memory.c
|
|
|
|
|
endif
|
2013-03-11 17:07:37 -07: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
|
2014-11-07 13:09:32 -08:00
|
|
|
if BUILD_DH
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/dh.c
|
2014-07-01 14:16:44 -06:00
|
|
|
endif
|
2018-02-01 11:02:35 -08:00
|
|
|
endif
|
2014-07-01 14:16:44 -06:00
|
|
|
|
2014-11-07 13:09:32 -08:00
|
|
|
if BUILD_ASN
|
2014-12-19 10:46:58 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/asn.c
|
|
|
|
|
endif
|
2013-03-12 09:46:15 -07:00
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_FIPS_RAND
|
|
|
|
|
|
2014-11-07 13:09:32 -08:00
|
|
|
if BUILD_CODING
|
2014-12-19 10:46:58 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/coding.c
|
|
|
|
|
endif
|
2014-11-07 13:09:32 -08:00
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
if !BUILD_FIPS_RAND
|
|
|
|
|
|
2014-11-07 13:09:32 -08:00
|
|
|
if BUILD_POLY1305
|
2019-05-10 14:26:53 +02:00
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-poly1305.c
|
2019-06-12 15:37:01 +02:00
|
|
|
endif
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/poly1305.c
|
2019-01-25 12:03:08 +10:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/poly1305_asm.S
|
|
|
|
|
endif
|
2013-03-11 17:53:38 -07:00
|
|
|
endif
|
|
|
|
|
|
2013-03-11 17:13:24 -07:00
|
|
|
if BUILD_RC4
|
2014-12-19 09:26:22 -07:00
|
|
|
src_libwolfssl_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
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/md4.c
|
|
|
|
|
endif
|
2013-03-11 16:26:08 -07:00
|
|
|
|
2013-03-11 17:37:08 -07:00
|
|
|
if BUILD_MD5
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/md5.c
|
2013-03-11 17:37:08 -07:00
|
|
|
endif
|
|
|
|
|
|
2013-03-11 17:01:05 -07:00
|
|
|
if BUILD_PWDBASED
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/pwdbased.c
|
2016-10-29 13:12:26 -06:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/pkcs12.c
|
2014-12-29 10:27:03 -07:00
|
|
|
endif
|
2013-03-11 17:01:05 -07:00
|
|
|
|
2013-03-11 16:39:06 -07:00
|
|
|
if BUILD_DSA
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_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
|
2018-04-12 16:38:17 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_asm.S
|
2019-01-25 12:03:08 +10:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/aes_gcm_asm.S
|
2015-01-06 14:26:13 -07:00
|
|
|
endif
|
2018-02-09 09:54:34 -08:00
|
|
|
endif
|
2011-04-26 17:45:41 -07:00
|
|
|
|
2013-01-17 21:52:31 -08:00
|
|
|
if BUILD_CAMELLIA
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_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
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/md2.c
|
|
|
|
|
endif
|
2012-07-27 14:01:02 -07:00
|
|
|
|
2011-04-26 17:45:41 -07:00
|
|
|
if BUILD_RIPEMD
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_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
|
2014-12-19 09:26:22 -07:00
|
|
|
src_libwolfssl_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
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/blake2s.c
|
|
|
|
|
endif
|
2012-12-31 13:10:47 -08:00
|
|
|
|
2014-07-01 14:16:44 -06:00
|
|
|
if BUILD_CHACHA
|
2019-05-10 14:26:53 +02:00
|
|
|
if BUILD_ARMASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-chacha.c
|
|
|
|
|
else
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/chacha.c
|
2019-01-25 12:03:08 +10:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/chacha_asm.S
|
|
|
|
|
endif
|
2019-05-10 14:26:53 +02:00
|
|
|
endif
|
2015-02-24 12:33:52 -08:00
|
|
|
if BUILD_POLY1305
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/chacha20_poly1305.c
|
|
|
|
|
endif
|
2014-07-01 14:16:44 -06:00
|
|
|
endif
|
|
|
|
|
|
2013-03-13 12:25:34 -07:00
|
|
|
if !BUILD_INLINE
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/misc.c
|
|
|
|
|
endif
|
2011-08-03 10:59:08 -07:00
|
|
|
|
2011-04-26 17:45:41 -07:00
|
|
|
if BUILD_FASTMATH
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/tfm.c
|
2012-11-02 16:49:31 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SLOWMATH
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/integer.c
|
|
|
|
|
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
|
2014-12-19 16:31:01 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ecc.c
|
2011-04-26 17:45:41 -07:00
|
|
|
endif
|
2021-01-12 12:25:52 +10:00
|
|
|
if BUILD_ECCSI
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/eccsi.c
|
|
|
|
|
endif
|
|
|
|
|
if BUILD_SAKKE
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/sakke.c
|
|
|
|
|
endif
|
2017-12-01 11:45:16 -08:00
|
|
|
endif
|
2011-04-26 17:45:41 -07:00
|
|
|
|
2015-03-24 11:56:40 -07:00
|
|
|
if BUILD_CURVE25519
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/curve25519.c
|
2015-03-19 11:40:41 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ED25519
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ed25519.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_FEMATH
|
2017-06-16 09:41:10 -07:00
|
|
|
if BUILD_CURVE25519_SMALL
|
2015-06-05 15:39:37 -06:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_low_mem.c
|
|
|
|
|
else
|
2019-04-11 16:17:48 +10:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_x25519_asm.S
|
2019-04-18 14:29:02 +10:00
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519_c.c
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519_c.c
|
|
|
|
|
else
|
2019-06-07 14:16:45 +10:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-32-curve25519.S
|
2019-04-18 14:29:02 +10:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519.S
|
2022-02-07 09:20:49 +10:00
|
|
|
endif
|
2019-04-18 14:29:02 +10:00
|
|
|
else
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_operations.c
|
|
|
|
|
endif
|
2019-04-11 16:17:48 +10:00
|
|
|
endif
|
2015-03-19 11:40:41 -06:00
|
|
|
endif
|
2015-06-05 15:39:37 -06:00
|
|
|
endif
|
2015-03-19 11:40:41 -06:00
|
|
|
|
|
|
|
|
if BUILD_GEMATH
|
2017-06-16 09:41:10 -07:00
|
|
|
if BUILD_ED25519_SMALL
|
2015-06-05 15:39:37 -06:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ge_low_mem.c
|
|
|
|
|
else
|
2015-03-19 11:40:41 -06:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ge_operations.c
|
2017-07-12 15:53:11 -06:00
|
|
|
if !BUILD_FEMATH
|
2019-04-11 16:17:48 +10:00
|
|
|
if BUILD_INTELASM
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_x25519_asm.S
|
2019-04-18 14:29:02 +10:00
|
|
|
else
|
|
|
|
|
if BUILD_ARMASM
|
2022-02-07 09:20:49 +10:00
|
|
|
if BUILD_ARMASM_INLINE
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519_c.c
|
|
|
|
|
else
|
2019-04-18 14:29:02 +10:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/arm/armv8-curve25519.S
|
2022-02-07 09:20:49 +10:00
|
|
|
endif
|
2019-04-18 14:29:02 +10:00
|
|
|
else
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_operations.c
|
|
|
|
|
endif
|
2019-04-11 16:17:48 +10:00
|
|
|
endif
|
2017-07-12 15:53:11 -06:00
|
|
|
endif
|
2015-02-19 10:59:05 -07:00
|
|
|
endif
|
2015-06-05 15:39:37 -06:00
|
|
|
endif
|
2015-02-19 10:59:05 -07:00
|
|
|
|
2020-02-19 18:07:45 +10:00
|
|
|
if BUILD_CURVE448
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/curve448.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_ED448
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ed448.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_FE448
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_448.c
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_GE448
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/ge_448.c
|
|
|
|
|
if !BUILD_FE448
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/fe_448.c
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
2021-10-14 10:43:08 -04:00
|
|
|
if BUILD_LIBOQS
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/falcon.c
|
|
|
|
|
endif
|
|
|
|
|
|
2013-03-19 16:25:58 -07:00
|
|
|
if BUILD_LIBZ
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/compress.c
|
|
|
|
|
endif
|
2013-03-19 16:25:58 -07:00
|
|
|
|
2014-01-10 15:17:03 -07:00
|
|
|
if BUILD_PKCS7
|
2014-12-29 10:27:03 -07:00
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/pkcs7.c
|
|
|
|
|
endif
|
2014-01-10 15:17:03 -07:00
|
|
|
|
2015-07-06 14:10:20 -03:00
|
|
|
if BUILD_SRP
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/srp.c
|
|
|
|
|
endif
|
|
|
|
|
|
2018-07-18 17:26:25 -06:00
|
|
|
if BUILD_AFALG
|
|
|
|
|
src_libwolfssl_la_SOURCES += wolfcrypt/src/port/af_alg/wc_afalg.c
|
|
|
|
|
endif
|
|
|
|
|
|
2015-09-10 16:24:25 -07:00
|
|
|
if !BUILD_CRYPTONLY
|
2014-12-30 10:38:41 -07:00
|
|
|
# ssl files
|
|
|
|
|
src_libwolfssl_la_SOURCES += \
|
|
|
|
|
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
|
|
|
|
|
src_libwolfssl_la_SOURCES += src/tls13.c
|
|
|
|
|
endif
|
2014-12-30 10:38:41 -07:00
|
|
|
|
2014-11-07 13:09:32 -08:00
|
|
|
if BUILD_OCSP
|
2014-12-19 09:26:22 -07:00
|
|
|
src_libwolfssl_la_SOURCES += src/ocsp.c
|
2014-11-07 13:09:32 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_CRL
|
2014-12-19 09:26:22 -07:00
|
|
|
src_libwolfssl_la_SOURCES += src/crl.c
|
2014-11-07 13:09:32 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if BUILD_SNIFFER
|
2014-12-19 09:26:22 -07:00
|
|
|
src_libwolfssl_la_SOURCES += src/sniffer.c
|
2014-05-08 10:26:31 -07:00
|
|
|
endif
|
2015-09-10 16:24:25 -07:00
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_CRYPTONLY
|
|
|
|
|
|
2021-07-26 19:38:46 +02:00
|
|
|
|
2019-06-24 15:40:05 -07:00
|
|
|
endif !BUILD_FIPS_RAND
|