TianoCore EDK2 master
Loading...
Searching...
No Matches
CryptPkcs7Internal.h File Reference
#include "InternalCryptLib.h"
#include "mbedtls/oid.h"
#include "mbedtls/asn1.h"
#include "mbedtls/asn1write.h"
#include "mbedtls/x509.h"
#include "mbedtls/x509_crt.h"

Go to the source code of this file.

Data Structures

struct  MbedtlsPkcs7SignerInfo
 
struct  MbedtlsPkcs7Data
 
struct  MbedtlsPkcs7SignedData
 
struct  MbedtlsPkcs7
 

Macros

#define MBEDTLS_OID_PKCS7   MBEDTLS_OID_PKCS "\x07"
 
#define MBEDTLS_OID_PKCS7_DATA   MBEDTLS_OID_PKCS7 "\x01"
 
#define MBEDTLS_OID_PKCS7_SIGNED_DATA   MBEDTLS_OID_PKCS7 "\x02"
 
#define MBEDTLS_OID_PKCS7_ENVELOPED_DATA   MBEDTLS_OID_PKCS7 "\x03"
 
#define MBEDTLS_OID_PKCS7_SIGNED_AND_ENVELOPED_DATA   MBEDTLS_OID_PKCS7 "\x04"
 
#define MBEDTLS_OID_PKCS7_DIGESTED_DATA   MBEDTLS_OID_PKCS7 "\x05"
 
#define MBEDTLS_OID_PKCS7_ENCRYPTED_DATA   MBEDTLS_OID_PKCS7 "\x06"
 
#define EDKII_ASN1_CHK_ADD(g, f)
 

Typedefs

typedef struct MbedtlsPkcs7SignerInfo MbedtlsPkcs7SignerInfo
 
typedef struct MbedtlsPkcs7Data MbedtlsPkcs7Data
 
typedef struct MbedtlsPkcs7SignedData MbedtlsPkcs7SignedData
 
typedef struct MbedtlsPkcs7 MbedtlsPkcs7
 

Detailed Description

PKCS#7 SignedData Sign Wrapper and PKCS#7 SignedData Verification Wrapper Implementation over mbedtls, Internal headers.

RFC 2315 - PKCS #7: Cryptographic Message Syntax Version 1.5

Copyright (c) 2023-2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file CryptPkcs7Internal.h.

Macro Definition Documentation

◆ EDKII_ASN1_CHK_ADD

#define EDKII_ASN1_CHK_ADD (   g,
 
)
Value:
do \
{ \
if( ( Ret = (f) ) < 0 ) \
return( Ret ); \
else \
(g) += Ret; \
} while( 0 )

Definition at line 79 of file CryptPkcs7Internal.h.

◆ MBEDTLS_OID_PKCS7

#define MBEDTLS_OID_PKCS7   MBEDTLS_OID_PKCS "\x07"

PKCS7 OID

Definition at line 26 of file CryptPkcs7Internal.h.

◆ MBEDTLS_OID_PKCS7_DATA

#define MBEDTLS_OID_PKCS7_DATA   MBEDTLS_OID_PKCS7 "\x01"

Definition at line 27 of file CryptPkcs7Internal.h.

◆ MBEDTLS_OID_PKCS7_DIGESTED_DATA

#define MBEDTLS_OID_PKCS7_DIGESTED_DATA   MBEDTLS_OID_PKCS7 "\x05"

Definition at line 31 of file CryptPkcs7Internal.h.

◆ MBEDTLS_OID_PKCS7_ENCRYPTED_DATA

#define MBEDTLS_OID_PKCS7_ENCRYPTED_DATA   MBEDTLS_OID_PKCS7 "\x06"

Definition at line 32 of file CryptPkcs7Internal.h.

◆ MBEDTLS_OID_PKCS7_ENVELOPED_DATA

#define MBEDTLS_OID_PKCS7_ENVELOPED_DATA   MBEDTLS_OID_PKCS7 "\x03"

Definition at line 29 of file CryptPkcs7Internal.h.

◆ MBEDTLS_OID_PKCS7_SIGNED_AND_ENVELOPED_DATA

#define MBEDTLS_OID_PKCS7_SIGNED_AND_ENVELOPED_DATA   MBEDTLS_OID_PKCS7 "\x04"

Definition at line 30 of file CryptPkcs7Internal.h.

◆ MBEDTLS_OID_PKCS7_SIGNED_DATA

#define MBEDTLS_OID_PKCS7_SIGNED_DATA   MBEDTLS_OID_PKCS7 "\x02"

Definition at line 28 of file CryptPkcs7Internal.h.

Typedef Documentation

◆ MbedtlsPkcs7

typedef struct MbedtlsPkcs7 MbedtlsPkcs7

PKCS7 struct, only support SignedData

◆ MbedtlsPkcs7Data

PKCS7 signed data attached data format

◆ MbedtlsPkcs7SignedData

◆ MbedtlsPkcs7SignerInfo