@annadata/capacitor-mqtt-quic 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/ios/include/nghttp3/nghttp3.h +3295 -0
  2. package/ios/include/nghttp3/version.h +46 -0
  3. package/ios/include/ngtcp2/ngtcp2.h +6254 -0
  4. package/ios/include/ngtcp2/ngtcp2_crypto.h +1037 -0
  5. package/ios/include/ngtcp2/ngtcp2_crypto_quictls.h +147 -0
  6. package/ios/include/ngtcp2/version.h +51 -0
  7. package/ios/include/openssl/aes.h +111 -0
  8. package/ios/include/openssl/asn1.h +1131 -0
  9. package/ios/include/openssl/asn1_mac.h +10 -0
  10. package/ios/include/openssl/asn1err.h +140 -0
  11. package/ios/include/openssl/asn1t.h +946 -0
  12. package/ios/include/openssl/async.h +96 -0
  13. package/ios/include/openssl/asyncerr.h +29 -0
  14. package/ios/include/openssl/bio.h +887 -0
  15. package/ios/include/openssl/bioerr.h +65 -0
  16. package/ios/include/openssl/blowfish.h +78 -0
  17. package/ios/include/openssl/bn.h +584 -0
  18. package/ios/include/openssl/bnerr.h +47 -0
  19. package/ios/include/openssl/buffer.h +62 -0
  20. package/ios/include/openssl/buffererr.h +25 -0
  21. package/ios/include/openssl/camellia.h +117 -0
  22. package/ios/include/openssl/cast.h +71 -0
  23. package/ios/include/openssl/cmac.h +52 -0
  24. package/ios/include/openssl/cmp.h +597 -0
  25. package/ios/include/openssl/cmp_util.h +56 -0
  26. package/ios/include/openssl/cmperr.h +116 -0
  27. package/ios/include/openssl/cms.h +493 -0
  28. package/ios/include/openssl/cmserr.h +124 -0
  29. package/ios/include/openssl/comp.h +59 -0
  30. package/ios/include/openssl/comperr.h +31 -0
  31. package/ios/include/openssl/conf.h +214 -0
  32. package/ios/include/openssl/conf_api.h +46 -0
  33. package/ios/include/openssl/conferr.h +52 -0
  34. package/ios/include/openssl/configuration.h +149 -0
  35. package/ios/include/openssl/conftypes.h +44 -0
  36. package/ios/include/openssl/core.h +233 -0
  37. package/ios/include/openssl/core_dispatch.h +960 -0
  38. package/ios/include/openssl/core_names.h +561 -0
  39. package/ios/include/openssl/core_object.h +41 -0
  40. package/ios/include/openssl/crmf.h +227 -0
  41. package/ios/include/openssl/crmferr.h +50 -0
  42. package/ios/include/openssl/crypto.h +558 -0
  43. package/ios/include/openssl/cryptoerr.h +55 -0
  44. package/ios/include/openssl/cryptoerr_legacy.h +1466 -0
  45. package/ios/include/openssl/ct.h +573 -0
  46. package/ios/include/openssl/cterr.h +45 -0
  47. package/ios/include/openssl/decoder.h +133 -0
  48. package/ios/include/openssl/decodererr.h +28 -0
  49. package/ios/include/openssl/des.h +211 -0
  50. package/ios/include/openssl/dh.h +335 -0
  51. package/ios/include/openssl/dherr.h +58 -0
  52. package/ios/include/openssl/dsa.h +280 -0
  53. package/ios/include/openssl/dsaerr.h +44 -0
  54. package/ios/include/openssl/dtls1.h +57 -0
  55. package/ios/include/openssl/e_os2.h +308 -0
  56. package/ios/include/openssl/ebcdic.h +39 -0
  57. package/ios/include/openssl/ec.h +1572 -0
  58. package/ios/include/openssl/ecdh.h +10 -0
  59. package/ios/include/openssl/ecdsa.h +10 -0
  60. package/ios/include/openssl/ecerr.h +104 -0
  61. package/ios/include/openssl/encoder.h +124 -0
  62. package/ios/include/openssl/encodererr.h +28 -0
  63. package/ios/include/openssl/engine.h +833 -0
  64. package/ios/include/openssl/engineerr.h +63 -0
  65. package/ios/include/openssl/err.h +504 -0
  66. package/ios/include/openssl/ess.h +128 -0
  67. package/ios/include/openssl/esserr.h +32 -0
  68. package/ios/include/openssl/evp.h +2175 -0
  69. package/ios/include/openssl/evperr.h +134 -0
  70. package/ios/include/openssl/fips_names.h +77 -0
  71. package/ios/include/openssl/fipskey.h +36 -0
  72. package/ios/include/openssl/hmac.h +62 -0
  73. package/ios/include/openssl/http.h +109 -0
  74. package/ios/include/openssl/httperr.h +55 -0
  75. package/ios/include/openssl/idea.h +82 -0
  76. package/ios/include/openssl/kdf.h +138 -0
  77. package/ios/include/openssl/kdferr.h +16 -0
  78. package/ios/include/openssl/lhash.h +331 -0
  79. package/ios/include/openssl/macros.h +325 -0
  80. package/ios/include/openssl/md2.h +56 -0
  81. package/ios/include/openssl/md4.h +63 -0
  82. package/ios/include/openssl/md5.h +62 -0
  83. package/ios/include/openssl/mdc2.h +55 -0
  84. package/ios/include/openssl/modes.h +219 -0
  85. package/ios/include/openssl/obj_mac.h +5481 -0
  86. package/ios/include/openssl/objects.h +183 -0
  87. package/ios/include/openssl/objectserr.h +28 -0
  88. package/ios/include/openssl/ocsp.h +483 -0
  89. package/ios/include/openssl/ocsperr.h +53 -0
  90. package/ios/include/openssl/opensslconf.h +17 -0
  91. package/ios/include/openssl/opensslv.h +114 -0
  92. package/ios/include/openssl/ossl_typ.h +16 -0
  93. package/ios/include/openssl/param_build.h +63 -0
  94. package/ios/include/openssl/params.h +160 -0
  95. package/ios/include/openssl/pem.h +541 -0
  96. package/ios/include/openssl/pem2.h +19 -0
  97. package/ios/include/openssl/pemerr.h +58 -0
  98. package/ios/include/openssl/pkcs12.h +353 -0
  99. package/ios/include/openssl/pkcs12err.h +45 -0
  100. package/ios/include/openssl/pkcs7.h +430 -0
  101. package/ios/include/openssl/pkcs7err.h +63 -0
  102. package/ios/include/openssl/prov_ssl.h +34 -0
  103. package/ios/include/openssl/proverr.h +149 -0
  104. package/ios/include/openssl/provider.h +60 -0
  105. package/ios/include/openssl/quic.h +19 -0
  106. package/ios/include/openssl/rand.h +125 -0
  107. package/ios/include/openssl/randerr.h +69 -0
  108. package/ios/include/openssl/rc2.h +68 -0
  109. package/ios/include/openssl/rc4.h +47 -0
  110. package/ios/include/openssl/rc5.h +79 -0
  111. package/ios/include/openssl/ripemd.h +59 -0
  112. package/ios/include/openssl/rsa.h +610 -0
  113. package/ios/include/openssl/rsaerr.h +107 -0
  114. package/ios/include/openssl/safestack.h +297 -0
  115. package/ios/include/openssl/seed.h +113 -0
  116. package/ios/include/openssl/self_test.h +94 -0
  117. package/ios/include/openssl/sha.h +138 -0
  118. package/ios/include/openssl/srp.h +285 -0
  119. package/ios/include/openssl/srtp.h +56 -0
  120. package/ios/include/openssl/ssl.h +2671 -0
  121. package/ios/include/openssl/ssl2.h +30 -0
  122. package/ios/include/openssl/ssl3.h +347 -0
  123. package/ios/include/openssl/sslerr.h +348 -0
  124. package/ios/include/openssl/sslerr_legacy.h +468 -0
  125. package/ios/include/openssl/stack.h +90 -0
  126. package/ios/include/openssl/store.h +369 -0
  127. package/ios/include/openssl/storeerr.h +49 -0
  128. package/ios/include/openssl/symhacks.h +39 -0
  129. package/ios/include/openssl/tls1.h +1186 -0
  130. package/ios/include/openssl/trace.h +312 -0
  131. package/ios/include/openssl/ts.h +505 -0
  132. package/ios/include/openssl/tserr.h +67 -0
  133. package/ios/include/openssl/txt_db.h +63 -0
  134. package/ios/include/openssl/types.h +239 -0
  135. package/ios/include/openssl/ui.h +407 -0
  136. package/ios/include/openssl/uierr.h +38 -0
  137. package/ios/include/openssl/whrlpool.h +62 -0
  138. package/ios/include/openssl/x509.h +1279 -0
  139. package/ios/include/openssl/x509_vfy.h +894 -0
  140. package/ios/include/openssl/x509err.h +69 -0
  141. package/ios/include/openssl/x509v3.h +1453 -0
  142. package/ios/include/openssl/x509v3err.h +93 -0
  143. package/ios/libs/libcrypto.a +0 -0
  144. package/ios/libs/libnghttp3.a +0 -0
  145. package/ios/libs/libngtcp2.a +0 -0
  146. package/ios/libs/libngtcp2_crypto_quictls.a +0 -0
  147. package/ios/libs/libssl.a +0 -0
  148. package/package.json +2 -2
