OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
cms_lcl.h File Reference
#include <openssl/x509.h>

Go to the source code of this file.

Classes

struct  CMS_ContentInfo_st
 
struct  CMS_SignedData_st
 
struct  CMS_EncapsulatedContentInfo_st
 
struct  CMS_SignerInfo_st
 
struct  CMS_SignerIdentifier_st
 
struct  CMS_EnvelopedData_st
 
struct  CMS_OriginatorInfo_st
 
struct  CMS_EncryptedContentInfo_st
 
struct  CMS_RecipientInfo_st
 
struct  CMS_KeyTransRecipientInfo_st
 
struct  CMS_KeyAgreeRecipientInfo_st
 
struct  CMS_OriginatorIdentifierOrKey_st
 
struct  CMS_OriginatorPublicKey_st
 
struct  CMS_RecipientEncryptedKey_st
 
struct  CMS_KeyAgreeRecipientIdentifier_st
 
struct  CMS_RecipientKeyIdentifier_st
 
struct  CMS_KEKRecipientInfo_st
 
struct  CMS_KEKIdentifier_st
 
struct  CMS_PasswordRecipientInfo_st
 
struct  CMS_OtherRecipientInfo_st
 
struct  CMS_DigestedData_st
 
struct  CMS_EncryptedData_st
 
struct  CMS_AuthenticatedData_st
 
struct  CMS_CompressedData_st
 
struct  CMS_RevocationInfoChoice_st
 
struct  CMS_OtherRevocationInfoFormat_st
 
struct  CMS_CertificateChoices
 
struct  CMS_OtherCertificateFormat_st
 
struct  CMS_IssuerAndSerialNumber_st
 
struct  CMS_OtherKeyAttribute_st
 
struct  CMS_Receipt_st
 

Macros

#define CMS_REVCHOICE_CRL   0
 
#define CMS_REVCHOICE_OTHER   1
 
#define CMS_CERTCHOICE_CERT   0
 
#define CMS_CERTCHOICE_EXCERT   1
 
#define CMS_CERTCHOICE_V1ACERT   2
 
#define CMS_CERTCHOICE_V2ACERT   3
 
#define CMS_CERTCHOICE_OTHER   4
 
#define CMS_SIGNERINFO_ISSUER_SERIAL   0
 
#define CMS_SIGNERINFO_KEYIDENTIFIER   1
 
#define CMS_RECIPINFO_ISSUER_SERIAL   0
 
#define CMS_RECIPINFO_KEYIDENTIFIER   1
 

Typedefs

typedef struct
CMS_IssuerAndSerialNumber_st 
CMS_IssuerAndSerialNumber
 
typedef struct
CMS_EncapsulatedContentInfo_st 
CMS_EncapsulatedContentInfo
 
typedef struct
CMS_SignerIdentifier_st 
CMS_SignerIdentifier
 
typedef struct CMS_SignedData_st CMS_SignedData
 
typedef struct
CMS_OtherRevocationInfoFormat_st 
CMS_OtherRevocationInfoFormat
 
typedef struct
CMS_OriginatorInfo_st 
CMS_OriginatorInfo
 
typedef struct
CMS_EncryptedContentInfo_st 
CMS_EncryptedContentInfo
 
typedef struct CMS_EnvelopedData_st CMS_EnvelopedData
 
typedef struct CMS_DigestedData_st CMS_DigestedData
 
typedef struct CMS_EncryptedData_st CMS_EncryptedData
 
typedef struct
CMS_AuthenticatedData_st 
CMS_AuthenticatedData
 
typedef struct
CMS_CompressedData_st 
CMS_CompressedData
 
typedef struct
CMS_OtherCertificateFormat_st 
CMS_OtherCertificateFormat
 
typedef struct
CMS_KeyTransRecipientInfo_st 
CMS_KeyTransRecipientInfo
 
typedef struct
CMS_OriginatorPublicKey_st 
CMS_OriginatorPublicKey
 
typedef struct
CMS_OriginatorIdentifierOrKey_st 
CMS_OriginatorIdentifierOrKey
 
typedef struct
CMS_KeyAgreeRecipientInfo_st 
CMS_KeyAgreeRecipientInfo
 
typedef struct
CMS_OtherKeyAttribute_st 
CMS_OtherKeyAttribute
 
typedef struct
CMS_RecipientKeyIdentifier_st 
CMS_RecipientKeyIdentifier
 
typedef struct
CMS_KeyAgreeRecipientIdentifier_st 
CMS_KeyAgreeRecipientIdentifier
 
typedef struct
CMS_RecipientEncryptedKey_st 
CMS_RecipientEncryptedKey
 
typedef struct CMS_KEKIdentifier_st CMS_KEKIdentifier
 
