3 .if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
4 SRCS+= crypto_openssl.c
5 DPADD+= ${LIBSSL} ${LIBCRYPTO}
8 CFLAGS+=-DCONFIG_CRYPTO_INTERNAL
9 SRCS+= crypto_internal.c
15 CONFIG_INTERNAL_SHA1=y
16 CONFIG_INTERNAL_SHA256=y
21 .if defined(TLS_FUNCS)
23 .if defined(CONFIG_INTERNAL_TLS)
24 CFLAGS+=-DCONFIG_INTERNAL_LIBTOMMATH \
25 -DCONFIG_TLS_INTERNAL_CLIENT
28 crypto_internal-cipher.c \
29 crypto_internal-modexp.c \
30 crypto_internal-rsa.c \
40 tlsv1_client_write.c \
47 CFLAGS+=-DEAP_TLS_OPENSSL
52 .if defined(CONFIG_INTERNAL_AES)
53 SRCS+= aes-internal.c \
58 .if defined(NEED_AES_CBC)
62 .if defined(NEED_AES_EAX)
67 .if defined(NEED_AES_CTR)
71 .if defined(NEED_AES_ENCBLOCK)
75 .if defined(NEED_AES_OMAC1)
80 .if defined(CONFIG_INTERNAL_DES)
86 .if defined(CONFIG_INTERNAL_MD4)
91 .if defined(CONFIG_INTERNAL_MD5)
95 .if defined(NEED_FIPS186_2_PRF)
96 .if defined(CONFIG_INTERNAL_SHA1)
97 SRCS+= fips_prf_internal.c
99 SRCS+= fips_prf_openssl.c
103 .if defined(CONFIG_INTERNAL_RC4)
107 .if defined(CONFIG_INTERNAL_SHA1)
108 SRCS+= sha1-internal.c
111 .if defined(NEED_SHA256)
112 CFLAGS+=-DCONFIG_SHA256
114 .if defined(CONFIG_INTERNAL_SHA256)
115 SRCS+= sha256-internal.c
119 .if defined(NEED_TLS_PRF)