• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 10.2.0.83
GDCryptoKeyStore.h File Reference
#include <stddef.h>

Macros

#define GD_C_API_EXT
 

Functions

int GDFIPS_mode (void)
 Retrieve the current FIPS 140-2 mode of operation. More...
 
struct GDX509 * GDX509_copy (const struct GDX509 *cert)
 Copy a X509 structure. More...
 
void GDX509_free (struct GDX509 *cert)
 Free a X509 structure. More...
 
struct GDX509List * GDX509List_read (const char *pem, int pem_length)
 Retrieve a list of X509 certificates within a PEM container. More...
 
struct GDX509List * GDX509List_copy (const struct GDX509List *certs)
 Copy a list of X509 certificates. More...
 
int GDX509List_num (const struct GDX509List *certs)
 Count the number of X509 certificates. More...
 
const struct GDX509 * GDX509List_value (const struct GDX509List *certs, int index)
 Retrieve an X509 certificate from a list. More...
 
void GDX509List_insert (const struct GDX509List *certs, int index, const struct GDX509 *cert)
 Insert a certificate into the list. More...
 
bool GDX509List_evaluate (const struct GDX509List *certs, const struct GDX509List *not_used, const char *hostname, char **reason)
 Evaluate a certificate chain. More...
 
struct GDX509List * GDX509List_trusted_authorities (void)
 Retrieve a list of trusted X509 certificate authorities. More...
 
struct GDX509List * GDX509List_all_user_certs (void)
 Retrieve all user certificates managed by Dynamics. More...
 
struct GDX509List * GDX509List_valid_user_signing_certs (void)
 Retrieve all valid user certificates managed by Dynamics. More...
 
struct GDX509List * GDX509List_valid_user_encryption_certs (void)
 Retrieve all valid user encryption certificates managed by Dynamics. More...
 
struct GDX509List * GDX509List_all_user_encryption_certs (void)
 Retrieve all user encryption certificates managed by Dynamics. More...
 
struct GDX509List * GDX509List_aux_certs (const struct GDX509 *cert)
 Retrieve a certificate chain for a user certificate. More...
 
void GDX509List_free (struct GDX509List *certs)
 Free a X509 list structure. More...
 
struct GDKey * GDKey_public (const struct GDX509 *cert)
 Retrieve the public key. More...
 
struct GDKey * GDKey_private (const struct GDX509 *cert)
 Retrieve an opaque private key corresponding to a user certificate. More...
 
void GDKey_free (struct GDKey *key)
 Free a key structure. More...
 
int GDKey_compare (const struct GDKey *a, const struct GDKey *b)
 Compare two keys. More...
 
int GDKey_size (const struct GDKey *key)
 Signature size. More...
 
int GDKey_bits (const struct GDKey *key)
 Key size. More...
 
int GDKey_type (const struct GDKey *key)
 Key type. More...
 
const char * GDKey_name (const struct GDKey *key)
 Return the key algorithm name. More...
 
struct GDKeyContext * GDKeyContext_new (struct GDKey *key)
 Create a new key context. More...
 
struct GDKeyContext * GDKeyContext_copy (struct GDKeyContext *ctx)
 Copy a key context. More...
 
void GDKeyContext_free (struct GDKeyContext *ctx)
 Free a key context. More...
 
int GDKey_sign_init (struct GDKeyContext *ctx)
 Initialize a key context for signing. More...
 
int GDKey_sign (struct GDKeyContext *ctx, void *signature, size_t *signature_length, const void *message, size_t message_length)
 Sign a message. More...
 
int GDKey_verify_init (struct GDKeyContext *ctx)
 Initialize a key context for verification. More...
 
int GDKey_verify (struct GDKeyContext *ctx, const void *signature, size_t signature_length, const void *message, size_t message_length)
 Verify a signed message. More...
 
int GDKey_encrypt_init (struct GDKeyContext *ctx)
 Initialize a key context for encryption. More...
 
int GDKey_encrypt (struct GDKeyContext *ctx, void *encrypted, size_t *encrypted_length, const void *clear, size_t clear_length)
 Encrypt data. More...
 
int GDKey_decrypt_init (struct GDKeyContext *ctx)
 Initialize a key context for decryption. More...
 
int GDKey_decrypt (struct GDKeyContext *ctx, void *clear, size_t *clear_length, const void *encrypted, size_t encrypted_length)
 Decrypt data. More...
 
int GDKey_sign_final (struct GDDigestContext *digest, void *signature, unsigned int *signature_length, struct GDKey *key)
 Sign a digest. More...
 
int GDKey_verify_final (struct GDDigestContext *digest, const void *signature, unsigned int signature_length, struct GDKey *key)
 Verify a digest. More...
 
int GDKey_set_signature_md (struct GDKeyContext *ctx, const struct GDDigest *digest)
 Sets the message digest type used in a signature. More...
 
int GDKey_get_signature_md (struct GDKeyContext *ctx, const struct GDDigest **digest)
 Returns the message digest type. More...
 

Variables

const int GDKEY_TYPE_RSA
 RSA key type. More...
 
const int GDKEY_TYPE_DSA
 DSA key type. More...
 
const int GDKEY_TYPE_EC
 EC key type. More...