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