blob: 3e4de52970159e2dac85a1246e4d43af44fbf565 [file] [log] [blame]
David Howells964f3b32012-09-13 15:17:21 +01001#
2# Makefile for asymmetric cryptographic keys
3#
4
5obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o
6
David Howells4ae71c12012-09-21 23:25:04 +01007asymmetric_keys-y := asymmetric_type.o signature.o
David Howellsa9681bf2012-09-21 23:24:55 +01008
9obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o
David Howells612e0fe2012-09-21 23:25:40 +010010obj-$(CONFIG_PUBLIC_KEY_ALGO_RSA) += rsa.o
David Howellsc26fd692012-09-24 17:11:48 +010011
12#
13# X.509 Certificate handling
14#
15obj-$(CONFIG_X509_CERTIFICATE_PARSER) += x509_key_parser.o
16x509_key_parser-y := \
17 x509-asn1.o \
18 x509_rsakey-asn1.o \
19 x509_cert_parser.o \
20 x509_public_key.o
21
22$(obj)/x509_cert_parser.o: $(obj)/x509-asn1.h $(obj)/x509_rsakey-asn1.h
23$(obj)/x509-asn1.o: $(obj)/x509-asn1.c $(obj)/x509-asn1.h
24$(obj)/x509_rsakey-asn1.o: $(obj)/x509_rsakey-asn1.c $(obj)/x509_rsakey-asn1.h
25
26clean-files += x509-asn1.c x509-asn1.h
27clean-files += x509_rsakey-asn1.c x509_rsakey-asn1.h
David Howells2e3fadb2014-07-01 16:40:19 +010028
29#
30# PKCS#7 message handling
31#
32obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_message.o
33pkcs7_message-y := \
34 pkcs7-asn1.o \
David Howells9f0d3312014-07-01 16:40:19 +010035 pkcs7_parser.o \
David Howells08815b62014-07-01 16:40:20 +010036 pkcs7_trust.o \
David Howells9f0d3312014-07-01 16:40:19 +010037 pkcs7_verify.o
David Howells2e3fadb2014-07-01 16:40:19 +010038
39$(obj)/pkcs7_parser.o: $(obj)/pkcs7-asn1.h
40$(obj)/pkcs7-asn1.o: $(obj)/pkcs7-asn1.c $(obj)/pkcs7-asn1.h
41
42clean-files += pkcs7-asn1.c pkcs7-asn1.h
David Howells22d01af2014-07-01 19:06:18 +010043
44#
45# PKCS#7 parser testing key
46#
47obj-$(CONFIG_PKCS7_TEST_KEY) += pkcs7_test_key.o
48pkcs7_test_key-y := \
49 pkcs7_key_type.o
David Howells26d11642014-07-01 16:02:51 +010050
51#
52# Signed PE binary-wrapped key handling
53#
54obj-$(CONFIG_SIGNED_PE_FILE_VERIFICATION) += verify_signed_pefile.o
55
56verify_signed_pefile-y := \
57 verify_pefile.o