diff options
author | tb <> | 2024-05-11 06:53:19 +0000 |
---|---|---|
committer | tb <> | 2024-05-11 06:53:19 +0000 |
commit | dc588f2a7fc97ba2d903c1933d60eb84d6957f36 (patch) | |
tree | e9cb4b899f21f8582e1c18a4fcb9cd0ce7db0f22 /src | |
parent | 952eae61d25b73a81ec28a1a1581c90cbe0ad20a (diff) | |
download | openbsd-dc588f2a7fc97ba2d903c1933d60eb84d6957f36.tar.gz openbsd-dc588f2a7fc97ba2d903c1933d60eb84d6957f36.tar.bz2 openbsd-dc588f2a7fc97ba2d903c1933d60eb84d6957f36.zip |
Sync DSA_METHOD documentation with reality
It is dubious whether this opaque struct's internals should be documented
in the first place. This also has been incomplete since forever. For now
zap the stuff that no longer exists and make an attempt at matching KNF a
bit more closely.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/DSA_set_method.3 | 51 |
1 files changed, 15 insertions, 36 deletions
diff --git a/src/lib/libcrypto/man/DSA_set_method.3 b/src/lib/libcrypto/man/DSA_set_method.3 index ec6d2b4cd9..c60a3e29c3 100644 --- a/src/lib/libcrypto/man/DSA_set_method.3 +++ b/src/lib/libcrypto/man/DSA_set_method.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: DSA_set_method.3,v 1.11 2023/11/19 10:34:26 tb Exp $ | 1 | .\" $OpenBSD: DSA_set_method.3,v 1.12 2024/05/11 06:53:19 tb Exp $ |
2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. | 4 | .\" This file was written by Ulf Moeller <ulf@openssl.org>. |
@@ -48,7 +48,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 50 | .\" |
51 | .Dd $Mdocdate: November 19 2023 $ | 51 | .Dd $Mdocdate: May 11 2024 $ |
52 | .Dt DSA_SET_METHOD 3 | 52 | .Dt DSA_SET_METHOD 3 |
53 | .Os | 53 | .Os |
54 | .Sh NAME | 54 | .Sh NAME |
@@ -127,44 +127,23 @@ The | |||
127 | .Vt DSA_METHOD | 127 | .Vt DSA_METHOD |
128 | structure is defined as follows: | 128 | structure is defined as follows: |
129 | .Bd -literal | 129 | .Bd -literal |
130 | struct | 130 | struct { |
131 | { | 131 | /* name of the implementation */ |
132 | /* name of the implementation */ | ||
133 | const char *name; | 132 | const char *name; |
134 | 133 | /* sign */ | |
135 | /* sign */ | ||
136 | DSA_SIG *(*dsa_do_sign)(const unsigned char *dgst, int dlen, | 134 | DSA_SIG *(*dsa_do_sign)(const unsigned char *dgst, int dlen, |
137 | DSA *dsa); | 135 | DSA *dsa); |
138 | 136 | /* pre-compute k^-1 and r */ | |
139 | /* pre-compute k^-1 and r */ | ||
140 | int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, | 137 | int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, |
141 | BIGNUM **rp); | 138 | BIGNUM **rp); |
142 | 139 | /* verify */ | |
143 | /* verify */ | ||
144 | int (*dsa_do_verify)(const unsigned char *dgst, int dgst_len, | 140 | int (*dsa_do_verify)(const unsigned char *dgst, int dgst_len, |
145 | DSA_SIG *sig, DSA *dsa); | 141 | DSA_SIG *sig, DSA *dsa); |
146 | 142 | /* called at DSA_new */ | |
147 | /* compute rr = a1^p1 * a2^p2 mod m (May be NULL for some | 143 | int (*init)(DSA *DSA); |
148 | implementations) */ | 144 | /* called at DSA_free */ |
149 | int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, | 145 | int (*finish)(DSA *DSA); |
150 | BIGNUM *a2, BIGNUM *p2, BIGNUM *m, | 146 | int flags; |
151 | BN_CTX *ctx, BN_MONT_CTX *in_mont); | ||
152 | |||
153 | /* compute r = a ^ p mod m (May be NULL for some implementations) */ | ||
154 | int (*bn_mod_exp)(DSA *dsa, BIGNUM *r, BIGNUM *a, | ||
155 | const BIGNUM *p, const BIGNUM *m, | ||
156 | BN_CTX *ctx, BN_MONT_CTX *m_ctx); | ||
157 | |||
158 | /* called at DSA_new */ | ||
159 | int (*init)(DSA *DSA); | ||
160 | |||
161 | /* called at DSA_free */ | ||
162 | int (*finish)(DSA *DSA); | ||
163 | |||
164 | int flags; | ||
165 | |||
166 | char *app_data; /* ?? */ | ||
167 | |||
168 | } DSA_METHOD; | 147 | } DSA_METHOD; |
169 | .Ed | 148 | .Ed |
170 | .Sh RETURN VALUES | 149 | .Sh RETURN VALUES |