typedef struct
CMS_KEKRecipientInfo_st 
CMS_KEKRecipientInfo
 
typedef struct
CMS_PasswordRecipientInfo_st 
CMS_PasswordRecipientInfo
 
typedef struct
CMS_OtherRecipientInfo_st 
CMS_OtherRecipientInfo
 
typedef struct CMS_ReceiptsFrom_st CMS_ReceiptsFrom
 
typedef CMS_SignerIdentifier CMS_RecipientIdentifier
 

Functions

BIOcms_content_bio (CMS_ContentInfo *cms)
 
CMS_ContentInfocms_Data_create (void)
 
CMS_ContentInfocms_DigestedData_create (const EVP_MD *md)
 
BIOcms_DigestedData_init_bio (CMS_ContentInfo *cms)
 
int cms_DigestedData_do_final (CMS_ContentInfo *cms, BIO *chain, int verify)
 
BIOcms_SignedData_init_bio (CMS_ContentInfo *cms)
 
int cms_SignedData_final (CMS_ContentInfo *cms, BIO *chain)
 
int cms_set1_SignerIdentifier (CMS_SignerIdentifier *sid, X509 *cert, int type)
 
int cms_SignerIdentifier_get0_signer_id (CMS_SignerIdentifier *sid, ASN1_OCTET_STRING **keyid, X509_NAME **issuer, ASN1_INTEGER **sno)
 
int cms_SignerIdentifier_cert_cmp (CMS_SignerIdentifier *sid, X509 *cert)
 
CMS_ContentInfocms_CompressedData_create (int comp_nid)
 
BIOcms_CompressedData_init_bio (CMS_ContentInfo *cms)
 
void cms_DigestAlgorithm_set (X509_ALGOR *alg, const EVP_MD *md)
 
BIOcms_DigestAlgorithm_init_bio (X509_ALGOR *digestAlgorithm)
 
int cms_DigestAlgorithm_find_ctx (EVP_MD_CTX *mctx, BIO *chain, X509_ALGOR *mdalg)
 
BIOcms_EncryptedContent_init_bio (CMS_EncryptedContentInfo *ec)
 
BIOcms_EncryptedData_init_bio (CMS_ContentInfo *cms)
 
int cms_EncryptedContent_init (CMS_EncryptedContentInfo *ec, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen)
 
int cms_Receipt_verify (CMS_ContentInfo *cms, CMS_ContentInfo *req_cms)
 
int cms_msgSigDigest_add1 (CMS_SignerInfo *dest, CMS_SignerInfo *src)
 
ASN1_OCTET_STRINGcms_encode_Receipt (CMS_SignerInfo *si)
 
BIOcms_EnvelopedData_init_bio (CMS_ContentInfo *cms)
 
CMS_EnvelopedDatacms_get0_enveloped (CMS_ContentInfo *cms)
 
int cms_RecipientInfo_pwri_crypt (CMS_ContentInfo *cms, CMS_RecipientInfo *ri, int en_de)
 

Macro Definition Documentation

#define CMS_CERTCHOICE_CERT   0

Definition at line 355 of file cms_lcl.h.

#define CMS_CERTCHOICE_EXCERT   1

Definition at line 356 of file cms_lcl.h.

#define CMS_CERTCHOICE_OTHER   4

Definition at line 359 of file cms_lcl.h.

#define CMS_CERTCHOICE_V1ACERT   2

Definition at line 357 of file cms_lcl.h.

#define CMS_CERTCHOICE_V2ACERT   3

Definition at line 358 of file cms_lcl.h.

#define CMS_RECIPINFO_ISSUER_SERIAL   0

Definition at line 426 of file cms_lcl.h.

#define CMS_RECIPINFO_KEYIDENTIFIER   1

Definition at line 427 of file cms_lcl.h.

#define CMS_REVCHOICE_CRL   0

Definition at line 334 of file cms_lcl.h.

#define CMS_REVCHOICE_OTHER   1

Definition at line 335 of file cms_lcl.h.

#define CMS_SIGNERINFO_ISSUER_SERIAL   0

Definition at line 423 of file cms_lcl.h.

#define CMS_SIGNERINFO_KEYIDENTIFIER   1

Definition at line 424 of file cms_lcl.h.

Typedef Documentation

Definition at line 79 of file cms_lcl.h.

Definition at line 80 of file cms_lcl.h.

Definition at line 77 of file cms_lcl.h.

Definition at line 70 of file cms_lcl.h.

Definition at line 75 of file cms_lcl.h.

Definition at line 78 of file cms_lcl.h.

Definition at line 76 of file cms_lcl.h.

Definition at line 69 of file cms_lcl.h.

