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

Go to the source code of this file.

Functions

int CMS_data (CMS_ContentInfo *cms, BIO *out, unsigned int flags)
 
CMS_ContentInfoCMS_data_create (BIO *in, unsigned int flags)
 
int CMS_digest_verify (CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags)
 
CMS_ContentInfoCMS_digest_create (BIO *in, const EVP_MD *md, unsigned int flags)
 
int CMS_EncryptedData_decrypt (CMS_ContentInfo *cms, const unsigned char *key, size_t keylen, BIO *dcont, BIO *out, unsigned int flags)
 
CMS_ContentInfoCMS_EncryptedData_encrypt (BIO *in, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen, unsigned int flags)
 
int CMS_verify (CMS_ContentInfo *cms, STACK_OF(X509)*certs, X509_STORE *store, BIO *dcont, BIO *out, unsigned int flags)
 
int CMS_verify_receipt (CMS_ContentInfo *rcms, CMS_ContentInfo *ocms, STACK_OF(X509)*certs, X509_STORE *store, unsigned int flags)
 
CMS_ContentInfoCMS_sign (X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509)*certs, BIO *data, unsigned int flags)
 
CMS_ContentInfoCMS_sign_receipt (CMS_SignerInfo *si, X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509)*certs, unsigned int flags)
 
CMS_ContentInfoCMS_encrypt (STACK_OF(X509)*certs, BIO *data, const EVP_CIPHER *cipher, unsigned int flags)
 
int CMS_decrypt_set1_pkey (CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert)
 
int CMS_decrypt_set1_key (CMS_ContentInfo *cms, unsigned char *key, size_t keylen, unsigned char *id, size_t idlen)
 
int CMS_decrypt_set1_password (CMS_ContentInfo *cms, unsigned char *pass, ossl_ssize_t passlen)
 
int CMS_decrypt (CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert, BIO *dcont, BIO *out, unsigned int flags)
 
int CMS_final (CMS_ContentInfo *cms, BIO *data, BIO *dcont, unsigned int flags)
 
int CMS_uncompress (CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags)
 
CMS_ContentInfoCMS_compress (BIO *in, int comp_nid, unsigned int flags)
 

Function Documentation

CMS_ContentInfo* CMS_compress ( BIO in,
int  comp_nid,
unsigned int  flags 
)

Definition at line 844 of file cms_smime.c.

int CMS_data ( CMS_ContentInfo cms,
BIO out,
unsigned int  flags 
)

Definition at line 150 of file cms_smime.c.

CMS_ContentInfo* CMS_data_create ( BIO in,
unsigned int  flags 
)

Definition at line 167 of file cms_smime.c.

int CMS_decrypt ( CMS_ContentInfo cms,
EVP_PKEY pk,
X509 cert,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 732 of file cms_smime.c.

int CMS_decrypt_set1_key ( CMS_ContentInfo cms,
unsigned char *  key,
size_t  keylen,
unsigned char *  id,
size_t  idlen 
)

Definition at line 669 of file cms_smime.c.

int CMS_decrypt_set1_password ( CMS_ContentInfo cms,
unsigned char *  pass,
ossl_ssize_t  passlen 
)

Definition at line 708 of file cms_smime.c.

int CMS_decrypt_set1_pkey ( CMS_ContentInfo cms,
EVP_PKEY pk,
X509 cert 
)

Definition at line 609 of file cms_smime.c.

CMS_ContentInfo* CMS_digest_create ( BIO in,
const EVP_MD md,
unsigned int  flags 
)

Definition at line 206 of file cms_smime.c.

int CMS_digest_verify ( CMS_ContentInfo cms,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 182 of file cms_smime.c.

CMS_ContentInfo* CMS_encrypt ( STACK_OF(X509)*  certs,
BIO data,
const EVP_CIPHER cipher,
unsigned int  flags 
)

Definition at line 573 of file cms_smime.c.

int CMS_EncryptedData_decrypt ( CMS_ContentInfo cms,
const unsigned char *  key,
size_t  keylen,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 226 of file cms_smime.c.

CMS_ContentInfo* CMS_EncryptedData_encrypt ( BIO in,
const EVP_CIPHER cipher,
const unsigned char *  key,
size_t  keylen,
unsigned int  flags 
)

Definition at line 252 of file cms_smime.c.

int CMS_final ( CMS_ContentInfo cms,
BIO data,
BIO dcont,
unsigned int  flags 
)

Definition at line 761 of file cms_smime.c.

CMS_ContentInfo* CMS_sign ( X509 signcert,
EVP_PKEY pkey,
STACK_OF(X509)*  certs,
BIO data,
unsigned int  flags 
)

Definition at line 460 of file cms_smime.c.

CMS_ContentInfo* CMS_sign_receipt ( CMS_SignerInfo si,
X509 signcert,
EVP_PKEY pkey,
STACK_OF(X509)*  certs,
unsigned int  flags 
)

Definition at line 501 of file cms_smime.c.

int CMS_uncompress ( CMS_ContentInfo cms,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 837 of file cms_smime.c.

int CMS_verify ( CMS_ContentInfo cms,
STACK_OF(X509)*  certs,
X509_STORE store,
BIO dcont,
BIO out,
unsigned int  flags 
)

Definition at line 316 of file cms_smime.c.

int CMS_verify_receipt ( CMS_ContentInfo rcms,
CMS_ContentInfo ocms,
STACK_OF(X509)*  certs,
X509_STORE store,
unsigned int  flags 
)

Definition at line 448 of file cms_smime.c.