Home | History | Annotate | Line # | Download | only in libcrypto
      1  1.24  riastrad #	$NetBSD: Makefile,v 1.24 2024/07/26 18:25:03 riastradh Exp $
      2   1.1     pooka #
      3   1.1     pooka 
      4  1.22  christos S=${.CURDIR}/../../../..
      5  1.22  christos SODIUM_IMPORTDIR=${S}/external/isc/libsodium
      6  1.22  christos SODIUM_DIR=${SODIUM_IMPORTDIR}/dist/src/libsodium
      7  1.22  christos 
      8  1.22  christos .PATH:	${S}/crypto/adiantum						\
      9  1.22  christos 	${S}/crypto/aes							\
     10  1.22  christos 	${S}/crypto/blowfish						\
     11  1.22  christos 	${S}/crypto/camellia						\
     12  1.22  christos 	${S}/crypto/cast128						\
     13  1.22  christos 	${S}/crypto/des							\
     14  1.22  christos 	${S}/crypto/skipjack						\
     15  1.14  riastrad 	${SODIUM_DIR}/crypto_scalarmult/curve25519/ref10		\
     16  1.14  riastrad 	${SODIUM_DIR}/crypto_scalarmult/curve25519			\
     17  1.14  riastrad 	${SODIUM_DIR}/crypto_scalarmult					\
     18  1.14  riastrad 	${SODIUM_DIR}/crypto_onetimeauth/poly1305/donna			\
     19  1.14  riastrad 	${SODIUM_DIR}/crypto_onetimeauth/poly1305			\
     20  1.14  riastrad 	${SODIUM_DIR}/crypto_onetimeauth				\
     21  1.14  riastrad 	${SODIUM_DIR}/crypto_stream/chacha20/ref			\
     22  1.14  riastrad 	${SODIUM_DIR}/crypto_stream/chacha20				\
     23  1.14  riastrad 	${SODIUM_DIR}/crypto_aead/xchacha20poly1305/sodium		\
     24  1.14  riastrad 	${SODIUM_DIR}/crypto_aead/chacha20poly1305/sodium		\
     25  1.14  riastrad 	${SODIUM_DIR}/crypto_core/hchacha20				\
     26  1.22  christos 	${SODIUM_DIR}/crypto_core/ed25519/ref10				\
     27  1.22  christos 	${SODIUM_IMPORTDIR}/src
     28   1.1     pooka 
     29   1.1     pooka LIB=	rumpkern_crypto
     30   1.4     pooka COMMENT=Cryptographic routines
     31   1.1     pooka 
     32   1.8  riastrad # Adiantum
     33   1.8  riastrad SRCS+=	adiantum.c
     34   1.8  riastrad SRCS+=	adiantum_selftest.c
     35   1.8  riastrad 
     36  1.12  riastrad # AES
     37  1.12  riastrad SRCS+=	aes_bear.c
     38  1.12  riastrad SRCS+=	aes_ccm.c
     39  1.12  riastrad SRCS+=	aes_ccm_mbuf.c
     40  1.12  riastrad SRCS+=	aes_ct.c
     41  1.12  riastrad SRCS+=	aes_ct_dec.c
     42  1.12  riastrad SRCS+=	aes_ct_enc.c
     43  1.12  riastrad SRCS+=	aes_impl.c
     44  1.12  riastrad SRCS+=	aes_selftest.c
     45  1.12  riastrad 
     46   1.1     pooka # blowfish
     47   1.2  pgoyette SRCS+=	bf_ecb.c bf_enc.c bf_cbc.c bf_skey.c bf_module.c
     48   1.2  pgoyette 
     49   1.2  pgoyette # camellia
     50   1.2  pgoyette SRCS+=  camellia.c camellia-api.c
     51   1.1     pooka 
     52  1.12  riastrad # cast128
     53  1.12  riastrad SRCS+=	cast128.c
     54  1.12  riastrad 
     55   1.1     pooka # DES
     56   1.2  pgoyette SRCS+=	des_ecb.c des_setkey.c des_enc.c des_cbc.c des_module.c
     57   1.1     pooka 
     58   1.1     pooka # skipjack
     59   1.1     pooka SRCS+=	skipjack.c
     60   1.1     pooka 
     61  1.20  riastrad # libsodium
     62  1.14  riastrad SODIUM_CPPFLAGS+=	-I${SODIUM_IMPORTDIR}/include
     63  1.14  riastrad SODIUM_CPPFLAGS+=	-I${SODIUM_IMPORTDIR}/dist/src/libsodium/include/sodium
     64  1.18  riastrad 
     65  1.19  riastrad #SODIUM_CPPFLAGS+=	-DHAVE_TI_MODE
     66  1.18  riastrad 
     67  1.20  riastrad SODIUM_CWARNFLAGS+=	-Wno-shadow
     68  1.20  riastrad SODIUM_CWARNFLAGS+=	-Wno-unused-function
     69  1.20  riastrad SODIUM_CWARNFLAGS+=	-Wno-unused-variable
     70  1.20  riastrad 
     71  1.20  riastrad SODIUM_SRCS+=	x25519_ref10.c
     72  1.20  riastrad SODIUM_SRCS+=	scalarmult_curve25519.c
     73  1.20  riastrad SODIUM_SRCS+=	crypto_scalarmult.c
     74  1.20  riastrad SODIUM_SRCS+=	poly1305_donna.c
     75  1.20  riastrad SODIUM_SRCS+=	onetimeauth_poly1305.c
     76  1.20  riastrad SODIUM_SRCS+=	crypto_onetimeauth.c
     77  1.20  riastrad SODIUM_SRCS+=	chacha20_ref.c
     78  1.20  riastrad SODIUM_SRCS+=	stream_chacha20.c
     79  1.20  riastrad SODIUM_SRCS+=	aead_xchacha20poly1305.c
     80  1.20  riastrad SODIUM_SRCS+=	aead_chacha20poly1305.c
     81  1.20  riastrad SODIUM_SRCS+=	core_hchacha20.c
     82  1.20  riastrad SODIUM_SRCS+=	ed25519_ref10.c
     83  1.23  christos SODIUM_SRCS+=	sodium_module.c
     84  1.24  riastrad SODIUM_SRCS+=	sodium_selftest.c
     85  1.20  riastrad 
     86  1.20  riastrad SRCS+=	${SODIUM_SRCS}
     87  1.20  riastrad 
     88  1.20  riastrad .for _s_ in ${SODIUM_SRCS}
     89  1.20  riastrad CPPFLAGS.${_s_}+=	${SODIUM_CPPFLAGS}
     90  1.20  riastrad COPTS.${_s_}+=		${SODIUM_CWARNFLAGS}
     91  1.20  riastrad .endfor
     92  1.14  riastrad 
     93   1.1     pooka .include <bsd.lib.mk>
     94   1.1     pooka .include <bsd.klinks.mk>
     95