Lines Matching refs:RSA
1 /* crypto/rsa/rsa.h */
11 * apply to all code found in this distribution, be it the RC4, RSA,
74 #error RSA is disabled.
82 /* typedef struct rsa_st RSA; */
90 RSA *rsa,int padding);
93 RSA *rsa,int padding);
96 RSA *rsa,int padding);
99 RSA *rsa,int padding);
100 int (*rsa_mod_exp)(BIGNUM *r0,const BIGNUM *I,RSA *rsa,BN_CTX *ctx); /* Can be null */
104 int (*init)(RSA *rsa); /* called at new */
105 int (*finish)(RSA *rsa); /* called at free */
117 unsigned char *sigret, unsigned int *siglen, const RSA *rsa);
121 const RSA *rsa);
122 /* If this callback is NULL, the builtin software RSA key-gen will be used. This
126 int (*rsa_keygen)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
146 /* be careful using this if the RSA structure is shared */
195 * RSA implementation now uses blinding by
199 #define RSA_FLAG_NO_CONSTTIME 0x0100 /* new with 0.9.8f; the built-in RSA
206 * operations and results in faster RSA
211 /* new with 0.9.7h; the built-in RSA
258 RSA * RSA_new(void);
259 RSA * RSA_new_method(ENGINE *engine);
260 int RSA_size(const RSA *);
264 RSA * RSA_generate_key(int bits, unsigned long e,void
269 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
271 int RSA_check_key(const RSA *);
274 unsigned char *to, RSA *rsa,int padding);
276 unsigned char *to, RSA *rsa,int padding);
278 unsigned char *to, RSA *rsa,int padding);
280 unsigned char *to, RSA *rsa,int padding);
281 void RSA_free (RSA *r);
282 /* "up" the RSA object's reference count */
283 int RSA_up_ref(RSA *r);
285 int RSA_flags(const RSA *r);
289 const RSA_METHOD *RSA_get_method(const RSA *rsa);
290 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth);
293 int RSA_memory_lock(RSA *r);
295 /* these are the actual SSLeay RSA functions */
300 DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey)
301 DECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey)
304 int RSA_print_fp(FILE *fp, const RSA *r,int offset);
308 int RSA_print(BIO *bp, const RSA *r,int offset);
312 int i2d_RSA_NET(const RSA *a, unsigned char **pp,
315 RSA *d2i_RSA_NET(RSA **a, const unsigned char **pp, long length,
319 int i2d_Netscape_RSA(const RSA *a, unsigned char **pp,
322 RSA *d2i_Netscape_RSA(RSA **a, const unsigned char **pp, long length,
328 * inside PKCS#1 padded RSA encryption */
330 unsigned char *sigret, unsigned int *siglen, RSA *rsa);
332 const unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
335 * object inside PKCS#1 padded RSA encryption */
338 unsigned char *sigret, unsigned int *siglen, RSA *rsa);
341 unsigned char *sigbuf, unsigned int siglen, RSA *rsa);
343 int RSA_blinding_on(RSA *rsa, BN_CTX *ctx);
344 void RSA_blinding_off(RSA *rsa);
345 BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *ctx);
377 int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,
379 int RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM,
385 int RSA_set_ex_data(RSA *r,int idx,void *arg);
386 void *RSA_get_ex_data(const RSA *r, int idx);
388 RSA *RSAPublicKey_dup(RSA *rsa);
389 RSA *RSAPrivateKey_dup(RSA *rsa);
397 /* Error codes for the RSA functions. */