mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 11:00:27 +03:00
[crypto] Add DER image format
Add DER-encoded ASN.1 as an image format. There is no fixed signature for DER files. We treat an image as DER if it comprises a single valid SEQUENCE object covering the entire length of the image. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
16
src/include/ipxe/der.h
Normal file
16
src/include/ipxe/der.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _IPXE_DER_H
|
||||
#define _IPXE_DER_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* DER image format
|
||||
*
|
||||
*/
|
||||
|
||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
|
||||
#include <ipxe/image.h>
|
||||
|
||||
extern struct image_type der_image_type __image_type ( PROBE_NORMAL );
|
||||
|
||||
#endif /* _IPXE_DER_H */
|
||||
@@ -276,6 +276,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
#define ERRFILE_embedded ( ERRFILE_IMAGE | 0x00050000 )
|
||||
#define ERRFILE_pnm ( ERRFILE_IMAGE | 0x00060000 )
|
||||
#define ERRFILE_png ( ERRFILE_IMAGE | 0x00070000 )
|
||||
#define ERRFILE_der ( ERRFILE_IMAGE | 0x00080000 )
|
||||
|
||||
#define ERRFILE_asn1 ( ERRFILE_OTHER | 0x00000000 )
|
||||
#define ERRFILE_chap ( ERRFILE_OTHER | 0x00010000 )
|
||||
|
||||
Reference in New Issue
Block a user