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