• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 12.0.1.79
GDCryptoAlgorithms.h File Reference
#include "GDCryptoKeyStore.h"
#include "GDCryptoError.h"
#include <stddef.h>

Macros

#define GD_C_API_EXT
 

Functions

const char ** GDCipher_list (void)
 Return all cipher suites by name. More...
 
const struct GDCipherGDCipher_byname (const char *name)
 Return a cipher suite by name. More...
 
const char * GDCipher_name (const struct GDCipherContext *ctx)
 Return a cipher suite's name. More...
 
const struct GDCipherGDCipher_bycontext (const struct GDCipherContext *ctx)
 Return a cipher by context. More...
 
int GDCipher_block_size (const struct GDCipher *cipher)
 Return the cipher block size. More...
 
int GDCipher_key_length (const struct GDCipher *cipher)
 Return the cipher key length. More...
 
int GDCipher_iv_length (const struct GDCipher *cipher)
 Return the IV length. More...
 
unsigned long GDCipher_mode (const struct GDCipher *cipher)
 Return the cipher mode. More...
 
void GDCipher_set_padding (struct GDCipherContext *ctx, int padding)
 Enable or disable padding. More...
 
struct GDCipherContext * GDCipher_new (void)
 Return a new cipher context. More...
 
int GDCipher_init (struct GDCipherContext *ctx, const struct GDCipher *cipher, const void *key, const void *iv, int mode)
 Initialize a cipher context. More...
 
int GDCipher_copy (struct GDCipherContext *destination, const struct GDCipherContext *source)
 Copy a cipher context. More...
 
int GDCipher_update (struct GDCipherContext *ctx, void *out_data, int *out_data_sz, const void *in_data, int in_data_sz)
 Encipher or decipher. More...
 
int GDCipher_final (struct GDCipherContext *ctx, void *out_data, int *out_sz)
 Encipher or decipher last block. More...
 
int GDCipher (struct GDCipherContext *ctx, void *out_data, const void *in_data, unsigned int in_data_sz)
 Encipher or decipher. More...
 
int GDCipher_cleanup (struct GDCipherContext *ctx)
 Clears all information from a cipher context. More...
 
void GDCipher_free (struct GDCipherContext *ctx)
 Free the cipher context. More...
 
const struct GDDigestGDDigest_byname (const char *name)
 Return a digest algorithm by name. More...
 
const char * GDDigest_name (const struct GDDigestContext *ctx)
 Return a digest's name. More...
 
const struct GDDigestGDDigest_bycontext (const struct GDDigestContext *ctx)
 Return a digest by context. More...
 
int GDDigest_size (const struct GDDigest *digest)
 Size of a digest in bytes. More...
 
int GDDigest_block_size (const struct GDDigest *digest)
 Return the digest block size. More...
 
struct GDDigestContext * GDDigest_new (void)
 Return a new digest context. More...
 
int GDDigest_init (struct GDDigestContext *ctx, const struct GDDigest *algorithm)
 Initialize a digest context. More...
 
int GDDigest_copy (struct GDDigestContext *destination, const struct GDDigestContext *source)
 Copy a digest context. More...
 
int GDDigest_update (struct GDDigestContext *ctx, const void *message, size_t message_sz)
 Calculate a digest. More...
 
int GDDigest_final (struct GDDigestContext *ctx, void *digest, unsigned int *digest_sz)
 Finalize and output the digest. More...
 
int GDDigest (const void *data, size_t data_sz, void *md, unsigned int *md_sz, const struct GDDigest *type)
 Calculate a digest. More...
 
int GDDigest_sign_init (struct GDDigestContext *ctx, struct GDKeyContext **key_context, const struct GDDigest *digest, struct GDKey *key)
 Initialize a digest context for signing. More...
 
int GDDigest_sign_final (struct GDDigestContext *ctx, void *signature, size_t *signature_sz)
 Sign a digest. More...
 
int GDDigest_verify_init (struct GDDigestContext *ctx, struct GDKeyContext **key_ctx, const struct GDDigest *digest, struct GDKey *key)
 Initialize a digest context for verification. More...
 
int GDDigest_verify_final (struct GDDigestContext *ctx, const void *signature, size_t signature_sz)
 Verify a digest. More...
 
int GDDigest_cleanup (struct GDDigestContext *ctx)
 Clears all information from a digest context. More...
 
void GDDigest_free (struct GDDigestContext *ctx)
 Free the digest context. More...
 

Variables

const int GDCIPHER_MAX_BLOCK_LENGTH
 Maximum block length for all ciphers. More...
 
const int GDCIPHER_MAX_KEY_LENGTH
 Maximum key length for all ciphers. More...
 
const unsigned long GDCIPHER_STREAM_CIPHER
 Stream cipher mode. More...
 
const unsigned long GDCIPHER_ECB_MODE
 ECB cipher mode. More...
 
const unsigned long GDCIPHER_CBC_MODE
 CBC cipher mode. More...
 
const unsigned long GDCIPHER_CFB_MODE
 CFB cipher mode. More...
 
const unsigned long GDCIPHER_OFB_MODE
 OFB cipher mode. More...
 
const unsigned long GDCIPHER_CTR_MODE
 CTR cipher mode. More...
 
const unsigned long GDCIPHER_GCM_MODE
 GCM cipher mode. More...
 
const unsigned long GDCIPHER_CCM_MODE
 CCM cipher mode. More...
 
const unsigned long GDCIPHER_XTS_MODE
 XTS cipher mode. More...
 
const unsigned long GDCIPHER_WRAP_MODE
 Wrap cipher mode. More...
 
const int GDDIGEST_MAX_SIZE
 Maximum supported digest size in bytes. More...