Home | History | Annotate | Download | only in rsa

Lines Matching refs:rsa

1 /* crypto/rsa/rsa_lib.c */
11 * apply to all code found in this distribution, be it the RC4, RSA,
64 #include <openssl/rsa.h>
74 const char RSA_version[]="RSA" OPENSSL_VERSION_PTEXT;
78 RSA *RSA_new(void)
80 RSA *r=RSA_new_method(NULL);
111 const RSA_METHOD *RSA_get_method(const RSA *rsa)
113 return rsa->meth;
116 int RSA_set_method(RSA *rsa, const RSA_METHOD *meth)
121 mtmp = rsa->meth;
122 if (mtmp->finish) mtmp->finish(rsa);
124 if (rsa->engine)
126 ENGINE_finish(rsa->engine);
127 rsa->engine = NULL;
130 rsa->meth = meth;
131 if (meth->init) meth->init(rsa);
135 RSA *RSA_new_method(ENGINE *engine)
137 RSA *ret;
139 ret=(RSA *)OPENSSL_malloc(sizeof(RSA));
215 void RSA_free(RSA *r)
223 REF_PRINT("RSA",r);
257 int RSA_up_ref(RSA *r)
261 REF_PRINT("RSA",r);
280 int RSA_set_ex_data(RSA *r, int idx, void *arg)
285 void *RSA_get_ex_data(const RSA *r, int idx)
290 int RSA_memory_lock(RSA *r)