• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 12.0.1.79
GDCryptoPKCS7.h File Reference
#include "GDStream.h"
#include "GDCryptoKeyStore.h"
#include "GDCryptoAlgorithms.h"
#include "GDCryptoError.h"

Macros

#define GD_C_API_EXT
 

Functions

struct GDPKCS7 * GDPKCS7_SMIME_read (struct GDStream *stream, struct GDStream **clearText, int flags)
 Deserialize SMIME to a PKCS7 structure. More...
 
struct GDPKCS7 * GDPKCS7_read (struct GDStream *stream, int flags)
 Deserialize ASN.1/DER encoding to a PKCS7 structure. More...
 
int GDPKCS7_type (struct GDPKCS7 *p7, int flags)
 Retrieve the type of PKCS7 structure. More...
 
int GDPKCS7_verify (struct GDPKCS7 *p7, const struct GDX509List *certs, const struct GDX509List *anchors, struct GDStream *indata, struct GDStream *out, int flags)
 Verify a PKCS7 signedData structure. More...
 
const struct GDX509List * GDPKCS7_get_signers (struct GDPKCS7 *p7, int flags)
 Retrieve the signer's certificate(s). More...
 
int GDPKCS7_decrypt (struct GDPKCS7 *p7, struct GDKey *pkey, const struct GDX509 *cert, struct GDStream *data, int flags)
 Decrypt a PKCS7 envelopedData structure. More...
 
struct GDPKCS7 * GDPKCS7_encrypt (struct GDX509List *certs, struct GDStream *in, const struct GDCipher *cipher, int flags)
 Create a PKCS7 envelopedData structure. More...
 
struct GDPKCS7 * GDPKCS7_add_signer (const struct GDX509 *signcert, struct GDKey *pkey, struct GDX509List *certs, const struct GDDigest *md, int flags)
 Add signer information to a PKCS7 structure. More...
 
int GDPKCS7_final (struct GDPKCS7 *p7, struct GDStream *data, int flags)
 Finalize a PKCS7 structure. More...
 
int GDPKCS7_write (struct GDStream *stream, struct GDPKCS7 *p7, int flags)
 Serialize a PKCS7 structure to ASN.1/DER encoding. More...
 
int GDPKCS7_SMIME_write (struct GDStream *stream, struct GDPKCS7 *p7, struct GDStream *data, int flags)
 Serialize a PKCS7 structure to SMIME encoding. More...
 
void GDPKCS7_free (struct GDPKCS7 *p7, int flags)
 Free a PKCS7 structure. More...
 

Variables

const int GDPKCS7_TEXT
 PKCS7 flags. More...
 
const int GDPKCS7_NOCERTS
 
const int GDPKCS7_NOSIGS
 
const int GDPKCS7_NOCHAIN
 
const int GDPKCS7_NOINTERN
 
const int GDPKCS7_NOVERIFY
 
const int GDPKCS7_DETACHED
 
const int GDPKCS7_BINARY
 
const int GDPKCS7_NOATTR
 
const int GDPKCS7_NOSMIMECAP
 
const int GDPKCS7_NOOLDMIMETYPE
 
const int GDPKCS7_CRLFEOL
 
const int GDPKCS7_STREAM
 
const int GDPKCS7_NOCRL
 
const int GDPKCS7_PARTIAL
 
const int GDPKCS7_REUSE_DIGEST
 
const int GDPKCS7_USE_KEYID
 
const int GDPKCS7_KEY_PARAM
 
const int GDPKCS7_SIGNED
 PKCS7 content-type:pkcs7-signedData. More...
 
const int GDPKCS7_ENCRYPTED
 PKCS7 content-type:pkcs7-encryptedData. More...
 
const int GDPKCS7_ENVELOPED
 PKCS7 content-type:pkcs7-envelopedData. More...
 
const int GDPKCS7_SIGNED_AND_ENVELOPED
 PKCS7 content-type:pkcs7-signedAndEnvelopedData. More...
 
const int GDPKCS7_DATA
 PKCS7 content-type:pkcs7-data. More...
 
const int GDPKCS7_DIGEST
 PKCS7 content-type:pkcs7-digestData. More...