Definition at line 90 of file cms_lcl.h.

Definition at line 91 of file cms_lcl.h.

Definition at line 88 of file cms_lcl.h.

Definition at line 85 of file cms_lcl.h.

Definition at line 82 of file cms_lcl.h.

Definition at line 84 of file cms_lcl.h.

Definition at line 74 of file cms_lcl.h.

Definition at line 83 of file cms_lcl.h.

Definition at line 81 of file cms_lcl.h.

Definition at line 86 of file cms_lcl.h.

Definition at line 93 of file cms_lcl.h.

Definition at line 73 of file cms_lcl.h.

Definition at line 92 of file cms_lcl.h.

typedef struct CMS_ReceiptsFrom_st CMS_ReceiptsFrom

Definition at line 94 of file cms_lcl.h.

Definition at line 89 of file cms_lcl.h.

Definition at line 194 of file cms_lcl.h.

Definition at line 87 of file cms_lcl.h.

Definition at line 72 of file cms_lcl.h.

Definition at line 71 of file cms_lcl.h.

Function Documentation

CMS_ContentInfo* cms_CompressedData_create ( int  comp_nid)
BIO* cms_CompressedData_init_bio ( CMS_ContentInfo cms)
BIO* cms_content_bio ( CMS_ContentInfo cms)

Definition at line 89 of file cms_lib.c.

CMS_ContentInfo* cms_Data_create ( void  )

Definition at line 76 of file cms_lib.c.

int cms_DigestAlgorithm_find_ctx ( EVP_MD_CTX mctx,
BIO chain,
X509_ALGOR mdalg 
)

Definition at line 390 of file cms_lib.c.

BIO* cms_DigestAlgorithm_init_bio ( X509_ALGOR digestAlgorithm)

Definition at line 361 of file cms_lib.c.

void cms_DigestAlgorithm_set ( X509_ALGOR alg,
const EVP_MD md 
)

Definition at line 346 of file cms_lib.c.

CMS_ContentInfo* cms_DigestedData_create ( const EVP_MD md)

Definition at line 66 of file cms_dd.c.

int cms_DigestedData_do_final ( CMS_ContentInfo cms,
BIO chain,
int  verify 
)

Definition at line 104 of file cms_dd.c.

BIO* cms_DigestedData_init_bio ( CMS_ContentInfo cms)

Definition at line 97 of file cms_dd.c.

ASN1_OCTET_STRING* cms_encode_Receipt ( CMS_SignerInfo si)

Definition at line 377 of file cms_ess.c.

int cms_EncryptedContent_init ( CMS_EncryptedContentInfo ec,
const EVP_CIPHER cipher,
const unsigned char *  key,
size_t  keylen 
)

Definition at line 239 of file cms_enc.c.

BIO* cms_EncryptedContent_init_bio ( CMS_EncryptedContentInfo ec)

Definition at line 69 of file cms_enc.c.

BIO* cms_EncryptedData_init_bio ( CMS_ContentInfo cms)

Definition at line 288 of file cms_enc.c.

BIO* cms_EnvelopedData_init_bio ( CMS_ContentInfo cms)

Definition at line 806 of file cms_env.c.

CMS_EnvelopedData* cms_get0_enveloped ( CMS_ContentInfo cms)

Definition at line 74 of file cms_env.c.

int cms_msgSigDigest_add1 ( CMS_SignerInfo dest,
CMS_SignerInfo src 
)

Definition at line 209 of file cms_ess.c.

int cms_Receipt_verify ( CMS_ContentInfo cms,
CMS_ContentInfo req_cms 
)

Definition at line 229 of file cms_ess.c.

int cms_RecipientInfo_pwri_crypt ( CMS_ContentInfo cms,
CMS_RecipientInfo ri,
int  en_de 
)

Definition at line 322 of file cms_pwri.c.

int cms_set1_SignerIdentifier ( CMS_SignerIdentifier sid,
X509 cert,
int  type 
)

Definition at line 210 of file cms_sd.c.

int cms_SignedData_final ( CMS_ContentInfo cms,
BIO chain 
)

Definition at line 686 of file cms_sd.c.

BIO* cms_SignedData_init_bio ( CMS_ContentInfo cms)

Definition at line 812 of file cms_sd.c.

int cms_SignerIdentifier_cert_cmp ( CMS_SignerIdentifier sid,
X509 cert 
)

Definition at line 276 of file cms_sd.c.

int cms_SignerIdentifier_get0_signer_id ( CMS_SignerIdentifier sid,
ASN1_OCTET_STRING **  keyid,
X509_NAME **  issuer,
ASN1_INTEGER **  sno 
)

Definition at line 255 of file cms_sd.c.