diff options
| author | AKASHI Takahiro <[email protected]> | 2022-07-05 14:48:11 +0900 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2022-07-05 14:37:16 +0200 |
| commit | b124efc09fc5f62cc2e17d956ba3c5c9168738e8 (patch) | |
| tree | aa9fb9d50c9225efb6b9f12298a526f1f2dc4a3b /lib/crypto/Makefile | |
| parent | 0cc846dafcf6f6270c6587d6fe79011834d6e49a (diff) | |
lib: crypto: add mscode_parser
In MS authenticode, pkcs7 should have data in its contentInfo field.
This data is tagged with SpcIndirectData type and, for a signed PE image,
provides a image's message digest as SpcPeImageData.
This parser is used in image authentication to parse the field and
retrieve a message digest.
Imported from linux v5.19-rc, crypto/asymmetric_keys/mscode*.
Checkpatch.pl generates tones of warnings, but those are not fixed
for the sake of maintainability (importing from another source).
Signed-off-by: AKASHI Takahiro <[email protected]>
Diffstat (limited to 'lib/crypto/Makefile')
| -rw-r--r-- | lib/crypto/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/crypto/Makefile b/lib/crypto/Makefile index 6792b1d4f00..bec1bc95a65 100644 --- a/lib/crypto/Makefile +++ b/lib/crypto/Makefile @@ -55,3 +55,15 @@ obj-$(CONFIG_$(SPL_)PKCS7_VERIFY) += pkcs7_verify.o $(obj)/pkcs7_parser.o: $(obj)/pkcs7.asn1.h $(obj)/pkcs7.asn1.o: $(obj)/pkcs7.asn1.c $(obj)/pkcs7.asn1.h + +# +# Signed PE binary-wrapped key handling +# +obj-$(CONFIG_$(SPL_)MSCODE_PARSER) += mscode.o + +mscode-y := \ + mscode_parser.o \ + mscode.asn1.o + +$(obj)/mscode_parser.o: $(obj)/mscode.asn1.h $(obj)/mscode.asn1.h +$(obj)/mscode.asn1.o: $(obj)/mscode.asn1.c $(obj)/mscode.asn1.h |
