-
- BlackBerry Dynamics
- Runtime library for iOS applications
- 12.0.1.79
Go to the documentation of this file.
17 # define GD_C_API __attribute__((visibility("default")))
35 struct GD_C_API GDPKCS7;
100 GD_C_API
struct GDPKCS7*
GDPKCS7_SMIME_read(
struct GDStream* stream,
struct GDStream** clearText,
int flags);
109 GD_C_API
struct GDPKCS7*
GDPKCS7_read(
struct GDStream* stream,
int flags);
119 GD_C_API
int GDPKCS7_type(
struct GDPKCS7 *p7,
int flags);
132 GD_C_API
int GDPKCS7_verify(
struct GDPKCS7 *p7,
const struct GDX509List* certs,
const struct GDX509List* anchors,
struct GDStream* indata,
struct GDStream* out,
int flags);
152 GD_C_API
int GDPKCS7_decrypt(
struct GDPKCS7* p7,
struct GDKey* pkey,
const struct GDX509* cert,
struct GDStream* data,
int flags);
163 GD_C_API
struct GDPKCS7*
GDPKCS7_encrypt(
struct GDX509List* certs,
struct GDStream* in,
const struct GDCipher* cipher,
int flags);
175 GD_C_API
struct GDPKCS7*
GDPKCS7_add_signer(
const struct GDX509* signcert,
struct GDKey* pkey,
struct GDX509List* certs,
const struct GDDigest* md,
int flags);
185 GD_C_API
int GDPKCS7_final(
struct GDPKCS7* p7,
struct GDStream* data,
int flags);
196 GD_C_API
int GDPKCS7_write(
struct GDStream* stream,
struct GDPKCS7* p7,
int flags);
208 GD_C_API
int GDPKCS7_SMIME_write(
struct GDStream* stream,
struct GDPKCS7* p7,
struct GDStream* data,
int flags);
216 GD_C_API
void GDPKCS7_free(
struct GDPKCS7* p7,
int flags);
struct GDPKCS7 * GDPKCS7_SMIME_read(struct GDStream *stream, struct GDStream **clearText, int flags)
Deserialize SMIME to a PKCS7 structure.
const int GDPKCS7_KEY_PARAM
const int GDPKCS7_SIGNED_AND_ENVELOPED
PKCS7 content-type:pkcs7-signedAndEnvelopedData.
void GDPKCS7_free(struct GDPKCS7 *p7, int flags)
Free a PKCS7 structure.
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.
struct GDPKCS7 * GDPKCS7_encrypt(struct GDX509List *certs, struct GDStream *in, const struct GDCipher *cipher, int flags)
Create a PKCS7 envelopedData structure.
const int GDPKCS7_NOCERTS
struct GDPKCS7 * GDPKCS7_read(struct GDStream *stream, int flags)
Deserialize ASN.1/DER encoding to a PKCS7 structure.
const int GDPKCS7_NOVERIFY
int GDPKCS7_SMIME_write(struct GDStream *stream, struct GDPKCS7 *p7, struct GDStream *data, int flags)
Serialize a PKCS7 structure to SMIME encoding.
const int GDPKCS7_ENCRYPTED
PKCS7 content-type:pkcs7-encryptedData.
const int GDPKCS7_NOSMIMECAP
const int GDPKCS7_DIGEST
PKCS7 content-type:pkcs7-digestData.
const int GDPKCS7_ENVELOPED
PKCS7 content-type:pkcs7-envelopedData.
int GDPKCS7_final(struct GDPKCS7 *p7, struct GDStream *data, int flags)
Finalize a PKCS7 structure.
int GDDigest(const void *data, size_t data_sz, void *md, unsigned int *md_sz, const struct GDDigest *type)
Calculate a digest.
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.
const int GDPKCS7_REUSE_DIGEST
const int GDPKCS7_DATA
PKCS7 content-type:pkcs7-data.
const int GDPKCS7_SIGNED
PKCS7 content-type:pkcs7-signedData.
int GDPKCS7_type(struct GDPKCS7 *p7, int flags)
Retrieve the type of PKCS7 structure.
const struct GDX509List * GDPKCS7_get_signers(struct GDPKCS7 *p7, int flags)
Retrieve the signer's certificate(s).
const int GDPKCS7_TEXT
PKCS7 flags.
const int GDPKCS7_NOINTERN
const int GDPKCS7_PARTIAL
int GDCipher(struct GDCipherContext *ctx, void *out_data, const void *in_data, unsigned int in_data_sz)
Encipher or decipher.
const int GDPKCS7_CRLFEOL
const int GDPKCS7_DETACHED
int GDPKCS7_write(struct GDStream *stream, struct GDPKCS7 *p7, int flags)
Serialize a PKCS7 structure to ASN.1/DER encoding.
int GDPKCS7_decrypt(struct GDPKCS7 *p7, struct GDKey *pkey, const struct GDX509 *cert, struct GDStream *data, int flags)
Decrypt a PKCS7 envelopedData structure.
const int GDPKCS7_NOOLDMIMETYPE
const int GDPKCS7_USE_KEYID
const int GDPKCS7_NOCHAIN