• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 10.2.0.83
GDCryptoRSA.h File Reference
#include "GDCryptoKeyStore.h"
#include "GDCryptoAlgorithms.h"
#include "GDCryptoError.h"

Macros

#define GD_C_API_EXT
 

Functions

struct GDRSA * GDRSA_public_key (const struct GDX509 *cert)
 Retrieve the RSA public key. More...
 
struct GDRSA * GDRSA_private_key (const struct GDX509 *cert)
 Retrieve a pseudo private RSA key corresponding to a user certificate. More...
 
int GDRSA_size (const struct GDRSA *rsa)
 RSA modulus size. More...
 
void GDRSA_free (struct GDRSA *rsa)
 Free a RSA key structure. More...
 
int GDRSA_sign (const struct GDDigest *digest_algorithm, const void *digest, unsigned int digest_size, void *signature, unsigned int *signature_size, struct GDRSA *rsa)
 RSA sign a message digest. More...
 
int GDRSA_verify (const struct GDDigest *digest_algorithm, const void *digest, unsigned int digest_size, const void *signature, unsigned int signature_size, struct GDRSA *rsa)
 Verify an RSA signed message. More...
 
int GDRSA_public_encrypt (int flen, const void *from, void *to, struct GDRSA *rsa, int padding)
 RSA public encrypt. More...
 
int GDRSA_private_decrypt (int flen, const void *from, void *to, struct GDRSA *rsa, int padding)
 RSA private decrypt. More...
 
int GDRSA_private_encrypt (int flen, const void *from, void *to, struct GDRSA *rsa, int padding)
 RSA private encrypt. More...
 
int GDRSA_public_decrypt (int flen, const void *from, void *to, struct GDRSA *rsa, int padding)
 RSA public decrypt. More...
 

Variables

const int GDRSA_PKCS1_PADDING
 PKCS #1 padding. More...
 
const int GDRSA_PKCS1_OAEP_PADDING
 PKCS #1 OAEP padding. More...
 
const int GDRSA_NO_PADDING
 No padding. More...