@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,60 @@
1
+ /*
2
+ * Copyright 2019-2021 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_PROVIDER_H
11
+ # define OPENSSL_PROVIDER_H
12
+ # pragma once
13
+
14
+ # include <openssl/core.h>
15
+
16
+ # ifdef __cplusplus
17
+ extern "C" {
18
+ # endif
19
+
20
+ /* Set the default provider search path */
21
+ int OSSL_PROVIDER_set_default_search_path(OSSL_LIB_CTX *, const char *path);
22
+
23
+ /* Load and unload a provider */
24
+ OSSL_PROVIDER *OSSL_PROVIDER_load(OSSL_LIB_CTX *, const char *name);
25
+ OSSL_PROVIDER *OSSL_PROVIDER_try_load(OSSL_LIB_CTX *, const char *name,
26
+ int retain_fallbacks);
27
+ int OSSL_PROVIDER_unload(OSSL_PROVIDER *prov);
28
+ int OSSL_PROVIDER_available(OSSL_LIB_CTX *, const char *name);
29
+ int OSSL_PROVIDER_do_all(OSSL_LIB_CTX *ctx,
30
+ int (*cb)(OSSL_PROVIDER *provider, void *cbdata),
31
+ void *cbdata);
32
+
33
+ const OSSL_PARAM *OSSL_PROVIDER_gettable_params(const OSSL_PROVIDER *prov);
34
+ int OSSL_PROVIDER_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]);
35
+ int OSSL_PROVIDER_self_test(const OSSL_PROVIDER *prov);
36
+ int OSSL_PROVIDER_get_capabilities(const OSSL_PROVIDER *prov,
37
+ const char *capability,
38
+ OSSL_CALLBACK *cb,
39
+ void *arg);
40
+
41
+ const OSSL_ALGORITHM *OSSL_PROVIDER_query_operation(const OSSL_PROVIDER *prov,
42
+ int operation_id,
43
+ int *no_cache);
44
+ void OSSL_PROVIDER_unquery_operation(const OSSL_PROVIDER *prov,
45
+ int operation_id, const OSSL_ALGORITHM *algs);
46
+ void *OSSL_PROVIDER_get0_provider_ctx(const OSSL_PROVIDER *prov);
47
+ const OSSL_DISPATCH *OSSL_PROVIDER_get0_dispatch(const OSSL_PROVIDER *prov);
48
+
49
+ /* Add a built in providers */
50
+ int OSSL_PROVIDER_add_builtin(OSSL_LIB_CTX *, const char *name,
51
+ OSSL_provider_init_fn *init_fn);
52
+
53
+ /* Information */
54
+ const char *OSSL_PROVIDER_get0_name(const OSSL_PROVIDER *prov);
55
+
56
+ # ifdef __cplusplus
57
+ }
58
+ # endif
59
+
60
+ #endif
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Copyright 2018-2021 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_QUIC_H
11
+ # define OPENSSL_QUIC_H
12
+ # pragma once
13
+ # ifndef OPENSSL_NO_QUIC
14
+
15
+ /* moved from crypto.h.in to avoid breaking FIPS checksums */
16
+ # define OPENSSL_INFO_QUIC 2000
17
+
18
+ # endif /* OPENSSL_NO_QUIC */
19
+ #endif /* OPENSSL_QUIC_H */
@@ -0,0 +1,125 @@
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_RAND_H
11
+ # define OPENSSL_RAND_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_RAND_H
17
+ # endif
18
+
19
+ # include <stdlib.h>
20
+ # include <openssl/types.h>
21
+ # include <openssl/e_os2.h>
22
+ # include <openssl/randerr.h>
23
+ # include <openssl/evp.h>
24
+
25
+ #ifdef __cplusplus
26
+ extern "C" {
27
+ #endif
28
+
29
+ /*
30
+ * Default security strength (in the sense of [NIST SP 800-90Ar1])
31
+ *
32
+ * NIST SP 800-90Ar1 supports the strength of the DRBG being smaller than that
33
+ * of the cipher by collecting less entropy. The current DRBG implementation
34
+ * does not take RAND_DRBG_STRENGTH into account and sets the strength of the
35
+ * DRBG to that of the cipher.
36
+ */
37
+ # define RAND_DRBG_STRENGTH 256
38
+
39
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
40
+ struct rand_meth_st {
41
+ int (*seed) (const void *buf, int num);
42
+ int (*bytes) (unsigned char *buf, int num);
43
+ void (*cleanup) (void);
44
+ int (*add) (const void *buf, int num, double randomness);
45
+ int (*pseudorand) (unsigned char *buf, int num);
46
+ int (*status) (void);
47
+ };
48
+
49
+ OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth);
50
+ OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void);
51
+ # ifndef OPENSSL_NO_ENGINE
52
+ OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_engine(ENGINE *engine);
53
+ # endif
54
+
55
+ OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void);
56
+ # endif /* OPENSSL_NO_DEPRECATED_3_0 */
57
+
58
+ # ifndef OPENSSL_NO_DEPRECATED_1_1_0
59
+ # define RAND_cleanup() while(0) continue
60
+ # endif
61
+ int RAND_bytes(unsigned char *buf, int num);
62
+ int RAND_priv_bytes(unsigned char *buf, int num);
63
+
64
+ /*
65
+ * Equivalent of RAND_priv_bytes() but additionally taking an OSSL_LIB_CTX and
66
+ * a strength.
67
+ */
68
+ int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
69
+ unsigned int strength);
70
+
71
+ /*
72
+ * Equivalent of RAND_bytes() but additionally taking an OSSL_LIB_CTX and
73
+ * a strength.
74
+ */
75
+ int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
76
+ unsigned int strength);
77
+
78
+ # ifndef OPENSSL_NO_DEPRECATED_1_1_0
79
+ OSSL_DEPRECATEDIN_1_1_0 int RAND_pseudo_bytes(unsigned char *buf, int num);
80
+ # endif
81
+
82
+ EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx);
83
+ EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx);
84
+ EVP_RAND_CTX *RAND_get0_private(OSSL_LIB_CTX *ctx);
85
+ int RAND_set0_public(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
86
+ int RAND_set0_private(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
87
+
88
+ int RAND_set_DRBG_type(OSSL_LIB_CTX *ctx, const char *drbg, const char *propq,
89
+ const char *cipher, const char *digest);
90
+ int RAND_set_seed_source_type(OSSL_LIB_CTX *ctx, const char *seed,
91
+ const char *propq);
92
+
93
+ void RAND_seed(const void *buf, int num);
94
+ void RAND_keep_random_devices_open(int keep);
95
+
96
+ # if defined(__ANDROID__) && defined(__NDK_FPABI__)
97
+ __NDK_FPABI__ /* __attribute__((pcs("aapcs"))) on ARM */
98
+ # endif
99
+ void RAND_add(const void *buf, int num, double randomness);
100
+ int RAND_load_file(const char *file, long max_bytes);
101
+ int RAND_write_file(const char *file);
102
+ const char *RAND_file_name(char *file, size_t num);
103
+ int RAND_status(void);
104
+
105
+ # ifndef OPENSSL_NO_EGD
106
+ int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
107
+ int RAND_egd(const char *path);
108
+ int RAND_egd_bytes(const char *path, int bytes);
109
+ # endif
110
+
111
+ int RAND_poll(void);
112
+
113
+ # if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H))
114
+ /* application has to include <windows.h> in order to use these */
115
+ # ifndef OPENSSL_NO_DEPRECATED_1_1_0
116
+ OSSL_DEPRECATEDIN_1_1_0 void RAND_screen(void);
117
+ OSSL_DEPRECATEDIN_1_1_0 int RAND_event(UINT, WPARAM, LPARAM);
118
+ # endif
119
+ # endif
120
+
121
+ #ifdef __cplusplus
122
+ }
123
+ #endif
124
+
125
+ #endif
@@ -0,0 +1,69 @@
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_RANDERR_H
12
+ # define OPENSSL_RANDERR_H
13
+ # pragma once
14
+
15
+ # include <openssl/opensslconf.h>
16
+ # include <openssl/symhacks.h>
17
+ # include <openssl/cryptoerr_legacy.h>
18
+
19
+
20
+
21
+ /*
22
+ * RAND reason codes.
23
+ */
24
+ # define RAND_R_ADDITIONAL_INPUT_TOO_LONG 102
25
+ # define RAND_R_ALREADY_INSTANTIATED 103
26
+ # define RAND_R_ARGUMENT_OUT_OF_RANGE 105
27
+ # define RAND_R_CANNOT_OPEN_FILE 121
28
+ # define RAND_R_DRBG_ALREADY_INITIALIZED 129
29
+ # define RAND_R_DRBG_NOT_INITIALISED 104
30
+ # define RAND_R_ENTROPY_INPUT_TOO_LONG 106
31
+ # define RAND_R_ENTROPY_OUT_OF_RANGE 124
32
+ # define RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED 127
33
+ # define RAND_R_ERROR_INITIALISING_DRBG 107
34
+ # define RAND_R_ERROR_INSTANTIATING_DRBG 108
35
+ # define RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT 109
36
+ # define RAND_R_ERROR_RETRIEVING_ENTROPY 110
37
+ # define RAND_R_ERROR_RETRIEVING_NONCE 111
38
+ # define RAND_R_FAILED_TO_CREATE_LOCK 126
39
+ # define RAND_R_FUNC_NOT_IMPLEMENTED 101
40
+ # define RAND_R_FWRITE_ERROR 123
41
+ # define RAND_R_GENERATE_ERROR 112
42
+ # define RAND_R_INSUFFICIENT_DRBG_STRENGTH 139
43
+ # define RAND_R_INTERNAL_ERROR 113
44
+ # define RAND_R_INVALID_PROPERTY_QUERY 137
45
+ # define RAND_R_IN_ERROR_STATE 114
46
+ # define RAND_R_NOT_A_REGULAR_FILE 122
47
+ # define RAND_R_NOT_INSTANTIATED 115
48
+ # define RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED 128
49
+ # define RAND_R_PARENT_LOCKING_NOT_ENABLED 130
50
+ # define RAND_R_PARENT_STRENGTH_TOO_WEAK 131
51
+ # define RAND_R_PERSONALISATION_STRING_TOO_LONG 116
52
+ # define RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED 133
53
+ # define RAND_R_PRNG_NOT_SEEDED 100
54
+ # define RAND_R_RANDOM_POOL_OVERFLOW 125
55
+ # define RAND_R_RANDOM_POOL_UNDERFLOW 134
56
+ # define RAND_R_REQUEST_TOO_LARGE_FOR_DRBG 117
57
+ # define RAND_R_RESEED_ERROR 118
58
+ # define RAND_R_SELFTEST_FAILURE 119
59
+ # define RAND_R_TOO_LITTLE_NONCE_REQUESTED 135
60
+ # define RAND_R_TOO_MUCH_NONCE_REQUESTED 136
61
+ # define RAND_R_UNABLE_TO_CREATE_DRBG 143
62
+ # define RAND_R_UNABLE_TO_FETCH_DRBG 144
63
+ # define RAND_R_UNABLE_TO_GET_PARENT_RESEED_PROP_COUNTER 141
64
+ # define RAND_R_UNABLE_TO_GET_PARENT_STRENGTH 138
65
+ # define RAND_R_UNABLE_TO_LOCK_PARENT 140
66
+ # define RAND_R_UNSUPPORTED_DRBG_FLAGS 132
67
+ # define RAND_R_UNSUPPORTED_DRBG_TYPE 120
68
+
69
+ #endif
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Copyright 1995-2020 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_RC2_H
11
+ # define OPENSSL_RC2_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_RC2_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+
21
+ # ifndef OPENSSL_NO_RC2
22
+ # ifdef __cplusplus
23
+ extern "C" {
24
+ # endif
25
+
26
+ # define RC2_BLOCK 8
27
+ # define RC2_KEY_LENGTH 16
28
+
29
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
30
+ typedef unsigned int RC2_INT;
31
+
32
+ # define RC2_ENCRYPT 1
33
+ # define RC2_DECRYPT 0
34
+
35
+ typedef struct rc2_key_st {
36
+ RC2_INT data[64];
37
+ } RC2_KEY;
38
+ # endif
39
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
40
+ OSSL_DEPRECATEDIN_3_0 void RC2_set_key(RC2_KEY *key, int len,
41
+ const unsigned char *data, int bits);
42
+ OSSL_DEPRECATEDIN_3_0 void RC2_ecb_encrypt(const unsigned char *in,
43
+ unsigned char *out, RC2_KEY *key,
44
+ int enc);
45
+ OSSL_DEPRECATEDIN_3_0 void RC2_encrypt(unsigned long *data, RC2_KEY *key);
46
+ OSSL_DEPRECATEDIN_3_0 void RC2_decrypt(unsigned long *data, RC2_KEY *key);
47
+ OSSL_DEPRECATEDIN_3_0 void RC2_cbc_encrypt(const unsigned char *in,
48
+ unsigned char *out, long length,
49
+ RC2_KEY *ks, unsigned char *iv,
50
+ int enc);
51
+ OSSL_DEPRECATEDIN_3_0 void RC2_cfb64_encrypt(const unsigned char *in,
52
+ unsigned char *out, long length,
53
+ RC2_KEY *schedule,
54
+ unsigned char *ivec,
55
+ int *num, int enc);
56
+ OSSL_DEPRECATEDIN_3_0 void RC2_ofb64_encrypt(const unsigned char *in,
57
+ unsigned char *out, long length,
58
+ RC2_KEY *schedule,
59
+ unsigned char *ivec,
60
+ int *num);
61
+ # endif
62
+
63
+ # ifdef __cplusplus
64
+ }
65
+ # endif
66
+ # endif
67
+
68
+ #endif
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Copyright 1995-2020 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_RC4_H
11
+ # define OPENSSL_RC4_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_RC4_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+
21
+ # ifndef OPENSSL_NO_RC4
22
+ # include <stddef.h>
23
+ # ifdef __cplusplus
24
+ extern "C" {
25
+ # endif
26
+
27
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
28
+ typedef struct rc4_key_st {
29
+ RC4_INT x, y;
30
+ RC4_INT data[256];
31
+ } RC4_KEY;
32
+ # endif
33
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
34
+ OSSL_DEPRECATEDIN_3_0 const char *RC4_options(void);
35
+ OSSL_DEPRECATEDIN_3_0 void RC4_set_key(RC4_KEY *key, int len,
36
+ const unsigned char *data);
37
+ OSSL_DEPRECATEDIN_3_0 void RC4(RC4_KEY *key, size_t len,
38
+ const unsigned char *indata,
39
+ unsigned char *outdata);
40
+ # endif
41
+
42
+ # ifdef __cplusplus
43
+ }
44
+ # endif
45
+ # endif
46
+
47
+ #endif
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Copyright 1995-2020 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_RC5_H
11
+ # define OPENSSL_RC5_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_RC5_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+
21
+ # ifndef OPENSSL_NO_RC5
22
+ # ifdef __cplusplus
23
+ extern "C" {
24
+ # endif
25
+
26
+ # define RC5_32_BLOCK 8
27
+ # define RC5_32_KEY_LENGTH 16/* This is a default, max is 255 */
28
+
29
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
30
+ # define RC5_ENCRYPT 1
31
+ # define RC5_DECRYPT 0
32
+
33
+ # define RC5_32_INT unsigned int
34
+
35
+ /*
36
+ * This are the only values supported. Tweak the code if you want more The
37
+ * most supported modes will be RC5-32/12/16 RC5-32/16/8
38
+ */
39
+ # define RC5_8_ROUNDS 8
40
+ # define RC5_12_ROUNDS 12
41
+ # define RC5_16_ROUNDS 16
42
+
43
+ typedef struct rc5_key_st {
44
+ /* Number of rounds */
45
+ int rounds;
46
+ RC5_32_INT data[2 * (RC5_16_ROUNDS + 1)];
47
+ } RC5_32_KEY;
48
+ # endif
49
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
50
+ OSSL_DEPRECATEDIN_3_0 int RC5_32_set_key(RC5_32_KEY *key, int len,
51
+ const unsigned char *data,
52
+ int rounds);
53
+ OSSL_DEPRECATEDIN_3_0 void RC5_32_ecb_encrypt(const unsigned char *in,
54
+ unsigned char *out,
55
+ RC5_32_KEY *key,
56
+ int enc);
57
+ OSSL_DEPRECATEDIN_3_0 void RC5_32_encrypt(unsigned long *data, RC5_32_KEY *key);
58
+ OSSL_DEPRECATEDIN_3_0 void RC5_32_decrypt(unsigned long *data, RC5_32_KEY *key);
59
+ OSSL_DEPRECATEDIN_3_0 void RC5_32_cbc_encrypt(const unsigned char *in,
60
+ unsigned char *out, long length,
61
+ RC5_32_KEY *ks, unsigned char *iv,
62
+ int enc);
63
+ OSSL_DEPRECATEDIN_3_0 void RC5_32_cfb64_encrypt(const unsigned char *in,
64
+ unsigned char *out, long length,
65
+ RC5_32_KEY *schedule,
66
+ unsigned char *ivec, int *num,
67
+ int enc);
68
+ OSSL_DEPRECATEDIN_3_0 void RC5_32_ofb64_encrypt(const unsigned char *in,
69
+ unsigned char *out, long length,
70
+ RC5_32_KEY *schedule,
71
+ unsigned char *ivec, int *num);
72
+ # endif
73
+
74
+ # ifdef __cplusplus
75
+ }
76
+ # endif
77
+ # endif
78
+
79
+ #endif
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Copyright 1995-2020 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_RIPEMD_H
11
+ # define OPENSSL_RIPEMD_H
12
+ # pragma once
13
+
14
+ # include <openssl/macros.h>
15
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
16
+ # define HEADER_RIPEMD_H
17
+ # endif
18
+
19
+ # include <openssl/opensslconf.h>
20
+
21
+ # ifndef OPENSSL_NO_RMD160
22
+ # include <openssl/e_os2.h>
23
+ # include <stddef.h>
24
+
25
+ # define RIPEMD160_DIGEST_LENGTH 20
26
+
27
+ # ifdef __cplusplus
28
+ extern "C" {
29
+ # endif
30
+ # if !defined(OPENSSL_NO_DEPRECATED_3_0)
31
+
32
+ # define RIPEMD160_LONG unsigned int
33
+
34
+ # define RIPEMD160_CBLOCK 64
35
+ # define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4)
36
+
37
+ typedef struct RIPEMD160state_st {
38
+ RIPEMD160_LONG A, B, C, D, E;
39
+ RIPEMD160_LONG Nl, Nh;
40
+ RIPEMD160_LONG data[RIPEMD160_LBLOCK];
41
+ unsigned int num;
42
+ } RIPEMD160_CTX;
43
+ # endif
44
+ # ifndef OPENSSL_NO_DEPRECATED_3_0
45
+ OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Init(RIPEMD160_CTX *c);
46
+ OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data,
47
+ size_t len);
48
+ OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
49
+ OSSL_DEPRECATEDIN_3_0 unsigned char *RIPEMD160(const unsigned char *d, size_t n,
50
+ unsigned char *md);
51
+ OSSL_DEPRECATEDIN_3_0 void RIPEMD160_Transform(RIPEMD160_CTX *c,
52
+ const unsigned char *b);
53
+ # endif
54
+
55
+ # ifdef __cplusplus
56
+ }
57
+ # endif
58
+ # endif
59
+ #endif