3 .if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
4 SRCS+= crypto_openssl.c random.c sha1-prf.c sha256-prf.c sha256-tlsprf.c \
7 CFLAGS+= -DCONFIG_SHA256
9 CFLAGS+=-DCONFIG_CRYPTO_INTERNAL
10 SRCS+= crypto_internal.c random.c
16 CONFIG_INTERNAL_SHA1=y
18 CONFIG_INTERNAL_SHA256=y
27 .if defined(TLS_FUNCS)
29 .if defined(CONFIG_INTERNAL_TLS)
30 CFLAGS+=-DCONFIG_INTERNAL_LIBTOMMATH \
31 -DCONFIG_TLS_INTERNAL_CLIENT
34 crypto_internal-cipher.c \
35 crypto_internal-modexp.c \
36 crypto_internal-rsa.c \
46 tlsv1_client_write.c \
53 CFLAGS+=-DEAP_TLS_OPENSSL
54 SRCS+= tls_openssl.c tls_openssl_ocsp.c
58 .if defined(CONFIG_INTERNAL_AES)
59 SRCS+= aes-unwrap.c aes-wrap.c \
65 .if defined(NEED_AES_CBC)
69 .if defined(NEED_AES_EAX)
74 .if defined(NEED_AES_CTR)
78 .if defined(NEED_AES_ENCBLOCK)
82 .if defined(NEED_AES_OMAC1)
87 .if defined(CONFIG_INTERNAL_DES)
93 .if defined(CONFIG_INTERNAL_MD4)
98 .if defined(CONFIG_INTERNAL_MD5)
99 SRCS+= md5.c md5-internal.c
102 .if defined(NEED_FIPS186_2_PRF)
103 .if defined(CONFIG_INTERNAL_SHA1)
104 SRCS+= fips_prf_internal.c
106 SRCS+= fips_prf_openssl.c
110 .if defined(CONFIG_INTERNAL_RC4)
114 .if defined(CONFIG_INTERNAL_SHA1)
115 SRCS+= sha1-internal.c sha1-pbkdf2.c sha1.c sha1-prf.c
118 .if defined(NEED_SHA256)
119 CFLAGS+=-DCONFIG_SHA256
121 .if defined(CONFIG_INTERNAL_SHA256)
122 SRCS+= sha256-internal.c sha256-prf.c
126 .if defined(NEED_TLS_PRF)
130 .if defined(CONFIG_INTERNAL_DH5)
134 .if defined(CONFIG_INTERNAL_DH)