2017-07-10 21:33:07 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter wolfcrypt-test,$(USEMODULE)))
|
|
|
|
USEMODULE += wolfcrypt
|
|
|
|
USEMODULE += wolfcrypt_coding
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfcrypt-benchmark,$(USEMODULE)))
|
|
|
|
USEMODULE += wolfcrypt
|
|
|
|
USEMODULE += wolfcrypt_coding
|
2019-06-06 11:15:12 +02:00
|
|
|
USEMODULE += printf_float
|
2017-07-10 21:33:07 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfcrypt_poly1305,$(USEMODULE)))
|
|
|
|
ifneq (,$(filter wolfcrypt_chacha,$(USEMODULE)))
|
|
|
|
USEMODULE += wolfcrypt_chacha20_poly1305
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfcrypt_ed25519,$(USEMODULE)))
|
2019-06-06 11:15:12 +02:00
|
|
|
USEMODULE += wolfcrypt_sha512
|
2017-07-10 21:33:07 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfcrypt_aes,$(USEMODULE)))
|
2019-06-06 11:15:12 +02:00
|
|
|
USEMODULE += wolfcrypt_cmac
|
|
|
|
USEMODULE += wolfcrypt_coding
|
2017-07-10 21:33:07 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfcrypt_pwdbased,$(USEMODULE)))
|
2019-06-06 11:15:12 +02:00
|
|
|
USEMODULE += wolfcrypt_pkcs12
|
2017-07-10 21:33:07 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfcrypt_asn,$(USEMODULE)))
|
2019-06-06 11:15:12 +02:00
|
|
|
USEMODULE += wolfcrypt_pkcs12
|
2017-07-10 21:33:07 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfssl_tls13,$(USEMODULE)))
|
|
|
|
USEMODULE += wolfcrypt_aes
|
|
|
|
USEMODULE += sock_tls
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfssl_dtls,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_tls
|
|
|
|
endif
|
|
|
|
|
2019-06-06 11:15:12 +02:00
|
|
|
ifneq (,$(filter wolfssl_psk,$(USEMODULE)))
|
|
|
|
USEMODULE += sock_tls
|
|
|
|
endif
|
|
|
|
|
2017-07-10 21:33:07 +02:00
|
|
|
ifneq (,$(filter sock_tls,$(USEMODULE)))
|
|
|
|
USEMODULE += wolfcrypt
|
|
|
|
USEMODULE += wolfcrypt_aes
|
|
|
|
USEMODULE += wolfcrypt_asn
|
|
|
|
USEMODULE += wolfcrypt_hmac
|
|
|
|
USEMODULE += wolfcrypt_md5
|
|
|
|
USEMODULE += wolfcrypt_sha
|
|
|
|
USEMODULE += wolfcrypt_random
|
|
|
|
USEMODULE += wolfssl_internal
|
|
|
|
USEMODULE += wolfssl_wolfio
|
|
|
|
USEMODULE += wolfssl_keys
|
|
|
|
USEMODULE += wolfssl_ssl
|
|
|
|
USEMODULE += wolfssl_tls
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfssl_socket,$(USEMODULE)))
|
|
|
|
USEMODULE += wolfcrypt
|
|
|
|
USEMODULE += wolfcrypt_aes
|
|
|
|
USEMODULE += wolfcrypt_asn
|
|
|
|
USEMODULE += wolfcrypt_hmac
|
|
|
|
USEMODULE += wolfcrypt_md5
|
|
|
|
USEMODULE += wolfcrypt_sha
|
|
|
|
USEMODULE += wolfcrypt_random
|
|
|
|
USEMODULE += wolfssl_internal
|
|
|
|
USEMODULE += wolfssl_wolfio
|
|
|
|
USEMODULE += wolfssl_keys
|
|
|
|
USEMODULE += wolfssl_ssl
|
|
|
|
USEMODULE += wolfssl_tls
|
|
|
|
USEMODULE += posix_sockets
|
2019-06-06 11:15:12 +02:00
|
|
|
USEMODULE += posix_inet
|
2017-07-10 21:33:07 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter wolfcrypt_random,$(USEMODULE)))
|
|
|
|
USEMODULE += random
|
|
|
|
endif
|
2019-10-30 11:04:12 +01:00
|
|
|
|
2022-03-02 10:00:00 +01:00
|
|
|
ifneq (,$(filter newlib_syscalls_default,$(USEMODULE)))
|
|
|
|
USEMODULE += libc_gettimeofday
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(filter native,$(CPU)))
|
|
|
|
USEMODULE += libc_gettimeofday
|
|
|
|
endif
|
|
|
|
|
2019-10-30 11:04:12 +01:00
|
|
|
# wolfssl is only supported by 32 bit architectures
|
2024-01-12 17:53:46 +01:00
|
|
|
FEATURES_REQUIRED_ANY += arch_32bit|arch_64bit
|