diff options
Diffstat (limited to 'secure/lib/libcrypto/man/RSA_set_method.3')
-rw-r--r-- | secure/lib/libcrypto/man/RSA_set_method.3 | 63 |
1 files changed, 37 insertions, 26 deletions
diff --git a/secure/lib/libcrypto/man/RSA_set_method.3 b/secure/lib/libcrypto/man/RSA_set_method.3 index 848ac9f..92096a7 100644 --- a/secure/lib/libcrypto/man/RSA_set_method.3 +++ b/secure/lib/libcrypto/man/RSA_set_method.3 @@ -1,8 +1,7 @@ -.\" Automatically generated by Pod::Man version 1.15 -.\" Wed Mar 17 09:38:39 2004 +.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14 .\" .\" Standard preamble: -.\" ====================================================================== +.\" ======================================================================== .de Sh \" Subsection heading .br .if t .Sp @@ -15,12 +14,6 @@ .if t .sp .5v .if n .sp .. -.de Ip \" List item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. .de Vb \" Begin verbatim text .ft CW .nf @@ -28,15 +21,14 @@ .. .de Ve \" End verbatim text .ft R - .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. | will give a -.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used -.\" to do unbreakable dashes and therefore won't be available. \*(C` and -.\" \*(C' expand to `' in nroff, nothing in troff, for use with C<> +.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to +.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C' +.\" expand to `' in nroff, nothing in troff, for use with C<>. .tr \(*W-|\(bv\*(Tr .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ @@ -56,10 +48,10 @@ . ds R" '' 'br\} .\" -.\" If the F register is turned on, we'll generate index entries on stderr -.\" for titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and -.\" index entries marked with X<> in POD. Of course, you'll have to process -.\" the output yourself in some meaningful fashion. +.\" If the F register is turned on, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. .if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" @@ -68,14 +60,13 @@ . rr F .\} .\" -.\" For nroff, turn off justification. Always turn off hyphenation; it -.\" makes way too many mistakes in technical documents. +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. .hy 0 .if n .na .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. -.bd B 3 . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 @@ -135,41 +126,48 @@ . ds Ae AE .\} .rm #[ #] #H #V #F C -.\" ====================================================================== +.\" ======================================================================== .\" .IX Title "RSA_set_method 3" -.TH RSA_set_method 3 "0.9.7d" "2004-03-17" "OpenSSL" -.UC +.TH RSA_set_method 3 "2005-02-24" "0.9.7d" "OpenSSL" .SH "NAME" RSA_set_default_method, RSA_get_default_method, RSA_set_method, RSA_get_method, RSA_PKCS1_SSLeay, RSA_null_method, RSA_flags, -RSA_new_method \- select \s-1RSA\s0 method +RSA_new_method \- select RSA method .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& #include <openssl/rsa.h> .Ve +.PP .Vb 1 \& void RSA_set_default_method(const RSA_METHOD *meth); .Ve +.PP .Vb 1 \& RSA_METHOD *RSA_get_default_method(void); .Ve +.PP .Vb 1 \& int RSA_set_method(RSA *rsa, const RSA_METHOD *meth); .Ve +.PP .Vb 1 \& RSA_METHOD *RSA_get_method(const RSA *rsa); .Ve +.PP .Vb 1 \& RSA_METHOD *RSA_PKCS1_SSLeay(void); .Ve +.PP .Vb 1 \& RSA_METHOD *RSA_null_method(void); .Ve +.PP .Vb 1 \& int RSA_flags(const RSA *rsa); .Ve +.PP .Vb 1 \& RSA *RSA_new_method(RSA_METHOD *method); .Ve @@ -229,44 +227,53 @@ the default method is used. \& /* name of the implementation */ \& const char *name; .Ve +.PP .Vb 3 \& /* encrypt */ \& int (*rsa_pub_enc)(int flen, unsigned char *from, \& unsigned char *to, RSA *rsa, int padding); .Ve +.PP .Vb 3 \& /* verify arbitrary data */ \& int (*rsa_pub_dec)(int flen, unsigned char *from, \& unsigned char *to, RSA *rsa, int padding); .Ve +.PP .Vb 3 \& /* sign arbitrary data */ \& int (*rsa_priv_enc)(int flen, unsigned char *from, \& unsigned char *to, RSA *rsa, int padding); .Ve +.PP .Vb 3 \& /* decrypt */ \& int (*rsa_priv_dec)(int flen, unsigned char *from, \& unsigned char *to, RSA *rsa, int padding); .Ve +.PP .Vb 3 \& /* compute r0 = r0 ^ I mod rsa->n (May be NULL for some \& implementations) */ \& int (*rsa_mod_exp)(BIGNUM *r0, BIGNUM *I, RSA *rsa); .Ve +.PP .Vb 3 \& /* compute r = a ^ p mod m (May be NULL for some implementations) */ \& int (*bn_mod_exp)(BIGNUM *r, BIGNUM *a, const BIGNUM *p, \& const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); .Ve +.PP .Vb 2 \& /* called at RSA_new */ \& int (*init)(RSA *rsa); .Ve +.PP .Vb 2 \& /* called at RSA_free */ \& int (*finish)(RSA *rsa); .Ve +.PP .Vb 7 \& /* RSA_FLAG_EXT_PKEY - rsa_mod_exp is called for private key \& * operations, even if p,q,dmp1,dmq1,iqmp @@ -276,9 +283,11 @@ the default method is used. \& */ \& int flags; .Ve +.PP .Vb 1 \& char *app_data; /* ?? */ .Ve +.PP .Vb 5 \& /* sign. For backward compatibility, this is used only \& * if (flags & RSA_FLAG_SIGN_VER) @@ -286,6 +295,7 @@ the default method is used. \& int (*rsa_sign)(int type, unsigned char *m, unsigned int m_len, \& unsigned char *sigret, unsigned int *siglen, RSA *rsa); .Ve +.PP .Vb 5 \& /* verify. For backward compatibility, this is used only \& * if (flags & RSA_FLAG_SIGN_VER) @@ -293,6 +303,7 @@ the default method is used. \& int (*rsa_verify)(int type, unsigned char *m, unsigned int m_len, \& unsigned char *sigbuf, unsigned int siglen, RSA *rsa); .Ve +.PP .Vb 1 \& } RSA_METHOD; .Ve @@ -312,7 +323,7 @@ result of the \fIRSA_set_method()\fR function releasing its handle to the declaration in a future release. .PP \&\fIRSA_new_method()\fR returns \s-1NULL\s0 and sets an error code that can be obtained -by ERR_get_error(3) if the allocation fails. Otherwise +by \fIERR_get_error\fR\|(3) if the allocation fails. Otherwise it returns a pointer to the newly allocated structure. .SH "NOTES" .IX Header "NOTES" @@ -336,7 +347,7 @@ be reflected in the return value of the \fIRSA_flags()\fR function \- in effect not currently exist). .SH "SEE ALSO" .IX Header "SEE ALSO" -rsa(3), RSA_new(3) +\&\fIrsa\fR\|(3), \fIRSA_new\fR\|(3) .SH "HISTORY" .IX Header "HISTORY" \&\fIRSA_new_method()\fR and \fIRSA_set_default_method()\fR appeared in SSLeay 0.8. |