mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-11-03 18:01:41 +01:00 
			
		
		
		
	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>
		
			
				
	
	
		
			29 lines
		
	
	
		
			840 B
		
	
	
	
		
			Groff
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			840 B
		
	
	
	
		
			Groff
		
	
	
	
	
	
--- Microsoft individual code signing data blob parser
 | 
						|
---
 | 
						|
--- Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
 | 
						|
--- Written by David Howells (dhowells@redhat.com)
 | 
						|
---
 | 
						|
--- This program is free software; you can redistribute it and/or
 | 
						|
--- modify it under the terms of the GNU General Public Licence
 | 
						|
--- as published by the Free Software Foundation; either version
 | 
						|
--- 2 of the Licence, or (at your option) any later version.
 | 
						|
---
 | 
						|
 | 
						|
MSCode ::= SEQUENCE {
 | 
						|
	type			SEQUENCE {
 | 
						|
		contentType	ContentType,
 | 
						|
		parameters	ANY
 | 
						|
	},
 | 
						|
	content			SEQUENCE {
 | 
						|
		digestAlgorithm	DigestAlgorithmIdentifier,
 | 
						|
		digest		OCTET STRING ({ mscode_note_digest })
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
ContentType ::= OBJECT IDENTIFIER ({ mscode_note_content_type })
 | 
						|
 | 
						|
DigestAlgorithmIdentifier ::= SEQUENCE {
 | 
						|
	algorithm   OBJECT IDENTIFIER ({ mscode_note_digest_algo }),
 | 
						|
	parameters  ANY OPTIONAL
 | 
						|
}
 |