]> git.baikalelectronics.ru Git - uboot.git/commit
lib: crypto: add mscode_parser
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 5 Jul 2022 05:48:11 +0000 (14:48 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 5 Jul 2022 12:37:16 +0000 (14:37 +0200)
commit34cc2d611fe987ee5587280ebd04c9e8330416c8
treeaa9fb9d50c9225efb6b9f12298a526f1f2dc4a3b
parent5e59f4db11d13a7be0d0827e406993886c6ad6a0
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 <takahiro.akashi@linaro.org>
include/crypto/mscode.h [new file with mode: 0644]
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/mscode.asn1 [new file with mode: 0644]
lib/crypto/mscode_parser.c [new file with mode: 0644]