1 1.14 riastrad # $NetBSD: Makefile,v 1.14 2020/08/20 21:21:32 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 ${.CURDIR}/../../../../external/cc0/libb2/dist/src \ 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.14 riastrad ${SODIUM_DIR}/crypto_core/ed25519/ref10 27 1.1 pooka 28 1.1 pooka LIB= rumpkern_crypto 29 1.4 pooka COMMENT=Cryptographic routines 30 1.1 pooka 31 1.8 riastrad # Adiantum 32 1.8 riastrad SRCS+= adiantum.c 33 1.8 riastrad SRCS+= adiantum_selftest.c 34 1.8 riastrad 35 1.12 riastrad # AES 36 1.12 riastrad SRCS+= aes_bear.c 37 1.12 riastrad SRCS+= aes_ccm.c 38 1.12 riastrad SRCS+= aes_ccm_mbuf.c 39 1.12 riastrad SRCS+= aes_ct.c 40 1.12 riastrad SRCS+= aes_ct_dec.c 41 1.12 riastrad SRCS+= aes_ct_enc.c 42 1.12 riastrad SRCS+= aes_impl.c 43 1.12 riastrad SRCS+= aes_selftest.c 44 1.12 riastrad 45 1.1 pooka # blowfish 46 1.2 pgoyette SRCS+= bf_ecb.c bf_enc.c bf_cbc.c bf_skey.c bf_module.c 47 1.2 pgoyette 48 1.2 pgoyette # camellia 49 1.2 pgoyette SRCS+= camellia.c camellia-api.c 50 1.1 pooka 51 1.12 riastrad # cast128 52 1.12 riastrad SRCS+= cast128.c 53 1.12 riastrad 54 1.1 pooka # DES 55 1.2 pgoyette SRCS+= des_ecb.c des_setkey.c des_enc.c des_cbc.c des_module.c 56 1.1 pooka 57 1.1 pooka # skipjack 58 1.1 pooka SRCS+= skipjack.c 59 1.1 pooka 60 1.14 riastrad # BLAKE2 61 1.14 riastrad SRCS+= blake2s-ref.c 62 1.14 riastrad CPPFLAGS.blake2s-ref.c+= -I${.CURDIR}/../../../../external/cc0/libb2/include \ 63 1.14 riastrad -Wno-cast-qual -DSUFFIX= 64 1.14 riastrad 65 1.14 riastrad # Various cryptography functions 66 1.14 riastrad SODIUM_CPPFLAGS= 67 1.14 riastrad SODIUM_CPPFLAGS+= -I${SODIUM_IMPORTDIR}/include 68 1.14 riastrad SODIUM_CPPFLAGS+= -I${SODIUM_IMPORTDIR}/dist/src/libsodium/include/sodium 69 1.14 riastrad SODIUM_CPPFLAGS+= -Wno-unused-function -Wno-unused-variable -DHAVE_TI_MODE 70 1.14 riastrad 71 1.14 riastrad CPPFLAGS.x25519_ref10.c+= ${SODIUM_CPPFLAGS} 72 1.14 riastrad CPPFLAGS.scalarmult_curve25519.c+= ${SODIUM_CPPFLAGS} 73 1.14 riastrad CPPFLAGS.crypto_scalarmult.c+= ${SODIUM_CPPFLAGS} 74 1.14 riastrad CPPFLAGS.poly1305_donna.c+= ${SODIUM_CPPFLAGS} 75 1.14 riastrad CPPFLAGS.onetimeauth_poly1305.c+= ${SODIUM_CPPFLAGS} 76 1.14 riastrad CPPFLAGS.crypto_onetimeauth.c+= ${SODIUM_CPPFLAGS} 77 1.14 riastrad CPPFLAGS.chacha20_ref.c+= ${SODIUM_CPPFLAGS} 78 1.14 riastrad CPPFLAGS.stream_chacha20.c+= ${SODIUM_CPPFLAGS} 79 1.14 riastrad CPPFLAGS.aead_xchacha20poly1305.c+= ${SODIUM_CPPFLAGS} 80 1.14 riastrad CPPFLAGS.aead_chacha20poly1305.c+= ${SODIUM_CPPFLAGS} 81 1.14 riastrad CPPFLAGS.core_hchacha20.c+= ${SODIUM_CPPFLAGS} 82 1.14 riastrad CPPFLAGS.ed25519_ref10.c+= ${SODIUM_CPPFLAGS} 83 1.14 riastrad 84 1.14 riastrad SRCS+= x25519_ref10.c scalarmult_curve25519.c crypto_scalarmult.c 85 1.14 riastrad SRCS+= poly1305_donna.c onetimeauth_poly1305.c 86 1.14 riastrad SRCS+= crypto_onetimeauth.c chacha20_ref.c stream_chacha20.c 87 1.14 riastrad SRCS+= aead_xchacha20poly1305.c aead_chacha20poly1305.c 88 1.14 riastrad SRCS+= core_hchacha20.c ed25519_ref10.c 89 1.14 riastrad 90 1.1 pooka .include <bsd.lib.mk> 91 1.1 pooka .include <bsd.klinks.mk> 92