1 .TH "RSA functions" 3 "11 Jan 2012" "Version 1.5.2" "Heimdal crypto library" \" -*- nroff -*-
10 .RI "RSA * \fBRSA_new\fP (void)"
13 .RI "RSA * \fBRSA_new_method\fP (ENGINE *engine)"
16 .RI "void \fBRSA_free\fP (RSA *rsa)"
19 .RI "int \fBRSA_up_ref\fP (RSA *rsa)"
22 .RI "const RSA_METHOD * \fBRSA_get_method\fP (const RSA *rsa)"
25 .RI "int \fBRSA_set_method\fP (RSA *rsa, const RSA_METHOD *method)"
28 .RI "int \fBRSA_set_app_data\fP (RSA *rsa, void *arg)"
31 .RI "void * \fBRSA_get_app_data\fP (const RSA *rsa)"
34 .SH "Detailed Description"
36 See the \fBRSA - public-key cryptography\fP for description and examples.
37 .SH "Function Documentation"
39 .SS "void RSA_free (RSA * rsa)"
41 Free an allocation RSA object.
45 \fIrsa\fP the RSA object to free.
49 .SS "void* RSA_get_app_data (const RSA * rsa)"
51 Get the application data for the RSA object.
55 \fIrsa\fP the rsa object to get the parameter for
64 .SS "const RSA_METHOD* RSA_get_method (const RSA * rsa)"
66 Return the RSA_METHOD used for this RSA object.
70 \fIrsa\fP the object to get the method from.
75 the method used for this RSA object.
79 .SS "RSA* RSA_new (void)"
81 Same as \fBRSA_new_method()\fP using NULL as engine.
85 a newly allocated RSA object. Free with \fBRSA_free()\fP.
89 .SS "RSA* RSA_new_method (ENGINE * engine)"
91 Allocate a new RSA object using the engine, if NULL is specified as the engine, use the default RSA engine as returned by ENGINE_get_default_RSA().
95 \fIengine\fP Specific what ENGINE RSA provider should be used.
100 a newly allocated RSA object. Free with \fBRSA_free()\fP.
104 .SS "int RSA_set_app_data (RSA * rsa, void * arg)"
106 Set the application data for the RSA object.
110 \fIrsa\fP the rsa object to set the parameter for
112 \fIarg\fP the data object to store
121 .SS "int RSA_set_method (RSA * rsa, const RSA_METHOD * method)"
123 Set a new method for the RSA keypair.
127 \fIrsa\fP rsa parameter.
129 \fImethod\fP the new method for the RSA parameter.
138 .SS "int RSA_up_ref (RSA * rsa)"
140 Add an extra reference to the RSA object. The object should be free with \fBRSA_free()\fP to drop the reference.
144 \fIrsa\fP the object to add reference counting too.
149 the current reference count, can't safely be used except for debug printing.