@@ -0,0 +1,335 @@
1
+ /*
2
+ * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
5
+ * this file except in compliance with the License. You can obtain a copy
6
+ * in the file LICENSE in the source distribution or at
7
+ * https://www.openssl.org/source/license.html
8
+ */
9
+
10
+ #ifndef OPENSSL_DH_H
11
+ # define OPENSSL_DH_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_DH_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+ # include <openssl/types.h>
21
+
22
+ # ifdef __cplusplus
23
+ extern "C" {
24
+ # endif
25
+
26
+ #include <stdlib.h>
27
+
28
+ /* DH parameter generation types used by EVP_PKEY_CTX_set_dh_paramgen_type() */
29
+ # define DH_PARAMGEN_TYPE_GENERATOR 0 /* Use a safe prime generator */
30
+ # define DH_PARAMGEN_TYPE_FIPS_186_2 1 /* Use FIPS186-2 standard */
31
+ # define DH_PARAMGEN_TYPE_FIPS_186_4 2 /* Use FIPS186-4 standard */
32
+ # define DH_PARAMGEN_TYPE_GROUP 3 /* Use a named safe prime group */
33
+
34
+ int EVP_PKEY_CTX_set_dh_paramgen_type(EVP_PKEY_CTX *ctx, int typ);
35
+ int EVP_PKEY_CTX_set_dh_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex);
36
+ int EVP_PKEY_CTX_set_dh_paramgen_seed(EVP_PKEY_CTX *ctx,
37
+ const unsigned char *seed,
38
+ size_t seedlen);
39
+ int EVP_PKEY_CTX_set_dh_paramgen_prime_len(EVP_PKEY_CTX *ctx, int pbits);
40
+ int EVP_PKEY_CTX_set_dh_paramgen_subprime_len(EVP_PKEY_CTX *ctx, int qlen);
41
+ int EVP_PKEY_CTX_set_dh_paramgen_generator(EVP_PKEY_CTX *ctx, int gen);
42
+ int EVP_PKEY_CTX_set_dh_nid(EVP_PKEY_CTX *ctx, int nid);
43
+ int EVP_PKEY_CTX_set_dh_rfc5114(EVP_PKEY_CTX *ctx, int gen);
44
+ int EVP_PKEY_CTX_set_dhx_rfc5114(EVP_PKEY_CTX *ctx, int gen);
45
+ int EVP_PKEY_CTX_set_dh_pad(EVP_PKEY_CTX *ctx, int pad);
46
+
47
+ int EVP_PKEY_CTX_set_dh_kdf_type(EVP_PKEY_CTX *ctx, int kdf);
48
+ int EVP_PKEY_CTX_get_dh_kdf_type(EVP_PKEY_CTX *ctx);
49
+ int EVP_PKEY_CTX_set0_dh_kdf_oid(EVP_PKEY_CTX *ctx, ASN1_OBJECT *oid);
50
+ int EVP_PKEY_CTX_get0_dh_kdf_oid(EVP_PKEY_CTX *ctx, ASN1_OBJECT **oid);
51
+ int EVP_PKEY_CTX_set_dh_kdf_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);
52
+ int EVP_PKEY_CTX_get_dh_kdf_md(EVP_PKEY_CTX *ctx, const EVP_MD **md);
53
+ int EVP_PKEY_CTX_set_dh_kdf_outlen(EVP_PKEY_CTX *ctx, int len);
54
+ int EVP_PKEY_CTX_get_dh_kdf_outlen(EVP_PKEY_CTX *ctx, int *len);
55
+ int EVP_PKEY_CTX_set0_dh_kdf_ukm(EVP_PKEY_CTX *ctx, unsigned char *ukm, int len);
56
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
57
+ OSSL_DEPRECATEDIN_3_0
58
+ int EVP_PKEY_CTX_get0_dh_kdf_ukm(EVP_PKEY_CTX *ctx, unsigned char **ukm);
59
+ #endif
60
+
61
+ # define EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN (EVP_PKEY_ALG_CTRL + 1)
62
+ # define EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR (EVP_PKEY_ALG_CTRL + 2)
63
+ # define EVP_PKEY_CTRL_DH_RFC5114 (EVP_PKEY_ALG_CTRL + 3)
64
+ # define EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN (EVP_PKEY_ALG_CTRL + 4)
65
+ # define EVP_PKEY_CTRL_DH_PARAMGEN_TYPE (EVP_PKEY_ALG_CTRL + 5)
66
+ # define EVP_PKEY_CTRL_DH_KDF_TYPE (EVP_PKEY_ALG_CTRL + 6)
67
+ # define EVP_PKEY_CTRL_DH_KDF_MD (EVP_PKEY_ALG_CTRL + 7)
68
+ # define EVP_PKEY_CTRL_GET_DH_KDF_MD (EVP_PKEY_ALG_CTRL + 8)
69
+ # define EVP_PKEY_CTRL_DH_KDF_OUTLEN (EVP_PKEY_ALG_CTRL + 9)
70
+ # define EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN (EVP_PKEY_ALG_CTRL + 10)
71
+ # define EVP_PKEY_CTRL_DH_KDF_UKM (EVP_PKEY_ALG_CTRL + 11)
72
+ # define EVP_PKEY_CTRL_GET_DH_KDF_UKM (EVP_PKEY_ALG_CTRL + 12)
73
+ # define EVP_PKEY_CTRL_DH_KDF_OID (EVP_PKEY_ALG_CTRL + 13)
74
+ # define EVP_PKEY_CTRL_GET_DH_KDF_OID (EVP_PKEY_ALG_CTRL + 14)
75
+ # define EVP_PKEY_CTRL_DH_NID (EVP_PKEY_ALG_CTRL + 15)
76
+ # define EVP_PKEY_CTRL_DH_PAD (EVP_PKEY_ALG_CTRL + 16)
77
+
78
+ /* KDF types */
79
+ # define EVP_PKEY_DH_KDF_NONE 1
80
+ # define EVP_PKEY_DH_KDF_X9_42 2
81
+
82
+ # ifndef OPENSSL_NO_STDIO
83
+ # include <stdio.h>
84
+ # endif
85
+ # ifndef OPENSSL_NO_DH
86
+ # include <openssl/e_os2.h>
87
+ # include <openssl/bio.h>
88
+ # include <openssl/asn1.h>
89
+ # ifndef OPENSSL_NO_DEPRECATED_1_1_0
90
+ # include <openssl/bn.h>
91
+ # endif
92
+ # include <openssl/dherr.h>
93
+
94
+ # ifndef OPENSSL_DH_MAX_MODULUS_BITS
95
+ # define OPENSSL_DH_MAX_MODULUS_BITS 10000
96
+ # endif
97
+
98
+ # ifndef OPENSSL_DH_CHECK_MAX_MODULUS_BITS
99
+ # define OPENSSL_DH_CHECK_MAX_MODULUS_BITS 32768
100
+ # endif
101
+
102
+ # define OPENSSL_DH_FIPS_MIN_MODULUS_BITS 1024
103
+
104
+ # define DH_FLAG_CACHE_MONT_P 0x01
105
+
106
+ # define DH_FLAG_TYPE_MASK 0xF000
107
+ # define DH_FLAG_TYPE_DH 0x0000
108
+ # define DH_FLAG_TYPE_DHX 0x1000
109
+
110
+ # ifndef OPENSSL_NO_DEPRECATED_1_1_0
111
+ /*
112
+ * Does nothing. Previously this switched off constant time behaviour.
113
+ */
114
+ # define DH_FLAG_NO_EXP_CONSTTIME 0x00
115
+ # endif
116
+
117
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
118
+ /*
119
+ * If this flag is set the DH method is FIPS compliant and can be used in
120
+ * FIPS mode. This is set in the validated module method. If an application
121
+ * sets this flag in its own methods it is its responsibility to ensure the
122
+ * result is compliant.
123
+ */
124
+
125
+ # define DH_FLAG_FIPS_METHOD 0x0400
126
+
127
+ /*
128
+ * If this flag is set the operations normally disabled in FIPS mode are
129
+ * permitted it is then the applications responsibility to ensure that the
130
+ * usage is compliant.
131
+ */
132
+
133
+ # define DH_FLAG_NON_FIPS_ALLOW 0x0400
134
+ # endif
135
+
136
+ /* Already defined in ossl_typ.h */
137
+ /* typedef struct dh_st DH; */
138
+ /* typedef struct dh_method DH_METHOD; */
139
+
140
+ DECLARE_ASN1_ITEM(DHparams)
141
+
142
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
143
+ # define DH_GENERATOR_2 2
144
+ # define DH_GENERATOR_3 3
145
+ # define DH_GENERATOR_5 5
146
+
147
+ /* DH_check error codes, some of them shared with DH_check_pub_key */
148
+ /*
149
+ * NB: These values must align with the equivalently named macros in
150
+ * internal/ffc.h.
151
+ */
152
+ # define DH_CHECK_P_NOT_PRIME 0x01
153
+ # define DH_CHECK_P_NOT_SAFE_PRIME 0x02
154
+ # define DH_UNABLE_TO_CHECK_GENERATOR 0x04
155
+ # define DH_NOT_SUITABLE_GENERATOR 0x08
156
+ # define DH_CHECK_Q_NOT_PRIME 0x10
157
+ # define DH_CHECK_INVALID_Q_VALUE 0x20 /* +DH_check_pub_key */
158
+ # define DH_CHECK_INVALID_J_VALUE 0x40
159
+ # define DH_MODULUS_TOO_SMALL 0x80
160
+ # define DH_MODULUS_TOO_LARGE 0x100 /* +DH_check_pub_key */
161
+
162
+ /* DH_check_pub_key error codes */
163
+ # define DH_CHECK_PUBKEY_TOO_SMALL 0x01
164
+ # define DH_CHECK_PUBKEY_TOO_LARGE 0x02
165
+ # define DH_CHECK_PUBKEY_INVALID 0x04
166
+
167
+ /*
168
+ * primes p where (p-1)/2 is prime too are called "safe"; we define this for
169
+ * backward compatibility:
170
+ */
171
+ # define DH_CHECK_P_NOT_STRONG_PRIME DH_CHECK_P_NOT_SAFE_PRIME
172
+
173
+ # define d2i_DHparams_fp(fp, x) \
174
+ (DH *)ASN1_d2i_fp((char *(*)())DH_new, \
175
+ (char *(*)())d2i_DHparams, \
176
+ (fp), \
177
+ (unsigned char **)(x))
178
+ # define i2d_DHparams_fp(fp, x) \
179
+ ASN1_i2d_fp(i2d_DHparams,(fp), (unsigned char *)(x))
180
+ # define d2i_DHparams_bio(bp, x) \
181
+ ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x)
182
+ # define i2d_DHparams_bio(bp, x) \
183
+ ASN1_i2d_bio_of(DH, i2d_DHparams, bp, x)
184
+
185
+ # define d2i_DHxparams_fp(fp,x) \
186
+ (DH *)ASN1_d2i_fp((char *(*)())DH_new, \
187
+ (char *(*)())d2i_DHxparams, \
188
+ (fp), \
189
+ (unsigned char **)(x))
190
+ # define i2d_DHxparams_fp(fp, x) \
191
+ ASN1_i2d_fp(i2d_DHxparams,(fp), (unsigned char *)(x))
192
+ # define d2i_DHxparams_bio(bp, x) \
193
+ ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x)
194
+ # define i2d_DHxparams_bio(bp, x) \
195
+ ASN1_i2d_bio_of(DH, i2d_DHxparams, bp, x)
196
+
197
+ DECLARE_ASN1_DUP_FUNCTION_name_attr(OSSL_DEPRECATEDIN_3_0, DH, DHparams)
198
+
199
+ OSSL_DEPRECATEDIN_3_0 const DH_METHOD *DH_OpenSSL(void);
200
+
201
+ OSSL_DEPRECATEDIN_3_0 void DH_set_default_method(const DH_METHOD *meth);
202
+ OSSL_DEPRECATEDIN_3_0 const DH_METHOD *DH_get_default_method(void);
203
+ OSSL_DEPRECATEDIN_3_0 int DH_set_method(DH *dh, const DH_METHOD *meth);
204
+ OSSL_DEPRECATEDIN_3_0 DH *DH_new_method(ENGINE *engine);
205
+
206
+ OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
207
+ OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
208
+ OSSL_DEPRECATEDIN_3_0 int DH_up_ref(DH *dh);
209
+ OSSL_DEPRECATEDIN_3_0 int DH_bits(const DH *dh);
210
+ OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh);
211
+ OSSL_DEPRECATEDIN_3_0 int DH_security_bits(const DH *dh);
212
+
213
+ # define DH_get_ex_new_index(l, p, newf, dupf, freef) \
214
+ CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DH, l, p, newf, dupf, freef)
215
+
216
+ OSSL_DEPRECATEDIN_3_0 int DH_set_ex_data(DH *d, int idx, void *arg);
217
+ OSSL_DEPRECATEDIN_3_0 void *DH_get_ex_data(const DH *d, int idx);
218
+
219
+ OSSL_DEPRECATEDIN_3_0 int DH_generate_parameters_ex(DH *dh, int prime_len,
220
+ int generator,
221
+ BN_GENCB *cb);
222
+
223
+ OSSL_DEPRECATEDIN_3_0 int DH_check_params_ex(const DH *dh);
224
+ OSSL_DEPRECATEDIN_3_0 int DH_check_ex(const DH *dh);
225
+ OSSL_DEPRECATEDIN_3_0 int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key);
226
+ OSSL_DEPRECATEDIN_3_0 int DH_check_params(const DH *dh, int *ret);
227
+ OSSL_DEPRECATEDIN_3_0 int DH_check(const DH *dh, int *codes);
228
+ OSSL_DEPRECATEDIN_3_0 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
229
+ int *codes);
230
+ OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh);
231
+ OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key,
232
+ const BIGNUM *pub_key, DH *dh);
233
+ OSSL_DEPRECATEDIN_3_0 int DH_compute_key_padded(unsigned char *key,
234
+ const BIGNUM *pub_key, DH *dh);
235
+
236
+ DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, DH, DHparams)
237
+ DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0, DH, DHxparams)
238
+
239
+ # ifndef OPENSSL_NO_STDIO
240
+ OSSL_DEPRECATEDIN_3_0 int DHparams_print_fp(FILE *fp, const DH *x);
241
+ # endif
242
+ OSSL_DEPRECATEDIN_3_0 int DHparams_print(BIO *bp, const DH *x);
243
+
244
+ /* RFC 5114 parameters */
245
+ OSSL_DEPRECATEDIN_3_0 DH *DH_get_1024_160(void);
246
+ OSSL_DEPRECATEDIN_3_0 DH *DH_get_2048_224(void);
247
+ OSSL_DEPRECATEDIN_3_0 DH *DH_get_2048_256(void);
248
+
249
+ /* Named parameters, currently RFC7919 and RFC3526 */
250
+ OSSL_DEPRECATEDIN_3_0 DH *DH_new_by_nid(int nid);
251
+ OSSL_DEPRECATEDIN_3_0 int DH_get_nid(const DH *dh);
252
+
253
+ /* RFC2631 KDF */
254
+ OSSL_DEPRECATEDIN_3_0 int DH_KDF_X9_42(unsigned char *out, size_t outlen,
255
+ const unsigned char *Z, size_t Zlen,
256
+ ASN1_OBJECT *key_oid,
257
+ const unsigned char *ukm,
258
+ size_t ukmlen, const EVP_MD *md);
259
+
260
+ OSSL_DEPRECATEDIN_3_0 void DH_get0_pqg(const DH *dh, const BIGNUM **p,
261
+ const BIGNUM **q, const BIGNUM **g);
262
+ OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
263
+ OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM **pub_key,
264
+ const BIGNUM **priv_key);
265
+ OSSL_DEPRECATEDIN_3_0 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
266
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_p(const DH *dh);
267
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_q(const DH *dh);
268
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_g(const DH *dh);
269
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_priv_key(const DH *dh);
270
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DH_get0_pub_key(const DH *dh);
271
+ OSSL_DEPRECATEDIN_3_0 void DH_clear_flags(DH *dh, int flags);
272
+ OSSL_DEPRECATEDIN_3_0 int DH_test_flags(const DH *dh, int flags);
273
+ OSSL_DEPRECATEDIN_3_0 void DH_set_flags(DH *dh, int flags);
274
+ OSSL_DEPRECATEDIN_3_0 ENGINE *DH_get0_engine(DH *d);
275
+ OSSL_DEPRECATEDIN_3_0 long DH_get_length(const DH *dh);
276
+ OSSL_DEPRECATEDIN_3_0 int DH_set_length(DH *dh, long length);
277
+
278
+ OSSL_DEPRECATEDIN_3_0 DH_METHOD *DH_meth_new(const char *name, int flags);
279
+ OSSL_DEPRECATEDIN_3_0 void DH_meth_free(DH_METHOD *dhm);
280
+ OSSL_DEPRECATEDIN_3_0 DH_METHOD *DH_meth_dup(const DH_METHOD *dhm);
281
+ OSSL_DEPRECATEDIN_3_0 const char *DH_meth_get0_name(const DH_METHOD *dhm);
282
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_set1_name(DH_METHOD *dhm, const char *name);
283
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_get_flags(const DH_METHOD *dhm);
284
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_set_flags(DH_METHOD *dhm, int flags);
285
+ OSSL_DEPRECATEDIN_3_0 void *DH_meth_get0_app_data(const DH_METHOD *dhm);
286
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_set0_app_data(DH_METHOD *dhm, void *app_data);
287
+ OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *);
288
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_set_generate_key(DH_METHOD *dhm,
289
+ int (*generate_key) (DH *));
290
+ OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_compute_key(const DH_METHOD *dhm))
291
+ (unsigned char *key,
292
+ const BIGNUM *pub_key,
293
+ DH *dh);
294
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_set_compute_key(DH_METHOD *dhm,
295
+ int (*compute_key)
296
+ (unsigned char *key,
297
+ const BIGNUM *pub_key,
298
+ DH *dh));
299
+ OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_bn_mod_exp(const DH_METHOD *dhm))
300
+ (const DH *, BIGNUM *,
301
+ const BIGNUM *,
302
+ const BIGNUM *,
303
+ const BIGNUM *, BN_CTX *,
304
+ BN_MONT_CTX *);
305
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_set_bn_mod_exp(DH_METHOD *dhm,
306
+ int (*bn_mod_exp)
307
+ (const DH *, BIGNUM *,
308
+ const BIGNUM *, const BIGNUM *,
309
+ const BIGNUM *, BN_CTX *,
310
+ BN_MONT_CTX *));
311
+ OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_init(const DH_METHOD *dhm))(DH *);
312
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *));
313
+ OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *);
314
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_set_finish(DH_METHOD *dhm, int (*finish) (DH *));
315
+ OSSL_DEPRECATEDIN_3_0 int (*DH_meth_get_generate_params(const DH_METHOD *dhm))
316
+ (DH *, int, int,
317
+ BN_GENCB *);
318
+ OSSL_DEPRECATEDIN_3_0 int DH_meth_set_generate_params(DH_METHOD *dhm,
319
+ int (*generate_params)
320
+ (DH *, int, int,
321
+ BN_GENCB *));
322
+ # endif /* OPENSSL_NO_DEPRECATED_3_0 */
323
+
324
+ # ifndef OPENSSL_NO_DEPRECATED_0_9_8
325
+ OSSL_DEPRECATEDIN_0_9_8 DH *DH_generate_parameters(int prime_len, int generator,
326
+ void (*callback) (int, int,
327
+ void *),
328
+ void *cb_arg);
329
+ # endif
330
+
331
+ # endif
332
+ # ifdef __cplusplus
333
+ }
334
+ # endif
335
+ #endif
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Generated by util/mkerr.pl DO NOT EDIT
3
+ * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
6
+ * this file except in compliance with the License. You can obtain a copy
7
+ * in the file LICENSE in the source distribution or at
8
+ * https://www.openssl.org/source/license.html
9
+ */
10
+
11
+ #ifndef OPENSSL_DHERR_H
12
+ # define OPENSSL_DHERR_H
13
+ # pragma once
14
+
15
+ # include <openssl/opensslconf.h>
16
+ # include <openssl/symhacks.h>
17
+ # include <openssl/cryptoerr_legacy.h>
18
+
19
+
20
+ # ifndef OPENSSL_NO_DH
21
+
22
+
23
+ /*
24
+ * DH reason codes.
25
+ */
26
+ # define DH_R_BAD_FFC_PARAMETERS 127
27
+ # define DH_R_BAD_GENERATOR 101
28
+ # define DH_R_BN_DECODE_ERROR 109
29
+ # define DH_R_BN_ERROR 106
30
+ # define DH_R_CHECK_INVALID_J_VALUE 115
31
+ # define DH_R_CHECK_INVALID_Q_VALUE 116
32
+ # define DH_R_CHECK_PUBKEY_INVALID 122
33
+ # define DH_R_CHECK_PUBKEY_TOO_LARGE 123
34
+ # define DH_R_CHECK_PUBKEY_TOO_SMALL 124
35
+ # define DH_R_CHECK_P_NOT_PRIME 117
36
+ # define DH_R_CHECK_P_NOT_SAFE_PRIME 118
37
+ # define DH_R_CHECK_Q_NOT_PRIME 119
38
+ # define DH_R_DECODE_ERROR 104
39
+ # define DH_R_INVALID_PARAMETER_NAME 110
40
+ # define DH_R_INVALID_PARAMETER_NID 114
41
+ # define DH_R_INVALID_PUBKEY 102
42
+ # define DH_R_INVALID_SECRET 128
43
+ # define DH_R_KDF_PARAMETER_ERROR 112
44
+ # define DH_R_KEYS_NOT_SET 108
45
+ # define DH_R_MISSING_PUBKEY 125
46
+ # define DH_R_MODULUS_TOO_LARGE 103
47
+ # define DH_R_MODULUS_TOO_SMALL 126
48
+ # define DH_R_NOT_SUITABLE_GENERATOR 120
49
+ # define DH_R_NO_PARAMETERS_SET 107
50
+ # define DH_R_NO_PRIVATE_VALUE 100
51
+ # define DH_R_PARAMETER_ENCODING_ERROR 105
52
+ # define DH_R_PEER_KEY_ERROR 111
53
+ # define DH_R_Q_TOO_LARGE 130
54
+ # define DH_R_SHARED_INFO_ERROR 113
55
+ # define DH_R_UNABLE_TO_CHECK_GENERATOR 121
56
+
57
+ # endif
58
+ #endif
@@ -0,0 +1,280 @@
1
+ /*
2
+ * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
5
+ * this file except in compliance with the License. You can obtain a copy
6
+ * in the file LICENSE in the source distribution or at
7
+ * https://www.openssl.org/source/license.html
8
+ */
9
+
10
+ #ifndef OPENSSL_DSA_H
11
+ # define OPENSSL_DSA_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_DSA_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+ # include <openssl/types.h>
21
+
22
+ # include <stdlib.h>
23
+
24
+ # ifndef OPENSSL_NO_DSA
25
+ # include <openssl/e_os2.h>
26
+ # include <openssl/asn1.h>
27
+ # include <openssl/bio.h>
28
+ # include <openssl/crypto.h>
29
+ # include <openssl/bn.h>
30
+ # ifndef OPENSSL_NO_DEPRECATED_1_1_0
31
+ # include <openssl/dh.h>
32
+ # endif
33
+ # include <openssl/dsaerr.h>
34
+ # ifndef OPENSSL_NO_STDIO
35
+ # include <stdio.h>
36
+ # endif
37
+ # endif
38
+
39
+ # ifdef __cplusplus
40
+ extern "C" {
41
+ # endif
42
+
43
+ int EVP_PKEY_CTX_set_dsa_paramgen_bits(EVP_PKEY_CTX *ctx, int nbits);
44
+ int EVP_PKEY_CTX_set_dsa_paramgen_q_bits(EVP_PKEY_CTX *ctx, int qbits);
45
+ int EVP_PKEY_CTX_set_dsa_paramgen_md_props(EVP_PKEY_CTX *ctx,
46
+ const char *md_name,
47
+ const char *md_properties);
48
+ int EVP_PKEY_CTX_set_dsa_paramgen_gindex(EVP_PKEY_CTX *ctx, int gindex);
49
+ int EVP_PKEY_CTX_set_dsa_paramgen_type(EVP_PKEY_CTX *ctx, const char *name);
50
+ int EVP_PKEY_CTX_set_dsa_paramgen_seed(EVP_PKEY_CTX *ctx,
51
+ const unsigned char *seed,
52
+ size_t seedlen);
53
+ int EVP_PKEY_CTX_set_dsa_paramgen_md(EVP_PKEY_CTX *ctx, const EVP_MD *md);
54
+
55
+ # define EVP_PKEY_CTRL_DSA_PARAMGEN_BITS (EVP_PKEY_ALG_CTRL + 1)
56
+ # define EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS (EVP_PKEY_ALG_CTRL + 2)
57
+ # define EVP_PKEY_CTRL_DSA_PARAMGEN_MD (EVP_PKEY_ALG_CTRL + 3)
58
+
59
+ # ifndef OPENSSL_NO_DSA
60
+ # ifndef OPENSSL_DSA_MAX_MODULUS_BITS
61
+ # define OPENSSL_DSA_MAX_MODULUS_BITS 10000
62
+ # endif
63
+
64
+ # define OPENSSL_DSA_FIPS_MIN_MODULUS_BITS 1024
65
+
66
+ typedef struct DSA_SIG_st DSA_SIG;
67
+ DSA_SIG *DSA_SIG_new(void);
68
+ void DSA_SIG_free(DSA_SIG *a);
69
+ DECLARE_ASN1_ENCODE_FUNCTIONS_only(DSA_SIG, DSA_SIG)
70
+ void DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);
71
+ int DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s);
72
+
73
+
74
+ # ifndef OPENSSL_NO_DEPRECATED_1_1_0
75
+ /*
76
+ * Does nothing. Previously this switched off constant time behaviour.
77
+ */
78
+ # define DSA_FLAG_NO_EXP_CONSTTIME 0x00
79
+ # endif
80
+
81
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
82
+ # define DSA_FLAG_CACHE_MONT_P 0x01
83
+
84
+ /*
85
+ * If this flag is set the DSA method is FIPS compliant and can be used in
86
+ * FIPS mode. This is set in the validated module method. If an application
87
+ * sets this flag in its own methods it is its responsibility to ensure the
88
+ * result is compliant.
89
+ */
90
+
91
+ # define DSA_FLAG_FIPS_METHOD 0x0400
92
+
93
+ /*
94
+ * If this flag is set the operations normally disabled in FIPS mode are
95
+ * permitted it is then the applications responsibility to ensure that the
96
+ * usage is compliant.
97
+ */
98
+
99
+ # define DSA_FLAG_NON_FIPS_ALLOW 0x0400
100
+ # define DSA_FLAG_FIPS_CHECKED 0x0800
101
+
102
+ /* Already defined in ossl_typ.h */
103
+ /* typedef struct dsa_st DSA; */
104
+ /* typedef struct dsa_method DSA_METHOD; */
105
+
106
+ # define d2i_DSAparams_fp(fp, x) \
107
+ (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \
108
+ (char *(*)())d2i_DSAparams, (fp), \
109
+ (unsigned char **)(x))
110
+ # define i2d_DSAparams_fp(fp, x) \
111
+ ASN1_i2d_fp(i2d_DSAparams, (fp), (unsigned char *)(x))
112
+ # define d2i_DSAparams_bio(bp, x) \
113
+ ASN1_d2i_bio_of(DSA, DSA_new, d2i_DSAparams, bp, x)
114
+ # define i2d_DSAparams_bio(bp, x) \
115
+ ASN1_i2d_bio_of(DSA, i2d_DSAparams, bp, x)
116
+
117
+ DECLARE_ASN1_DUP_FUNCTION_name_attr(OSSL_DEPRECATEDIN_3_0, DSA, DSAparams)
118
+ OSSL_DEPRECATEDIN_3_0 DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen,
119
+ DSA *dsa);
120
+ OSSL_DEPRECATEDIN_3_0 int DSA_do_verify(const unsigned char *dgst, int dgst_len,
121
+ DSA_SIG *sig, DSA *dsa);
122
+
123
+ OSSL_DEPRECATEDIN_3_0 const DSA_METHOD *DSA_OpenSSL(void);
124
+
125
+ OSSL_DEPRECATEDIN_3_0 void DSA_set_default_method(const DSA_METHOD *);
126
+ OSSL_DEPRECATEDIN_3_0 const DSA_METHOD *DSA_get_default_method(void);
127
+ OSSL_DEPRECATEDIN_3_0 int DSA_set_method(DSA *dsa, const DSA_METHOD *);
128
+ OSSL_DEPRECATEDIN_3_0 const DSA_METHOD *DSA_get_method(DSA *d);
129
+
130
+ OSSL_DEPRECATEDIN_3_0 DSA *DSA_new(void);
131
+ OSSL_DEPRECATEDIN_3_0 DSA *DSA_new_method(ENGINE *engine);
132
+ OSSL_DEPRECATEDIN_3_0 void DSA_free(DSA *r);
133
+ /* "up" the DSA object's reference count */
134
+ OSSL_DEPRECATEDIN_3_0 int DSA_up_ref(DSA *r);
135
+ OSSL_DEPRECATEDIN_3_0 int DSA_size(const DSA *);
136
+ OSSL_DEPRECATEDIN_3_0 int DSA_bits(const DSA *d);
137
+ OSSL_DEPRECATEDIN_3_0 int DSA_security_bits(const DSA *d);
138
+ /* next 4 return -1 on error */
139
+ OSSL_DEPRECATEDIN_3_0 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in,
140
+ BIGNUM **kinvp, BIGNUM **rp);
141
+ OSSL_DEPRECATEDIN_3_0 int DSA_sign(int type, const unsigned char *dgst,
142
+ int dlen, unsigned char *sig,
143
+ unsigned int *siglen, DSA *dsa);
144
+ OSSL_DEPRECATEDIN_3_0 int DSA_verify(int type, const unsigned char *dgst,
145
+ int dgst_len, const unsigned char *sigbuf,
146
+ int siglen, DSA *dsa);
147
+
148
+ # define DSA_get_ex_new_index(l, p, newf, dupf, freef) \
149
+ CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DSA, l, p, newf, dupf, freef)
150
+ OSSL_DEPRECATEDIN_3_0 int DSA_set_ex_data(DSA *d, int idx, void *arg);
151
+ OSSL_DEPRECATEDIN_3_0 void *DSA_get_ex_data(const DSA *d, int idx);
152
+
153
+ DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0,
154
+ DSA, DSAPublicKey)
155
+ DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0,
156
+ DSA, DSAPrivateKey)
157
+ DECLARE_ASN1_ENCODE_FUNCTIONS_only_attr(OSSL_DEPRECATEDIN_3_0,
158
+ DSA, DSAparams)
159
+ # endif
160
+
161
+ # ifndef OPENSSL_NO_DEPRECATED_0_9_8
162
+ /* Deprecated version */
163
+ OSSL_DEPRECATEDIN_0_9_8
164
+ DSA *DSA_generate_parameters(int bits, unsigned char *seed, int seed_len,
165
+ int *counter_ret, unsigned long *h_ret,
166
+ void (*callback) (int, int, void *),
167
+ void *cb_arg);
168
+ # endif
169
+
170
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
171
+ /* New version */
172
+ OSSL_DEPRECATEDIN_3_0 int DSA_generate_parameters_ex(DSA *dsa, int bits,
173
+ const unsigned char *seed,
174
+ int seed_len,
175
+ int *counter_ret,
176
+ unsigned long *h_ret,
177
+ BN_GENCB *cb);
178
+
179
+ OSSL_DEPRECATEDIN_3_0 int DSA_generate_key(DSA *a);
180
+
181
+ OSSL_DEPRECATEDIN_3_0 int DSAparams_print(BIO *bp, const DSA *x);
182
+ OSSL_DEPRECATEDIN_3_0 int DSA_print(BIO *bp, const DSA *x, int off);
183
+ # ifndef OPENSSL_NO_STDIO
184
+ OSSL_DEPRECATEDIN_3_0 int DSAparams_print_fp(FILE *fp, const DSA *x);
185
+ OSSL_DEPRECATEDIN_3_0 int DSA_print_fp(FILE *bp, const DSA *x, int off);
186
+ # endif
187
+
188
+ # define DSS_prime_checks 64
189
+ /*
190
+ * Primality test according to FIPS PUB 186-4, Appendix C.3. Since we only
191
+ * have one value here we set the number of checks to 64 which is the 128 bit
192
+ * security level that is the highest level and valid for creating a 3072 bit
193
+ * DSA key.
194
+ */
195
+ # define DSA_is_prime(n, callback, cb_arg) \
196
+ BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg)
197
+
198
+ # ifndef OPENSSL_NO_DH
199
+ /*
200
+ * Convert DSA structure (key or just parameters) into DH structure (be
201
+ * careful to avoid small subgroup attacks when using this!)
202
+ */
203
+ OSSL_DEPRECATEDIN_3_0 DH *DSA_dup_DH(const DSA *r);
204
+ # endif
205
+
206
+ OSSL_DEPRECATEDIN_3_0 void DSA_get0_pqg(const DSA *d, const BIGNUM **p,
207
+ const BIGNUM **q, const BIGNUM **g);
208
+ OSSL_DEPRECATEDIN_3_0 int DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);
209
+ OSSL_DEPRECATEDIN_3_0 void DSA_get0_key(const DSA *d, const BIGNUM **pub_key,
210
+ const BIGNUM **priv_key);
211
+ OSSL_DEPRECATEDIN_3_0 int DSA_set0_key(DSA *d, BIGNUM *pub_key,
212
+ BIGNUM *priv_key);
213
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_p(const DSA *d);
214
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_q(const DSA *d);
215
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_g(const DSA *d);
216
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_pub_key(const DSA *d);
217
+ OSSL_DEPRECATEDIN_3_0 const BIGNUM *DSA_get0_priv_key(const DSA *d);
218
+ OSSL_DEPRECATEDIN_3_0 void DSA_clear_flags(DSA *d, int flags);
219
+ OSSL_DEPRECATEDIN_3_0 int DSA_test_flags(const DSA *d, int flags);
220
+ OSSL_DEPRECATEDIN_3_0 void DSA_set_flags(DSA *d, int flags);
221
+ OSSL_DEPRECATEDIN_3_0 ENGINE *DSA_get0_engine(DSA *d);
222
+
223
+ OSSL_DEPRECATEDIN_3_0 DSA_METHOD *DSA_meth_new(const char *name, int flags);
224
+ OSSL_DEPRECATEDIN_3_0 void DSA_meth_free(DSA_METHOD *dsam);
225
+ OSSL_DEPRECATEDIN_3_0 DSA_METHOD *DSA_meth_dup(const DSA_METHOD *dsam);
226
+ OSSL_DEPRECATEDIN_3_0 const char *DSA_meth_get0_name(const DSA_METHOD *dsam);
227
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set1_name(DSA_METHOD *dsam,
228
+ const char *name);
229
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_get_flags(const DSA_METHOD *dsam);
230
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_flags(DSA_METHOD *dsam, int flags);
231
+ OSSL_DEPRECATEDIN_3_0 void *DSA_meth_get0_app_data(const DSA_METHOD *dsam);
232
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set0_app_data(DSA_METHOD *dsam,
233
+ void *app_data);
234
+ OSSL_DEPRECATEDIN_3_0 DSA_SIG *(*DSA_meth_get_sign(const DSA_METHOD *dsam))
235
+ (const unsigned char *, int, DSA *);
236
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_sign(DSA_METHOD *dsam,
237
+ DSA_SIG *(*sign) (const unsigned char *, int, DSA *));
238
+ OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_sign_setup(const DSA_METHOD *dsam))
239
+ (DSA *, BN_CTX *, BIGNUM **, BIGNUM **);
240
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_sign_setup(DSA_METHOD *dsam,
241
+ int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **));
242
+ OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_verify(const DSA_METHOD *dsam))
243
+ (const unsigned char *, int, DSA_SIG *, DSA *);
244
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_verify(DSA_METHOD *dsam,
245
+ int (*verify) (const unsigned char *, int, DSA_SIG *, DSA *));
246
+ OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_mod_exp(const DSA_METHOD *dsam))
247
+ (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,
248
+ const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *);
249
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_mod_exp(DSA_METHOD *dsam,
250
+ int (*mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,
251
+ const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *,
252
+ BN_MONT_CTX *));
253
+ OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_bn_mod_exp(const DSA_METHOD *dsam))
254
+ (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,
255
+ BN_CTX *, BN_MONT_CTX *);
256
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_bn_mod_exp(DSA_METHOD *dsam,
257
+ int (*bn_mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,
258
+ const BIGNUM *, BN_CTX *, BN_MONT_CTX *));
259
+ OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_init(const DSA_METHOD *dsam))(DSA *);
260
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_init(DSA_METHOD *dsam,
261
+ int (*init)(DSA *));
262
+ OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_finish(const DSA_METHOD *dsam))(DSA *);
263
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_finish(DSA_METHOD *dsam,
264
+ int (*finish)(DSA *));
265
+ OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_paramgen(const DSA_METHOD *dsam))
266
+ (DSA *, int, const unsigned char *, int, int *, unsigned long *,
267
+ BN_GENCB *);
268
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_paramgen(DSA_METHOD *dsam,
269
+ int (*paramgen) (DSA *, int, const unsigned char *, int, int *,
270
+ unsigned long *, BN_GENCB *));
271
+ OSSL_DEPRECATEDIN_3_0 int (*DSA_meth_get_keygen(const DSA_METHOD *dsam))(DSA *);
272
+ OSSL_DEPRECATEDIN_3_0 int DSA_meth_set_keygen(DSA_METHOD *dsam,
273
+ int (*keygen) (DSA *));
274
+
275
+ # endif
276
+ # endif
277
+ # ifdef __cplusplus
278
+ }
279
+ # endif
280
+ #endif