AKASHI Takahiro | c4e961e | 2019-11-13 09:44:58 +0900 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # |
| 3 | # Makefile for asymmetric cryptographic keys |
| 4 | # |
| 5 | |
| 6 | obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys.o |
| 7 | |
| 8 | asymmetric_keys-y := asymmetric_type.o |
| 9 | |
| 10 | obj-$(CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE) += public_key.o |
AKASHI Takahiro | 9b933bf | 2019-11-13 09:44:59 +0900 | [diff] [blame] | 11 | |
| 12 | # |
| 13 | # RSA public key parser |
| 14 | # |
| 15 | obj-$(CONFIG_RSA_PUBLIC_KEY_PARSER) += rsa_public_key.o |
| 16 | rsa_public_key-y := \ |
| 17 | rsapubkey.asn1.o \ |
| 18 | rsa_helper.o |
| 19 | |
| 20 | $(obj)/rsapubkey.asn1.o: $(obj)/rsapubkey.asn1.c $(obj)/rsapubkey.asn1.h |
| 21 | $(obj)/rsa_helper.o: $(obj)/rsapubkey.asn1.h |
AKASHI Takahiro | b4adf62 | 2019-11-13 09:45:00 +0900 | [diff] [blame] | 22 | |
| 23 | # |
| 24 | # X.509 Certificate handling |
| 25 | # |
| 26 | obj-$(CONFIG_X509_CERTIFICATE_PARSER) += x509_key_parser.o |
| 27 | x509_key_parser-y := \ |
| 28 | x509.asn1.o \ |
| 29 | x509_akid.asn1.o \ |
| 30 | x509_cert_parser.o \ |
| 31 | x509_public_key.o |
| 32 | |
| 33 | $(obj)/x509_cert_parser.o: \ |
| 34 | $(obj)/x509.asn1.h \ |
| 35 | $(obj)/x509_akid.asn1.h |
| 36 | |
| 37 | $(obj)/x509.asn1.o: $(obj)/x509.asn1.c $(obj)/x509.asn1.h |
| 38 | $(obj)/x509_akid.asn1.o: $(obj)/x509_akid.asn1.c $(obj)/x509_akid.asn1.h |
AKASHI Takahiro | e85a787 | 2019-11-13 09:45:01 +0900 | [diff] [blame] | 39 | |
| 40 | # |
| 41 | # PKCS#7 message handling |
| 42 | # |
| 43 | obj-$(CONFIG_PKCS7_MESSAGE_PARSER) += pkcs7_message.o |
| 44 | pkcs7_message-y := \ |
| 45 | pkcs7.asn1.o \ |
| 46 | pkcs7_parser.o |
AKASHI Takahiro | 063499e | 2020-07-21 19:35:19 +0900 | [diff] [blame] | 47 | obj-$(CONFIG_PKCS7_VERIFY) += pkcs7_verify.o |
AKASHI Takahiro | e85a787 | 2019-11-13 09:45:01 +0900 | [diff] [blame] | 48 | |
| 49 | $(obj)/pkcs7_parser.o: $(obj)/pkcs7.asn1.h |
| 50 | $(obj)/pkcs7.asn1.o: $(obj)/pkcs7.asn1.c $(obj)/pkcs7.asn1.h |