-
- 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")))
59 struct GD_C_API GDRSA;
90 GD_C_API
int GDRSA_size(
const struct GDRSA* rsa);
115 GD_C_API
int GDRSA_sign(
const struct GDDigest* digest_algorithm,
const void* digest,
unsigned int digest_size,
void* signature,
unsigned int* signature_size,
struct GDRSA* rsa);
130 GD_C_API
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);
145 GD_C_API
int GDRSA_public_encrypt(
int flen,
const void* from,
void* to,
struct GDRSA* rsa,
int padding);
160 GD_C_API
int GDRSA_private_decrypt(
int flen,
const void* from,
void* to,
struct GDRSA* rsa,
int padding);
175 GD_C_API
int GDRSA_private_encrypt(
int flen,
const void* from,
void* to,
struct GDRSA* rsa,
int padding);
190 GD_C_API
int GDRSA_public_decrypt(
int flen,
const void* from,
void* to,
struct GDRSA* rsa,
int padding);
const int GDRSA_PKCS1_OAEP_PADDING
PKCS #1 OAEP padding.
void GDRSA_free(struct GDRSA *rsa)
Free a RSA key structure.
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.
int GDRSA_public_decrypt(int flen, const void *from, void *to, struct GDRSA *rsa, int padding)
RSA public decrypt.
const int GDRSA_NO_PADDING
No padding.
int GDRSA_public_encrypt(int flen, const void *from, void *to, struct GDRSA *rsa, int padding)
RSA public encrypt.
struct GDRSA * GDRSA_public_key(const struct GDX509 *cert)
Retrieve the RSA public key.
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.
int GDRSA_size(const struct GDRSA *rsa)
RSA modulus size.
int GDDigest(const void *data, size_t data_sz, void *md, unsigned int *md_sz, const struct GDDigest *type)
Calculate a digest.
int GDRSA_private_decrypt(int flen, const void *from, void *to, struct GDRSA *rsa, int padding)
RSA private decrypt.
const int GDRSA_PKCS1_PADDING
PKCS #1 padding.
int GDRSA_private_encrypt(int flen, const void *from, void *to, struct GDRSA *rsa, int padding)
RSA private encrypt.
struct GDRSA * GDRSA_private_key(const struct GDX509 *cert)
Retrieve a pseudo private RSA key corresponding to a user certificate.