OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
cms_env.c File Reference
#include "cryptlib.h"
#include <openssl/asn1t.h>
#include <openssl/pem.h>
#include <openssl/x509v3.h>
#include <openssl/err.h>
#include <openssl/cms.h>
#include <openssl/rand.h>
#include <openssl/aes.h>
#include "cms_lcl.h"
#include "asn1_locl.h"

Go to the source code of this file.

Functions

CMS_EnvelopedDatacms_get0_enveloped (CMS_ContentInfo *cms)
 
 STACK_OF (CMS_RecipientInfo)
 
int CMS_RecipientInfo_type (CMS_RecipientInfo *ri)
 
CMS_ContentInfoCMS_EnvelopedData_create (const EVP_CIPHER *cipher)
 
CMS_RecipientInfoCMS_add1_recipient_cert (CMS_ContentInfo *cms, X509 *recip, unsigned int flags)
 
int CMS_RecipientInfo_ktri_get0_algs (CMS_RecipientInfo *ri, EVP_PKEY **pk, X509 **recip, X509_ALGOR **palg)
 
int CMS_RecipientInfo_ktri_get0_signer_id (CMS_RecipientInfo *ri, ASN1_OCTET_STRING **keyid, X509_NAME **issuer, ASN1_INTEGER **sno)
 
int CMS_RecipientInfo_ktri_cert_cmp (CMS_RecipientInfo *ri, X509 *cert)
 
int CMS_RecipientInfo_set0_pkey (CMS_RecipientInfo *ri, EVP_PKEY *pkey)
 
int CMS_RecipientInfo_kekri_id_cmp (CMS_RecipientInfo *ri, const unsigned char *id, size_t idlen)
 
CMS_RecipientInfoCMS_add0_recipient_key (CMS_ContentInfo *cms, int nid, unsigned char *key, size_t keylen, unsigned char *id, size_t idlen, ASN1_GENERALIZEDTIME *date, ASN1_OBJECT *otherTypeId, ASN1_TYPE *otherType)
 
int CMS_RecipientInfo_kekri_get0_id (CMS_RecipientInfo *ri, X509_ALGOR **palg, ASN1_OCTET_STRING **pid, ASN1_GENERALIZEDTIME **pdate, ASN1_OBJECT **potherid, ASN1_TYPE **pothertype)
 
int CMS_RecipientInfo_set0_key (CMS_RecipientInfo *ri, unsigned char *key, size_t keylen)
 
int CMS_RecipientInfo_decrypt (CMS_ContentInfo *cms, CMS_RecipientInfo *ri)
 
BIOcms_EnvelopedData_init_bio (CMS_ContentInfo *cms)
 

Function Documentation

CMS_RecipientInfo* CMS_add0_recipient_key ( CMS_ContentInfo cms,
int  nid,
unsigned char *  key,
size_t  keylen,
unsigned char *  id,
size_t  idlen,
ASN1_GENERALIZEDTIME date,
ASN1_OBJECT otherTypeId,
ASN1_TYPE otherType 
)

Definition at line 479 of file cms_env.c.

CMS_RecipientInfo* CMS_add1_recipient_cert ( CMS_ContentInfo cms,
X509 recip,
unsigned int  flags 
)

Definition at line 147 of file cms_env.c.

CMS_ContentInfo* CMS_EnvelopedData_create ( const EVP_CIPHER cipher)

Definition at line 120 of file cms_env.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_RecipientInfo_decrypt ( CMS_ContentInfo cms,
CMS_RecipientInfo ri 
)

Definition at line 786 of file cms_env.c.

int CMS_RecipientInfo_kekri_get0_id ( CMS_RecipientInfo ri,
X509_ALGOR **  palg,
ASN1_OCTET_STRING **  pid,
ASN1_GENERALIZEDTIME **  pdate,
ASN1_OBJECT **  potherid,
ASN1_TYPE **  pothertype 
)

Definition at line 591 of file cms_env.c.

int CMS_RecipientInfo_kekri_id_cmp ( CMS_RecipientInfo ri,
const unsigned char *  id,
size_t  idlen 
)

Definition at line 441 of file cms_env.c.

int CMS_RecipientInfo_ktri_cert_cmp ( CMS_RecipientInfo ri,
X509 cert 
)

Definition at line 275 of file cms_env.c.

int CMS_RecipientInfo_ktri_get0_algs ( CMS_RecipientInfo ri,
EVP_PKEY **  pk,
X509 **  recip,
X509_ALGOR **  palg 
)

Definition at line 235 of file cms_env.c.

int CMS_RecipientInfo_ktri_get0_signer_id ( CMS_RecipientInfo ri,
ASN1_OCTET_STRING **  keyid,
X509_NAME **  issuer,
ASN1_INTEGER **  sno 
)

Definition at line 258 of file cms_env.c.

int CMS_RecipientInfo_set0_key ( CMS_RecipientInfo ri,
unsigned char *  key,
size_t  keylen 
)

Definition at line 628 of file cms_env.c.

int CMS_RecipientInfo_set0_pkey ( CMS_RecipientInfo ri,
EVP_PKEY pkey 
)

Definition at line 286 of file cms_env.c.

int CMS_RecipientInfo_type ( CMS_RecipientInfo ri)

Definition at line 115 of file cms_env.c.

STACK_OF ( CMS_RecipientInfo  )

Definition at line 106 of file cms_env.c.