1# $FreeBSD$ 2 3# This file is included by libsa 4# It contains SRCS needed for loader 5 6.PATH: ${.PARSEDIR} 7 8.include "Makefile.inc" 9 10.PATH: ${BEARSSL_SRC} 11 12CFLAGS+= -I${BEARSSL_SRC} 13 14# we do not need/want nested objdirs 15OBJS_SRCS_FILTER = T R 16 17# we list only the srcs the loader(s) actually needs 18SRCS+= \ 19 codec/ccopy.c \ 20 codec/dec32be.c \ 21 codec/dec64be.c \ 22 codec/enc32be.c \ 23 codec/enc64be.c \ 24 codec/pemdec.c \ 25 26SRCS+= \ 27 ec/ec_all_m31.c \ 28 ec/ec_c25519_m31.c \ 29 ec/ec_c25519_m62.c \ 30 ec/ec_c25519_m64.c \ 31 ec/ec_default.c \ 32 ec/ec_p256_m31.c \ 33 ec/ec_p256_m62.c \ 34 ec/ec_p256_m64.c \ 35 ec/ec_prime_i31.c \ 36 ec/ec_pubkey.c \ 37 ec/ec_secp256r1.c \ 38 ec/ec_secp384r1.c \ 39 ec/ec_secp521r1.c \ 40 ec/ecdsa_atr.c \ 41 ec/ecdsa_default_vrfy_asn1.c \ 42 ec/ecdsa_i31_bits.c \ 43 ec/ecdsa_i31_vrfy_asn1.c \ 44 ec/ecdsa_i31_vrfy_raw.c \ 45 46# Note: sha1 is needed for OpenPGP (keyId) 47SRCS+= \ 48 hash/multihash.c \ 49 hash/sha1.c \ 50 hash/sha2big.c \ 51 hash/sha2small.c \ 52 53SRCS+= \ 54 int/i31_add.c \ 55 int/i31_bitlen.c \ 56 int/i31_decmod.c \ 57 int/i31_decode.c \ 58 int/i31_encode.c \ 59 int/i31_fmont.c \ 60 int/i31_iszero.c \ 61 int/i31_moddiv.c \ 62 int/i31_modpow.c \ 63 int/i31_modpow2.c \ 64 int/i31_montmul.c \ 65 int/i31_muladd.c \ 66 int/i31_ninv31.c \ 67 int/i31_rshift.c \ 68 int/i31_sub.c \ 69 int/i31_tmont.c \ 70 int/i32_div32.c \ 71 int/i62_modpow2.c \ 72 73SRCS+= \ 74 rsa/rsa_default_pkcs1_vrfy.c \ 75 rsa/rsa_i31_pkcs1_vrfy.c \ 76 rsa/rsa_i31_pub.c \ 77 rsa/rsa_i62_pkcs1_vrfy.c \ 78 rsa/rsa_i62_pub.c \ 79 rsa/rsa_pkcs1_sig_unpad.c \ 80 81 82SRCS+= \ 83 x509/asn1enc.c \ 84 x509/x509_decoder.c \ 85 x509/x509_minimal.c \ 86 87