1 # SPDX-License-Identifier: GPL-2.0 << 2 # 1 # 3 # Makefile for asymmetric cryptographic keys 2 # Makefile for asymmetric cryptographic keys 4 # 3 # 5 4 6 obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetri 5 obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o 7 6 8 asymmetric_keys-y := \ !! 7 asymmetric_keys-y := asymmetric_type.o signature.o 9 asymmetric_type.o \ << 10 restrict.o \ << 11 signature.o << 12 8 13 obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += 9 obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o >> 10 obj-$(CONFIG_PUBLIC_KEY_ALGO_RSA) += rsa.o 14 11 15 # 12 # 16 # X.509 Certificate handling 13 # X.509 Certificate handling 17 # 14 # 18 obj-$(CONFIG_X509_CERTIFICATE_PARSER) += x509_ 15 obj-$(CONFIG_X509_CERTIFICATE_PARSER) += x509_key_parser.o 19 x509_key_parser-y := \ 16 x509_key_parser-y := \ 20 x509.asn1.o \ !! 17 x509-asn1.o \ 21 x509_akid.asn1.o \ !! 18 x509_akid-asn1.o \ >> 19 x509_rsakey-asn1.o \ 22 x509_cert_parser.o \ 20 x509_cert_parser.o \ 23 x509_loader.o \ << 24 x509_public_key.o 21 x509_public_key.o 25 obj-$(CONFIG_FIPS_SIGNATURE_SELFTEST) += x509_ << 26 x509_selftest-y += selftest.o << 27 x509_selftest-$(CONFIG_FIPS_SIGNATURE_SELFTEST << 28 x509_selftest-$(CONFIG_FIPS_SIGNATURE_SELFTEST << 29 22 30 $(obj)/x509_cert_parser.o: \ 23 $(obj)/x509_cert_parser.o: \ 31 $(obj)/x509.asn1.h \ !! 24 $(obj)/x509-asn1.h \ 32 $(obj)/x509_akid.asn1.h !! 25 $(obj)/x509_akid-asn1.h \ 33 !! 26 $(obj)/x509_rsakey-asn1.h 34 $(obj)/x509.asn1.o: $(obj)/x509.asn1.c $(obj)/ !! 27 $(obj)/x509-asn1.o: $(obj)/x509-asn1.c $(obj)/x509-asn1.h 35 $(obj)/x509_akid.asn1.o: $(obj)/x509_akid.asn1 !! 28 $(obj)/x509_akid-asn1.o: $(obj)/x509_akid-asn1.c $(obj)/x509_akid-asn1.h 36 !! 29 $(obj)/x509_rsakey-asn1.o: $(obj)/x509_rsakey-asn1.c $(obj)/x509_rsakey-asn1.h 37 # !! 30 38 # PKCS#8 private key handling !! 31 clean-files += x509-asn1.c x509-asn1.h 39 # !! 32 clean-files += x509_akid-asn1.c x509_akid-asn1.h 40 obj-$(CONFIG_PKCS8_PRIVATE_KEY_PARSER) += pkcs !! 33 clean-files += x509_rsakey-asn1.c x509_rsakey-asn1.h 41 pkcs8_key_parser-y := \ << 42 pkcs8.asn1.o \ << 43 pkcs8_parser.o << 44 << 45 $(obj)/pkcs8_parser.o: $(obj)/pkcs8.asn1.h << 46 $(obj)/pkcs8-asn1.o: $(obj)/pkcs8.asn1.c $(obj << 47 << 48 clean-files += pkcs8.asn1.c pkcs8.asn1.h << 49 34 50 # 35 # 51 # PKCS#7 message handling 36 # PKCS#7 message handling 52 # 37 # 53 obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_me 38 obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_message.o 54 pkcs7_message-y := \ 39 pkcs7_message-y := \ 55 pkcs7.asn1.o \ !! 40 pkcs7-asn1.o \ 56 pkcs7_parser.o \ 41 pkcs7_parser.o \ 57 pkcs7_trust.o \ 42 pkcs7_trust.o \ 58 pkcs7_verify.o 43 pkcs7_verify.o 59 44 60 $(obj)/pkcs7_parser.o: $(obj)/pkcs7.asn1.h !! 45 $(obj)/pkcs7_parser.o: $(obj)/pkcs7-asn1.h 61 $(obj)/pkcs7.asn1.o: $(obj)/pkcs7.asn1.c $(obj !! 46 $(obj)/pkcs7-asn1.o: $(obj)/pkcs7-asn1.c $(obj)/pkcs7-asn1.h >> 47 >> 48 clean-files += pkcs7-asn1.c pkcs7-asn1.h 62 49 63 # 50 # 64 # PKCS#7 parser testing key 51 # PKCS#7 parser testing key 65 # 52 # 66 obj-$(CONFIG_PKCS7_TEST_KEY) += pkcs7_test_key 53 obj-$(CONFIG_PKCS7_TEST_KEY) += pkcs7_test_key.o 67 pkcs7_test_key-y := \ 54 pkcs7_test_key-y := \ 68 pkcs7_key_type.o 55 pkcs7_key_type.o 69 56 70 # 57 # 71 # Signed PE binary-wrapped key handling 58 # Signed PE binary-wrapped key handling 72 # 59 # 73 obj-$(CONFIG_SIGNED_PE_FILE_VERIFICATION) += v 60 obj-$(CONFIG_SIGNED_PE_FILE_VERIFICATION) += verify_signed_pefile.o 74 61 75 verify_signed_pefile-y := \ 62 verify_signed_pefile-y := \ 76 verify_pefile.o \ 63 verify_pefile.o \ 77 mscode_parser.o \ 64 mscode_parser.o \ 78 mscode.asn1.o !! 65 mscode-asn1.o >> 66 >> 67 $(obj)/mscode_parser.o: $(obj)/mscode-asn1.h $(obj)/mscode-asn1.h >> 68 $(obj)/mscode-asn1.o: $(obj)/mscode-asn1.c $(obj)/mscode-asn1.h 79 69 80 $(obj)/mscode_parser.o: $(obj)/mscode.asn1.h $ !! 70 clean-files += mscode-asn1.c mscode-asn1.h 81 $(obj)/mscode.asn1.o: $(obj)/mscode.asn1.c $(o <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.