@annadata/capacitor-mqtt-quic 0.2.2 → 0.2.4

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 (629) hide show
  1. package/dist/esm/web.d.ts +39 -5
  2. package/dist/esm/web.d.ts.map +1 -1
  3. package/dist/esm/web.js +428 -142
  4. package/dist/esm/web.js.map +1 -1
  5. package/dist/esm/webMqttCodec.d.ts +115 -0
  6. package/dist/esm/webMqttCodec.d.ts.map +1 -0
  7. package/dist/esm/webMqttCodec.js +410 -0
  8. package/dist/esm/webMqttCodec.js.map +1 -0
  9. package/dist/plugin.cjs.js +830 -11272
  10. package/dist/plugin.cjs.js.map +1 -1
  11. package/dist/plugin.js +830 -11272
  12. package/dist/plugin.js.map +1 -1
  13. package/ios/libs/libnghttp3.a +0 -0
  14. package/ios/libs/libngtcp2.a +0 -0
  15. package/ios/libs/libngtcp2_crypto_wolfssl.a +0 -0
  16. package/ios/libs/libwolfssl.a +0 -0
  17. package/ios/libs-simulator/libnghttp3.a +0 -0
  18. package/ios/libs-simulator/libngtcp2.a +0 -0
  19. package/ios/libs-simulator/libngtcp2_crypto_wolfssl.a +0 -0
  20. package/ios/libs-simulator/libwolfssl.a +0 -0
  21. package/ios/libs-simulator-x86_64/libnghttp3.a +0 -0
  22. package/ios/libs-simulator-x86_64/libngtcp2.a +0 -0
  23. package/ios/libs-simulator-x86_64/libngtcp2_crypto_wolfssl.a +0 -0
  24. package/ios/libs-simulator-x86_64/libwolfssl.a +0 -0
  25. package/package.json +2 -3
  26. package/android/install/nghttp3-android/arm64-v8a/include/nghttp3/nghttp3.h +0 -3295
  27. package/android/install/nghttp3-android/arm64-v8a/include/nghttp3/version.h +0 -46
  28. package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3Config.cmake +0 -3
  29. package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3ConfigVersion.cmake +0 -65
  30. package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3Targets-release.cmake +0 -29
  31. package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3Targets.cmake +0 -114
  32. package/android/install/nghttp3-android/arm64-v8a/lib/libnghttp3.a +0 -0
  33. package/android/install/nghttp3-android/arm64-v8a/lib/libnghttp3.so +0 -0
  34. package/android/install/nghttp3-android/arm64-v8a/lib/pkgconfig/libnghttp3.pc +0 -34
  35. package/android/install/nghttp3-android/arm64-v8a/share/doc/nghttp3/README.rst +0 -75
  36. package/android/install/nghttp3-android/armeabi-v7a/include/nghttp3/nghttp3.h +0 -3295
  37. package/android/install/nghttp3-android/armeabi-v7a/include/nghttp3/version.h +0 -46
  38. package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3Config.cmake +0 -3
  39. package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3ConfigVersion.cmake +0 -65
  40. package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3Targets-release.cmake +0 -29
  41. package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3Targets.cmake +0 -114
  42. package/android/install/nghttp3-android/armeabi-v7a/lib/libnghttp3.a +0 -0
  43. package/android/install/nghttp3-android/armeabi-v7a/lib/libnghttp3.so +0 -0
  44. package/android/install/nghttp3-android/armeabi-v7a/lib/pkgconfig/libnghttp3.pc +0 -34
  45. package/android/install/nghttp3-android/armeabi-v7a/share/doc/nghttp3/README.rst +0 -75
  46. package/android/install/nghttp3-android/x86_64/include/nghttp3/nghttp3.h +0 -3295
  47. package/android/install/nghttp3-android/x86_64/include/nghttp3/version.h +0 -46
  48. package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3Config.cmake +0 -3
  49. package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3ConfigVersion.cmake +0 -65
  50. package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3Targets-release.cmake +0 -29
  51. package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3Targets.cmake +0 -114
  52. package/android/install/nghttp3-android/x86_64/lib/libnghttp3.a +0 -0
  53. package/android/install/nghttp3-android/x86_64/lib/libnghttp3.so +0 -0
  54. package/android/install/nghttp3-android/x86_64/lib/pkgconfig/libnghttp3.pc +0 -34
  55. package/android/install/nghttp3-android/x86_64/share/doc/nghttp3/README.rst +0 -75
  56. package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/ngtcp2.h +0 -6254
  57. package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/ngtcp2_crypto.h +0 -1037
  58. package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/ngtcp2_crypto_wolfssl.h +0 -106
  59. package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/version.h +0 -51
  60. package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2Config.cmake +0 -6
  61. package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake +0 -65
  62. package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2Targets-release.cmake +0 -29
  63. package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2Targets.cmake +0 -114
  64. package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2.a +0 -0
  65. package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2.so +0 -0
  66. package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2_crypto_wolfssl.a +0 -0
  67. package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2_crypto_wolfssl.so +0 -0
  68. package/android/install/ngtcp2-android/arm64-v8a/lib/pkgconfig/libngtcp2.pc +0 -33
  69. package/android/install/ngtcp2-android/arm64-v8a/lib/pkgconfig/libngtcp2_crypto_wolfssl.pc +0 -34
  70. package/android/install/ngtcp2-android/arm64-v8a/share/doc/ngtcp2/README.rst +0 -385
  71. package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/ngtcp2.h +0 -6254
  72. package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/ngtcp2_crypto.h +0 -1037
  73. package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/ngtcp2_crypto_wolfssl.h +0 -106
  74. package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/version.h +0 -51
  75. package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2Config.cmake +0 -6
  76. package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake +0 -65
  77. package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2Targets-release.cmake +0 -29
  78. package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2Targets.cmake +0 -114
  79. package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2.a +0 -0
  80. package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2.so +0 -0
  81. package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2_crypto_wolfssl.a +0 -0
  82. package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2_crypto_wolfssl.so +0 -0
  83. package/android/install/ngtcp2-android/armeabi-v7a/lib/pkgconfig/libngtcp2.pc +0 -33
  84. package/android/install/ngtcp2-android/armeabi-v7a/lib/pkgconfig/libngtcp2_crypto_wolfssl.pc +0 -34
  85. package/android/install/ngtcp2-android/armeabi-v7a/share/doc/ngtcp2/README.rst +0 -385
  86. package/android/install/ngtcp2-android/x86_64/include/ngtcp2/ngtcp2.h +0 -6254
  87. package/android/install/ngtcp2-android/x86_64/include/ngtcp2/ngtcp2_crypto.h +0 -1037
  88. package/android/install/ngtcp2-android/x86_64/include/ngtcp2/ngtcp2_crypto_wolfssl.h +0 -106
  89. package/android/install/ngtcp2-android/x86_64/include/ngtcp2/version.h +0 -51
  90. package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2Config.cmake +0 -6
  91. package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake +0 -65
  92. package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2Targets-release.cmake +0 -29
  93. package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2Targets.cmake +0 -114
  94. package/android/install/ngtcp2-android/x86_64/lib/libngtcp2.a +0 -0
  95. package/android/install/ngtcp2-android/x86_64/lib/libngtcp2.so +0 -0
  96. package/android/install/ngtcp2-android/x86_64/lib/libngtcp2_crypto_wolfssl.a +0 -0
  97. package/android/install/ngtcp2-android/x86_64/lib/libngtcp2_crypto_wolfssl.so +0 -0
  98. package/android/install/ngtcp2-android/x86_64/lib/pkgconfig/libngtcp2.pc +0 -33
  99. package/android/install/ngtcp2-android/x86_64/lib/pkgconfig/libngtcp2_crypto_wolfssl.pc +0 -34
  100. package/android/install/ngtcp2-android/x86_64/share/doc/ngtcp2/README.rst +0 -385
  101. package/android/install/wolfssl-android/arm64-v8a/bin/wolfssl-config +0 -117
  102. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/callbacks.h +0 -93
  103. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/certs_test.h +0 -7073
  104. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/certs_test_sm.h +0 -2913
  105. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/crl.h +0 -58
  106. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/error-ssl.h +0 -280
  107. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/ocsp.h +0 -191
  108. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/aes.h +0 -117
  109. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/asn1.h +0 -315
  110. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/asn1t.h +0 -30
  111. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/bio.h +0 -237
  112. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/bn.h +0 -332
  113. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/buffer.h +0 -57
  114. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/camellia.h +0 -27
  115. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/cmac.h +0 -66
  116. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/cms.h +0 -26
  117. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/compat_types.h +0 -70
  118. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/conf.h +0 -117
  119. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/crypto.h +0 -171
  120. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/des.h +0 -124
  121. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/dh.h +0 -144
  122. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/dsa.h +0 -164
  123. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ec.h +0 -525
  124. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ec25519.h +0 -46
  125. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ec448.h +0 -46
  126. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ecdh.h +0 -49
  127. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ecdsa.h +0 -87
  128. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ed25519.h +0 -49
  129. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ed448.h +0 -49
  130. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/engine.h +0 -9
  131. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/err.h +0 -84
  132. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/evp.h +0 -1540
  133. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/fips_rand.h +0 -125
  134. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/hmac.h +0 -98
  135. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/kdf.h +0 -45
  136. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/lhash.h +0 -64
  137. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/md4.h +0 -66
  138. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/md5.h +0 -108
  139. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/modes.h +0 -45
  140. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/obj_mac.h +0 -92
  141. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/objects.h +0 -86
  142. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ocsp.h +0 -108
  143. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/opensslconf.h +0 -8
  144. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/opensslv.h +0 -78
  145. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ossl_typ.h +0 -32
  146. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/pem.h +0 -301
  147. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/pkcs12.h +0 -57
  148. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/pkcs7.h +0 -110
  149. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/rand.h +0 -38
  150. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/rc4.h +0 -64
  151. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ripemd.h +0 -58
  152. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/rsa.h +0 -291
  153. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/safestack.h +0 -40
  154. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/sha.h +0 -331
  155. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/sha3.h +0 -158
  156. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/srp.h +0 -33
  157. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ssl.h +0 -1923
  158. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ssl23.h +0 -1
  159. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/stack.h +0 -61
  160. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/tls1.h +0 -64
  161. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/txt_db.h +0 -60
  162. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ui.h +0 -2
  163. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/x509.h +0 -227
  164. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/x509_vfy.h +0 -50
  165. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/x509v3.h +0 -237
  166. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/options.h +0 -273
  167. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/quic.h +0 -310
  168. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/sniffer.h +0 -359
  169. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/sniffer_error.h +0 -151
  170. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/ssl.h +0 -6300
  171. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/test.h +0 -4989
  172. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/version.h +0 -40
  173. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/aes.h +0 -1074
  174. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/arc4.h +0 -69
  175. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ascon.h +0 -109
  176. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/asn.h +0 -2855
  177. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/asn_public.h +0 -1009
  178. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/blake2-impl.h +0 -155
  179. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/blake2-int.h +0 -174
  180. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/blake2.h +0 -108
  181. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/camellia.h +0 -116
  182. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/chacha.h +0 -133
  183. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/chacha20_poly1305.h +0 -157
  184. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/cmac.h +0 -168
  185. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/coding.h +0 -107
  186. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/compress.h +0 -60
  187. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/cpuid.h +0 -153
  188. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/cryptocb.h +0 -770
  189. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/curve25519.h +0 -225
  190. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/curve448.h +0 -151
  191. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/des3.h +0 -167
  192. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/dh.h +0 -210
  193. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/dilithium.h +0 -1051
  194. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/dsa.h +0 -121
  195. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ecc.h +0 -1074
  196. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/eccsi.h +0 -176
  197. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ed25519.h +0 -239
  198. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ed448.h +0 -214
  199. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/error-crypt.h +0 -368
  200. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ext_lms.h +0 -62
  201. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ext_mlkem.h +0 -74
  202. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ext_xmss.h +0 -53
  203. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/falcon.h +0 -180
  204. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/fe_448.h +0 -122
  205. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/fe_operations.h +0 -189
  206. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/fips_test.h +0 -131
  207. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ge_448.h +0 -84
  208. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ge_operations.h +0 -134
  209. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/hash.h +0 -296
  210. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/hmac.h +0 -231
  211. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/hpke.h +0 -145
  212. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/integer.h +0 -449
  213. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/kdf.h +0 -199
  214. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/lms.h +0 -202
  215. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/logging.h +0 -588
  216. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/md2.h +0 -83
  217. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/md4.h +0 -77
  218. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/md5.h +0 -141
  219. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mem_track.h +0 -968
  220. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/memory.h +0 -545
  221. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/misc.h +0 -214
  222. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mlkem.h +0 -377
  223. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mpi_class.h +0 -1021
  224. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mpi_superclass.h +0 -96
  225. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/oid_sum.h +0 -1907
  226. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/pkcs12.h +0 -79
  227. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/pkcs7.h +0 -578
  228. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/poly1305.h +0 -207
  229. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/pwdbased.h +0 -81
  230. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/random.h +0 -300
  231. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/rc2.h +0 -68
  232. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ripemd.h +0 -67
  233. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/rsa.h +0 -494
  234. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sakke.h +0 -228
  235. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/settings.h +0 -4762
  236. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha.h +0 -237
  237. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha256.h +0 -360
  238. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha3.h +0 -274
  239. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha512.h +0 -372
  240. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/signature.h +0 -87
  241. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/siphash.h +0 -101
  242. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sm2.h +0 -27
  243. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sm3.h +0 -27
  244. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sm4.h +0 -27
  245. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sp_int.h +0 -1396
  246. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sphincs.h +0 -167
  247. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/srp.h +0 -313
  248. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/tfm.h +0 -941
  249. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/types.h +0 -2383
  250. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/visibility.h +0 -97
  251. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_encrypt.h +0 -126
  252. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_lms.h +0 -506
  253. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_mlkem.h +0 -370
  254. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_port.h +0 -1764
  255. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_xmss.h +0 -285
  256. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wolfevent.h +0 -120
  257. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wolfmath.h +0 -175
  258. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/xmss.h +0 -203
  259. package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfio.h +0 -1035
  260. package/android/install/wolfssl-android/arm64-v8a/lib/libwolfssl.a +0 -0
  261. package/android/install/wolfssl-android/arm64-v8a/lib/libwolfssl.la +0 -41
  262. package/android/install/wolfssl-android/arm64-v8a/lib/pkgconfig/wolfssl.pc +0 -11
  263. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/QUIC.md +0 -117
  264. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/README.txt +0 -8
  265. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/async_client.c +0 -245
  266. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/async_server.c +0 -331
  267. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/client.c +0 -4885
  268. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/echoclient.c +0 -341
  269. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/echoserver.c +0 -498
  270. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-client-dtls.c +0 -135
  271. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-client.c +0 -78
  272. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-server-dtls.c +0 -134
  273. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-server.c +0 -83
  274. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/server.c +0 -4124
  275. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/tls_bench.c +0 -2357
  276. package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/taoCert.txt +0 -176
  277. package/android/install/wolfssl-android/armeabi-v7a/bin/wolfssl-config +0 -117
  278. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/callbacks.h +0 -93
  279. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/certs_test.h +0 -7073
  280. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/certs_test_sm.h +0 -2913
  281. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/crl.h +0 -58
  282. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/error-ssl.h +0 -280
  283. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/ocsp.h +0 -191
  284. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/aes.h +0 -117
  285. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/asn1.h +0 -315
  286. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/asn1t.h +0 -30
  287. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/bio.h +0 -237
  288. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/bn.h +0 -332
  289. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/buffer.h +0 -57
  290. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/camellia.h +0 -27
  291. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/cmac.h +0 -66
  292. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/cms.h +0 -26
  293. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/compat_types.h +0 -70
  294. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/conf.h +0 -117
  295. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/crypto.h +0 -171
  296. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/des.h +0 -124
  297. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/dh.h +0 -144
  298. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/dsa.h +0 -164
  299. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ec.h +0 -525
  300. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ec25519.h +0 -46
  301. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ec448.h +0 -46
  302. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ecdh.h +0 -49
  303. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ecdsa.h +0 -87
  304. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ed25519.h +0 -49
  305. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ed448.h +0 -49
  306. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/engine.h +0 -9
  307. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/err.h +0 -84
  308. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/evp.h +0 -1540
  309. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/fips_rand.h +0 -125
  310. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/hmac.h +0 -98
  311. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/kdf.h +0 -45
  312. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/lhash.h +0 -64
  313. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/md4.h +0 -66
  314. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/md5.h +0 -108
  315. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/modes.h +0 -45
  316. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/obj_mac.h +0 -92
  317. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/objects.h +0 -86
  318. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ocsp.h +0 -108
  319. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/opensslconf.h +0 -8
  320. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/opensslv.h +0 -78
  321. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ossl_typ.h +0 -32
  322. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/pem.h +0 -301
  323. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/pkcs12.h +0 -57
  324. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/pkcs7.h +0 -110
  325. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/rand.h +0 -38
  326. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/rc4.h +0 -64
  327. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ripemd.h +0 -58
  328. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/rsa.h +0 -291
  329. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/safestack.h +0 -40
  330. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/sha.h +0 -331
  331. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/sha3.h +0 -158
  332. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/srp.h +0 -33
  333. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ssl.h +0 -1923
  334. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ssl23.h +0 -1
  335. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/stack.h +0 -61
  336. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/tls1.h +0 -64
  337. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/txt_db.h +0 -60
  338. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ui.h +0 -2
  339. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/x509.h +0 -227
  340. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/x509_vfy.h +0 -50
  341. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/x509v3.h +0 -237
  342. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/options.h +0 -261
  343. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/quic.h +0 -310
  344. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/sniffer.h +0 -359
  345. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/sniffer_error.h +0 -151
  346. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/ssl.h +0 -6300
  347. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/test.h +0 -4989
  348. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/version.h +0 -40
  349. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/aes.h +0 -1074
  350. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/arc4.h +0 -69
  351. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ascon.h +0 -109
  352. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/asn.h +0 -2855
  353. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/asn_public.h +0 -1009
  354. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/blake2-impl.h +0 -155
  355. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/blake2-int.h +0 -174
  356. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/blake2.h +0 -108
  357. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/camellia.h +0 -116
  358. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/chacha.h +0 -133
  359. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/chacha20_poly1305.h +0 -157
  360. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/cmac.h +0 -168
  361. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/coding.h +0 -107
  362. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/compress.h +0 -60
  363. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/cpuid.h +0 -153
  364. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/cryptocb.h +0 -770
  365. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/curve25519.h +0 -225
  366. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/curve448.h +0 -151
  367. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/des3.h +0 -167
  368. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/dh.h +0 -210
  369. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/dilithium.h +0 -1051
  370. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/dsa.h +0 -121
  371. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ecc.h +0 -1074
  372. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/eccsi.h +0 -176
  373. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ed25519.h +0 -239
  374. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ed448.h +0 -214
  375. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/error-crypt.h +0 -368
  376. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ext_lms.h +0 -62
  377. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ext_mlkem.h +0 -74
  378. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ext_xmss.h +0 -53
  379. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/falcon.h +0 -180
  380. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/fe_448.h +0 -122
  381. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/fe_operations.h +0 -189
  382. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/fips_test.h +0 -131
  383. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ge_448.h +0 -84
  384. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ge_operations.h +0 -134
  385. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/hash.h +0 -296
  386. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/hmac.h +0 -231
  387. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/hpke.h +0 -145
  388. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/integer.h +0 -449
  389. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/kdf.h +0 -199
  390. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/lms.h +0 -202
  391. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/logging.h +0 -588
  392. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/md2.h +0 -83
  393. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/md4.h +0 -77
  394. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/md5.h +0 -141
  395. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mem_track.h +0 -968
  396. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/memory.h +0 -545
  397. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/misc.h +0 -214
  398. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mlkem.h +0 -377
  399. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mpi_class.h +0 -1021
  400. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mpi_superclass.h +0 -96
  401. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/oid_sum.h +0 -1907
  402. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/pkcs12.h +0 -79
  403. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/pkcs7.h +0 -578
  404. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/poly1305.h +0 -207
  405. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/pwdbased.h +0 -81
  406. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/random.h +0 -300
  407. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/rc2.h +0 -68
  408. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ripemd.h +0 -67
  409. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/rsa.h +0 -494
  410. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sakke.h +0 -228
  411. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/settings.h +0 -4762
  412. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha.h +0 -237
  413. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha256.h +0 -360
  414. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha3.h +0 -274
  415. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha512.h +0 -372
  416. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/signature.h +0 -87
  417. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/siphash.h +0 -101
  418. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sm2.h +0 -27
  419. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sm3.h +0 -27
  420. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sm4.h +0 -27
  421. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sp_int.h +0 -1396
  422. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sphincs.h +0 -167
  423. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/srp.h +0 -313
  424. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/tfm.h +0 -941
  425. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/types.h +0 -2383
  426. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/visibility.h +0 -97
  427. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_encrypt.h +0 -126
  428. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_lms.h +0 -506
  429. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_mlkem.h +0 -370
  430. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_port.h +0 -1764
  431. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_xmss.h +0 -285
  432. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wolfevent.h +0 -120
  433. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wolfmath.h +0 -175
  434. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/xmss.h +0 -203
  435. package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfio.h +0 -1035
  436. package/android/install/wolfssl-android/armeabi-v7a/lib/libwolfssl.a +0 -0
  437. package/android/install/wolfssl-android/armeabi-v7a/lib/libwolfssl.la +0 -41
  438. package/android/install/wolfssl-android/armeabi-v7a/lib/pkgconfig/wolfssl.pc +0 -11
  439. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/QUIC.md +0 -117
  440. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/README.txt +0 -8
  441. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/async_client.c +0 -245
  442. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/async_server.c +0 -331
  443. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/client.c +0 -4885
  444. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/echoclient.c +0 -341
  445. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/echoserver.c +0 -498
  446. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-client-dtls.c +0 -135
  447. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-client.c +0 -78
  448. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-server-dtls.c +0 -134
  449. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-server.c +0 -83
  450. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/server.c +0 -4124
  451. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/tls_bench.c +0 -2357
  452. package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/taoCert.txt +0 -176
  453. package/android/install/wolfssl-android/x86_64/bin/wolfssl-config +0 -117
  454. package/android/install/wolfssl-android/x86_64/include/wolfssl/callbacks.h +0 -93
  455. package/android/install/wolfssl-android/x86_64/include/wolfssl/certs_test.h +0 -7073
  456. package/android/install/wolfssl-android/x86_64/include/wolfssl/certs_test_sm.h +0 -2913
  457. package/android/install/wolfssl-android/x86_64/include/wolfssl/crl.h +0 -58
  458. package/android/install/wolfssl-android/x86_64/include/wolfssl/error-ssl.h +0 -280
  459. package/android/install/wolfssl-android/x86_64/include/wolfssl/ocsp.h +0 -191
  460. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/aes.h +0 -117
  461. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/asn1.h +0 -315
  462. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/asn1t.h +0 -30
  463. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/bio.h +0 -237
  464. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/bn.h +0 -332
  465. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/buffer.h +0 -57
  466. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/camellia.h +0 -27
  467. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/cmac.h +0 -66
  468. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/cms.h +0 -26
  469. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/compat_types.h +0 -70
  470. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/conf.h +0 -117
  471. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/crypto.h +0 -171
  472. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/des.h +0 -124
  473. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/dh.h +0 -144
  474. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/dsa.h +0 -164
  475. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ec.h +0 -525
  476. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ec25519.h +0 -46
  477. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ec448.h +0 -46
  478. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ecdh.h +0 -49
  479. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ecdsa.h +0 -87
  480. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ed25519.h +0 -49
  481. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ed448.h +0 -49
  482. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/engine.h +0 -9
  483. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/err.h +0 -84
  484. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/evp.h +0 -1540
  485. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/fips_rand.h +0 -125
  486. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/hmac.h +0 -98
  487. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/kdf.h +0 -45
  488. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/lhash.h +0 -64
  489. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/md4.h +0 -66
  490. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/md5.h +0 -108
  491. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/modes.h +0 -45
  492. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/obj_mac.h +0 -92
  493. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/objects.h +0 -86
  494. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ocsp.h +0 -108
  495. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/opensslconf.h +0 -8
  496. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/opensslv.h +0 -78
  497. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ossl_typ.h +0 -32
  498. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/pem.h +0 -301
  499. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/pkcs12.h +0 -57
  500. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/pkcs7.h +0 -110
  501. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/rand.h +0 -38
  502. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/rc4.h +0 -64
  503. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ripemd.h +0 -58
  504. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/rsa.h +0 -291
  505. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/safestack.h +0 -40
  506. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/sha.h +0 -331
  507. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/sha3.h +0 -158
  508. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/srp.h +0 -33
  509. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ssl.h +0 -1923
  510. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ssl23.h +0 -1
  511. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/stack.h +0 -61
  512. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/tls1.h +0 -64
  513. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/txt_db.h +0 -60
  514. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ui.h +0 -2
  515. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/x509.h +0 -227
  516. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/x509_vfy.h +0 -50
  517. package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/x509v3.h +0 -237
  518. package/android/install/wolfssl-android/x86_64/include/wolfssl/options.h +0 -273
  519. package/android/install/wolfssl-android/x86_64/include/wolfssl/quic.h +0 -310
  520. package/android/install/wolfssl-android/x86_64/include/wolfssl/sniffer.h +0 -359
  521. package/android/install/wolfssl-android/x86_64/include/wolfssl/sniffer_error.h +0 -151
  522. package/android/install/wolfssl-android/x86_64/include/wolfssl/ssl.h +0 -6300
  523. package/android/install/wolfssl-android/x86_64/include/wolfssl/test.h +0 -4989
  524. package/android/install/wolfssl-android/x86_64/include/wolfssl/version.h +0 -40
  525. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/aes.h +0 -1074
  526. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/arc4.h +0 -69
  527. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ascon.h +0 -109
  528. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/asn.h +0 -2855
  529. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/asn_public.h +0 -1009
  530. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/blake2-impl.h +0 -155
  531. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/blake2-int.h +0 -174
  532. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/blake2.h +0 -108
  533. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/camellia.h +0 -116
  534. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/chacha.h +0 -133
  535. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/chacha20_poly1305.h +0 -157
  536. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/cmac.h +0 -168
  537. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/coding.h +0 -107
  538. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/compress.h +0 -60
  539. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/cpuid.h +0 -153
  540. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/cryptocb.h +0 -770
  541. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/curve25519.h +0 -225
  542. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/curve448.h +0 -151
  543. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/des3.h +0 -167
  544. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/dh.h +0 -210
  545. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/dilithium.h +0 -1051
  546. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/dsa.h +0 -121
  547. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ecc.h +0 -1074
  548. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/eccsi.h +0 -176
  549. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ed25519.h +0 -239
  550. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ed448.h +0 -214
  551. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/error-crypt.h +0 -368
  552. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ext_lms.h +0 -62
  553. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ext_mlkem.h +0 -74
  554. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ext_xmss.h +0 -53
  555. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/falcon.h +0 -180
  556. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/fe_448.h +0 -122
  557. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/fe_operations.h +0 -189
  558. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/fips_test.h +0 -131
  559. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ge_448.h +0 -84
  560. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ge_operations.h +0 -134
  561. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/hash.h +0 -296
  562. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/hmac.h +0 -231
  563. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/hpke.h +0 -145
  564. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/integer.h +0 -449
  565. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/kdf.h +0 -199
  566. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/lms.h +0 -202
  567. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/logging.h +0 -588
  568. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/md2.h +0 -83
  569. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/md4.h +0 -77
  570. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/md5.h +0 -141
  571. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mem_track.h +0 -968
  572. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/memory.h +0 -545
  573. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/misc.h +0 -214
  574. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mlkem.h +0 -377
  575. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mpi_class.h +0 -1021
  576. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mpi_superclass.h +0 -96
  577. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/oid_sum.h +0 -1907
  578. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/pkcs12.h +0 -79
  579. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/pkcs7.h +0 -578
  580. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/poly1305.h +0 -207
  581. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/pwdbased.h +0 -81
  582. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/random.h +0 -300
  583. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/rc2.h +0 -68
  584. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ripemd.h +0 -67
  585. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/rsa.h +0 -494
  586. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sakke.h +0 -228
  587. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/settings.h +0 -4762
  588. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha.h +0 -237
  589. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha256.h +0 -360
  590. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha3.h +0 -274
  591. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha512.h +0 -372
  592. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/signature.h +0 -87
  593. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/siphash.h +0 -101
  594. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sm2.h +0 -27
  595. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sm3.h +0 -27
  596. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sm4.h +0 -27
  597. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sp_int.h +0 -1396
  598. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sphincs.h +0 -167
  599. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/srp.h +0 -313
  600. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/tfm.h +0 -941
  601. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/types.h +0 -2383
  602. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/visibility.h +0 -97
  603. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_encrypt.h +0 -126
  604. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_lms.h +0 -506
  605. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_mlkem.h +0 -370
  606. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_port.h +0 -1764
  607. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_xmss.h +0 -285
  608. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wolfevent.h +0 -120
  609. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wolfmath.h +0 -175
  610. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/xmss.h +0 -203
  611. package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfio.h +0 -1035
  612. package/android/install/wolfssl-android/x86_64/lib/libwolfssl.a +0 -0
  613. package/android/install/wolfssl-android/x86_64/lib/libwolfssl.la +0 -41
  614. package/android/install/wolfssl-android/x86_64/lib/pkgconfig/wolfssl.pc +0 -11
  615. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/QUIC.md +0 -117
  616. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/README.txt +0 -8
  617. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/async_client.c +0 -245
  618. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/async_server.c +0 -331
  619. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/client.c +0 -4885
  620. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/echoclient.c +0 -341
  621. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/echoserver.c +0 -498
  622. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-client-dtls.c +0 -135
  623. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-client.c +0 -78
  624. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-server-dtls.c +0 -134
  625. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-server.c +0 -83
  626. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/server.c +0 -4124
  627. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/tls_bench.c +0 -2357
  628. package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/taoCert.txt +0 -176
  629. package/docs/diff-node_modules-vs-standalone-android-src.patch +0 -1031
@@ -1,1051 +0,0 @@
1
- /* dilithium.h
2
- *
3
- * Copyright (C) 2006-2025 wolfSSL Inc.
4
- *
5
- * This file is part of wolfSSL.
6
- *
7
- * wolfSSL is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * wolfSSL is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20
- */
21
-
22
- /*!
23
- \file wolfssl/wolfcrypt/dilithium.h
24
- */
25
-
26
- /* Interfaces for Dilithium NIST Level 1 (Dilithium512) and Dilithium NIST Level 5
27
- * (Dilithium1024). */
28
-
29
- #ifndef WOLF_CRYPT_DILITHIUM_H
30
- #define WOLF_CRYPT_DILITHIUM_H
31
-
32
- #include <wolfssl/wolfcrypt/types.h>
33
-
34
- #ifdef WOLF_CRYPTO_CB
35
- #include <wolfssl/wolfcrypt/cryptocb.h>
36
- #endif
37
-
38
- #if defined(HAVE_DILITHIUM)
39
-
40
- #ifdef HAVE_LIBOQS
41
- #include <oqs/oqs.h>
42
- #include <wolfssl/wolfcrypt/port/liboqs/liboqs.h>
43
- #endif
44
-
45
- #if defined(WOLFSSL_DILITHIUM_NO_MAKE_KEY) && \
46
- defined(WOLFSSL_DILITHIUM_NO_SIGN) && \
47
- !defined(WOLFSSL_DILITHIUM_NO_VERIFY) && \
48
- !defined(WOLFSSL_DILITHIUM_VERIFY_ONLY)
49
- #define WOLFSSL_DILITHIUM_VERIFY_ONLY
50
- #endif
51
- #ifdef WOLFSSL_DILITHIUM_VERIFY_ONLY
52
- #ifndef WOLFSSL_DILITHIUM_NO_MAKE_KEY
53
- #define WOLFSSL_DILITHIUM_NO_MAKE_KEY
54
- #endif
55
- #ifndef WOLFSSL_DILITHIUM_NO_SIGN
56
- #define WOLFSSL_DILITHIUM_NO_SIGN
57
- #endif
58
- #endif
59
-
60
- #if !defined(WOLFSSL_DILITHIUM_NO_MAKE_KEY) || \
61
- !defined(WOLFSSL_DILITHIUM_NO_VERIFY)
62
- #define WOLFSSL_DILITHIUM_PUBLIC_KEY
63
- #endif
64
- #if !defined(WOLFSSL_DILITHIUM_NO_MAKE_KEY) || \
65
- !defined(WOLFSSL_DILITHIUM_NO_SIGN)
66
- #define WOLFSSL_DILITHIUM_PRIVATE_KEY
67
- #endif
68
-
69
- #if defined(WOLFSSL_DILITHIUM_PUBLIC_KEY) && \
70
- defined(WOLFSSL_DILITHIUM_PRIVATE_KEY) && \
71
- !defined(WOLFSSL_DILITHIUM_NO_CHECK_KEY) && \
72
- !defined(WOLFSSL_DILITHIUM_CHECK_KEY)
73
- #define WOLFSSL_DILITHIUM_CHECK_KEY
74
- #endif
75
-
76
- #ifdef WOLFSSL_WC_DILITHIUM
77
- #include <wolfssl/wolfcrypt/sha3.h>
78
- #ifndef WOLFSSL_DILITHIUM_VERIFY_ONLY
79
- #include <wolfssl/wolfcrypt/random.h>
80
- #endif
81
- #endif
82
-
83
- #if defined(WC_DILITHIUM_CACHE_PRIV_VECTORS) && \
84
- !defined(WC_DILITHIUM_CACHE_MATRIX_A)
85
- #define WC_DILITHIUM_CACHE_MATRIX_A
86
- #endif
87
- #if defined(WC_DILITHIUM_CACHE_PUB_VECTORS) && \
88
- !defined(WC_DILITHIUM_CACHE_MATRIX_A)
89
- #define WC_DILITHIUM_CACHE_MATRIX_A
90
- #endif
91
-
92
- #ifdef __cplusplus
93
- extern "C" {
94
- #endif
95
-
96
- /* Macros Definitions */
97
-
98
- #ifdef WOLFSSL_WC_DILITHIUM
99
-
100
- #ifndef WOLFSSL_DILITHIUM_ALIGNMENT
101
- #if defined(__arch64__)
102
- #define WOLFSSL_DILITHIUM_ALIGNMENT 8
103
- #elif defined(__arm__)
104
- #define WOLFSSL_DILITHIUM_ALIGNMENT 4
105
- #elif !defined(WOLFSSL_AESNI) && defined(WOLFSSL_GENERAL_ALIGNMENT)
106
- #define WOLFSSL_DILITHIUM_ALIGNMENT WOLFSSL_GENERAL_ALIGNMENT
107
- #else
108
- #define WOLFSSL_DILITHIUM_ALIGNMENT 8
109
- #endif
110
- #endif /* WOLFSSL_DILITHIUM_ALIGNMENT */
111
-
112
- #define DILITHIUM_LEVEL2_KEY_SIZE 2560
113
- #define DILITHIUM_LEVEL2_SIG_SIZE 2420
114
- #define DILITHIUM_LEVEL2_PUB_KEY_SIZE 1312
115
- #define DILITHIUM_LEVEL2_PRV_KEY_SIZE \
116
- (DILITHIUM_LEVEL2_PUB_KEY_SIZE + DILITHIUM_LEVEL2_KEY_SIZE)
117
- /* Buffer sizes large enough to store exported DER encoded keys */
118
- #define DILITHIUM_LEVEL2_PUB_KEY_DER_SIZE 1334
119
- #define DILITHIUM_LEVEL2_PRV_KEY_DER_SIZE 2588
120
- #define DILITHIUM_LEVEL2_BOTH_KEY_DER_SIZE 3904
121
- /* PEM size with the header "-----BEGIN PRIVATE KEY-----" and
122
- * the footer "-----END PRIVATE KEY-----" */
123
- #define DILITHIUM_LEVEL2_BOTH_KEY_PEM_SIZE 5344
124
-
125
- #define DILITHIUM_LEVEL3_KEY_SIZE 4032
126
- #define DILITHIUM_LEVEL3_SIG_SIZE 3309
127
- #define DILITHIUM_LEVEL3_PUB_KEY_SIZE 1952
128
- #define DILITHIUM_LEVEL3_PRV_KEY_SIZE \
129
- (DILITHIUM_LEVEL3_PUB_KEY_SIZE + DILITHIUM_LEVEL3_KEY_SIZE)
130
- /* Buffer sizes large enough to store exported DER encoded keys */
131
- #define DILITHIUM_LEVEL3_PUB_KEY_DER_SIZE 1974
132
- #define DILITHIUM_LEVEL3_PRV_KEY_DER_SIZE 4060
133
- #define DILITHIUM_LEVEL3_BOTH_KEY_DER_SIZE 6016
134
- /* PEM size with the header "-----BEGIN PRIVATE KEY-----" and
135
- * the footer "-----END PRIVATE KEY-----" */
136
- #define DILITHIUM_LEVEL3_BOTH_KEY_PEM_SIZE 8204
137
-
138
- #define DILITHIUM_LEVEL5_KEY_SIZE 4896
139
- #define DILITHIUM_LEVEL5_SIG_SIZE 4627
140
- #define DILITHIUM_LEVEL5_PUB_KEY_SIZE 2592
141
- #define DILITHIUM_LEVEL5_PRV_KEY_SIZE \
142
- (DILITHIUM_LEVEL5_PUB_KEY_SIZE + DILITHIUM_LEVEL5_KEY_SIZE)
143
- /* Buffer sizes large enough to store exported DER encoded keys */
144
- #define DILITHIUM_LEVEL5_PUB_KEY_DER_SIZE 2614
145
- #define DILITHIUM_LEVEL5_PRV_KEY_DER_SIZE 4924
146
- #define DILITHIUM_LEVEL5_BOTH_KEY_DER_SIZE 7520
147
- /* PEM size with the header "-----BEGIN ML_DSA_LEVEL5 PRIVATE KEY-----" and
148
- * the footer "-----END ML_DSA_LEVEL5 PRIVATE KEY-----" */
149
- #define DILITHIUM_LEVEL5_BOTH_KEY_PEM_SIZE 10267
150
-
151
- #define ML_DSA_LEVEL2_KEY_SIZE 2560
152
- #define ML_DSA_LEVEL2_SIG_SIZE 2420
153
- #define ML_DSA_LEVEL2_PUB_KEY_SIZE 1312
154
- #define ML_DSA_LEVEL2_PRV_KEY_SIZE \
155
- (ML_DSA_LEVEL2_PUB_KEY_SIZE + ML_DSA_LEVEL2_KEY_SIZE)
156
- /* Buffer sizes large enough to store exported DER encoded keys */
157
- #define ML_DSA_LEVEL2_PUB_KEY_DER_SIZE DILITHIUM_LEVEL2_PUB_KEY_DER_SIZE
158
- #define ML_DSA_LEVEL2_PRV_KEY_DER_SIZE DILITHIUM_LEVEL2_PRV_KEY_DER_SIZE
159
- #define ML_DSA_LEVEL2_BOTH_KEY_DER_SIZE DILITHIUM_LEVEL2_BOTH_KEY_DER_SIZE
160
- /* PEM size with the header "-----BEGIN PRIVATE KEY-----" and
161
- * the footer "-----END PRIVATE KEY-----" */
162
- #define ML_DSA_LEVEL2_BOTH_KEY_PEM_SIZE DILITHIUM_LEVEL2_BOTH_KEY_PEM_SIZE
163
-
164
- #define ML_DSA_LEVEL3_KEY_SIZE 4032
165
- #define ML_DSA_LEVEL3_SIG_SIZE 3309
166
- #define ML_DSA_LEVEL3_PUB_KEY_SIZE 1952
167
- #define ML_DSA_LEVEL3_PRV_KEY_SIZE \
168
- (ML_DSA_LEVEL3_PUB_KEY_SIZE + ML_DSA_LEVEL3_KEY_SIZE)
169
- /* Buffer sizes large enough to store exported DER encoded keys */
170
- #define ML_DSA_LEVEL3_PUB_KEY_DER_SIZE DILITHIUM_LEVEL3_PUB_KEY_DER_SIZE
171
- #define ML_DSA_LEVEL3_PRV_KEY_DER_SIZE DILITHIUM_LEVEL3_PRV_KEY_DER_SIZE
172
- #define ML_DSA_LEVEL3_BOTH_KEY_DER_SIZE DILITHIUM_LEVEL3_BOTH_KEY_DER_SIZE
173
- /* PEM size with the header "-----BEGIN PRIVATE KEY-----" and
174
- * the footer "-----END PRIVATE KEY-----" */
175
- #define ML_DSA_LEVEL3_BOTH_KEY_PEM_SIZE DILITHIUM_LEVEL3_BOTH_KEY_PEM_SIZE
176
-
177
- #define ML_DSA_LEVEL5_KEY_SIZE 4896
178
- #define ML_DSA_LEVEL5_SIG_SIZE 4627
179
- #define ML_DSA_LEVEL5_PUB_KEY_SIZE 2592
180
- #define ML_DSA_LEVEL5_PRV_KEY_SIZE \
181
- (ML_DSA_LEVEL5_PUB_KEY_SIZE + ML_DSA_LEVEL5_KEY_SIZE)
182
- /* Buffer sizes large enough to store exported DER encoded keys */
183
- #define ML_DSA_LEVEL5_PUB_KEY_DER_SIZE DILITHIUM_LEVEL5_PUB_KEY_DER_SIZE
184
- #define ML_DSA_LEVEL5_PRV_KEY_DER_SIZE DILITHIUM_LEVEL5_PRV_KEY_DER_SIZE
185
- #define ML_DSA_LEVEL5_BOTH_KEY_DER_SIZE DILITHIUM_LEVEL5_BOTH_KEY_DER_SIZE
186
- /* PEM size with the header "-----BEGIN ML_DSA_LEVEL5 PRIVATE KEY-----" and
187
- * the footer "-----END ML_DSA_LEVEL5 PRIVATE KEY-----" */
188
- #define ML_DSA_LEVEL5_BOTH_KEY_PEM_SIZE DILITHIUM_LEVEL5_BOTH_KEY_PEM_SIZE
189
-
190
-
191
-
192
- /* Modulus. */
193
- #define DILITHIUM_Q 0x7fe001
194
- /* Number of bits in modulus. */
195
- #define DILITHIUM_Q_BITS 23
196
- /* Number of elements in polynomial. */
197
- #define DILITHIUM_N 256
198
- #define MLDSA_N 256
199
-
200
- /* Number of dropped bits. */
201
- #define DILITHIUM_D 13
202
- /* Maximum value of dropped bits. */
203
- #define DILITHIUM_D_MAX (1 << DILITHIUM_D)
204
- /* Half maximum value. */
205
- #define DILITHIUM_D_MAX_HALF (1 << (DILITHIUM_D - 1))
206
- /* Number of undropped bits. */
207
- #define DILITHIUM_U (DILITHIUM_Q_BITS - DILITHIUM_D)
208
-
209
- /* Bits in coefficient range of y, GAMMA1, of 2^17 is 17. */
210
- #define DILITHIUM_GAMMA1_BITS_17 17
211
- /* Coefficient range of y, GAMMA1, of 2^17. */
212
- #define DILITHIUM_GAMMA1_17 (1 << 17)
213
- /* # encoding bits of y is GAMMA1 + 1. */
214
- #define DILITHIUM_GAMMA1_17_ENC_BITS 18
215
- /* Coefficient range of y, GAMMA1, of 2^17. */
216
- /* Bits in coefficient range of y, GAMMA1, of 2^19 is 19. */
217
- #define DILITHIUM_GAMMA1_BITS_19 19
218
- /* Coefficient range of y, GAMMA1, of 2^19. */
219
- #define DILITHIUM_GAMMA1_19 (1 << 19)
220
- /* # encoding bits of y is GAMMA1 + 1. */
221
- #define DILITHIUM_GAMMA1_19_ENC_BITS 20
222
-
223
- /* Low-order rounding range, GAMMA2, is Q divided by 88. */
224
- #define DILITHIUM_Q_LOW_88 ((DILITHIUM_Q - 1) / 88)
225
- /* Absolute low-order rounding range, GAMMA2, is Q divided by 88. */
226
- #define DILITHIUM_Q_LOW_88_2 (((DILITHIUM_Q - 1) / 88) * 2)
227
- /* # encoding bits of w1 when range is 88. */
228
- #define DILITHIUM_Q_HI_88_ENC_BITS 6
229
- /* Low-order rounding range, GAMMA2, is Q divided by 32. */
230
- #define DILITHIUM_Q_LOW_32 ((DILITHIUM_Q - 1) / 32)
231
- /* Absolute low-order rounding range, GAMMA2, is Q divided by 32. */
232
- #define DILITHIUM_Q_LOW_32_2 (((DILITHIUM_Q - 1) / 32) * 2)
233
- /* # encoding bits of w1 when range is 32. */
234
- #define DILITHIUM_Q_HI_32_ENC_BITS 4
235
-
236
- /* Private key range, eta, of 2. */
237
- #define DILITHIUM_ETA_2 2
238
- /* Bits needed to encode values in range -2..2 as a positive number. */
239
- #define DILITHIUM_ETA_2_BITS 3
240
- /* Extract count of valid values. */
241
- #define DILITHIUM_ETA_2_MOD 15
242
- /* Private key range, eta, of 4. */
243
- #define DILITHIUM_ETA_4 4
244
- /* Bits needed to encode values in range -4..4 as a positive number. */
245
- #define DILITHIUM_ETA_4_BITS 4
246
- /* Extract count of valid values. */
247
- #define DILITHIUM_ETA_4_MOD 9
248
-
249
- /* Number of bytes in a polynomial in memory. */
250
- #define DILITHIUM_POLY_SIZE (DILITHIUM_N * sizeof(sword32))
251
-
252
- #ifndef WOLFSSL_NO_ML_DSA_44
253
-
254
- /* Fist dimension of A, k, for ML-DSA-44. */
255
- #define PARAMS_ML_DSA_44_K 4
256
- /* Second dimension of A, l, for ML-DSA-44. */
257
- #define PARAMS_ML_DSA_44_L 4
258
- /* Private key range, ETA, for ML-DSA-44. */
259
- #define PARAMS_ML_DSA_44_ETA DILITHIUM_ETA_2
260
- /* Number of bits in private key for ML-DSA-44. */
261
- #define PARAMS_ML_DSA_44_ETA_BITS DILITHIUM_ETA_2_BITS
262
- /* Collision strength of c-tilde, LAMBDA, in bits for ML-DSA-44. */
263
- #define PARAMS_ML_DSA_44_LAMBDA 128
264
- /* # +/-1's in polynomial c, TAU, for ML-DSA-44. */
265
- #define PARAMS_ML_DSA_44_TAU 39
266
- /* BETA = TAU * ETA for ML-DSA-44. */
267
- #define PARAMS_ML_DSA_44_BETA \
268
- (PARAMS_ML_DSA_44_TAU * PARAMS_ML_DSA_44_ETA)
269
- /* Max # 1's in the hint h, OMEGA, for ML-DSA-44. */
270
- #define PARAMS_ML_DSA_44_OMEGA 80
271
- /* Bits in coefficient range of y, GAMMA1, for ML-DSA-44. */
272
- #define PARAMS_ML_DSA_44_GAMMA1_BITS DILITHIUM_GAMMA1_BITS_17
273
- /* Ccoefficient range of y, GAMMA1, for ML-DSA-44. */
274
- #define PARAMS_ML_DSA_44_GAMMA1 (1 << PARAMS_ML_DSA_44_GAMMA1_BITS)
275
- /* Low-order rounding range, GAMMA2, for ML-DSA-44. */
276
- #define PARAMS_ML_DSA_44_GAMMA2 DILITHIUM_Q_LOW_88
277
- /* Bits in high-order rounding range, GAMMA2, for ML-DSA-44. */
278
- #define PARAMS_ML_DSA_44_GAMMA2_HI_BITS 6
279
- /* Encoding size of w1 in bytes for ML-DSA-44.
280
- * K * N / 8 * 6 - 6 bits as max value is 43 in high bits. */
281
- #define PARAMS_ML_DSA_44_W1_ENC_SZ \
282
- (PARAMS_ML_DSA_44_K * DILITHIUM_N / 8 * PARAMS_ML_DSA_44_GAMMA2_HI_BITS)
283
- /* Size of memory used for matrix a in bytes for ML-DSA-44. */
284
- #define PARAMS_ML_DSA_44_A_SIZE \
285
- (PARAMS_ML_DSA_44_K * PARAMS_ML_DSA_44_L * DILITHIUM_POLY_SIZE)
286
- /* Size of memory used for vector s1 in bytes for ML-DSA-44. */
287
- #define PARAMS_ML_DSA_44_S1_SIZE \
288
- (PARAMS_ML_DSA_44_L * DILITHIUM_POLY_SIZE)
289
- /* Encoding size of s1 in bytes for ML-DSA-44. */
290
- #define PARAMS_ML_DSA_44_S1_ENC_SIZE \
291
- (PARAMS_ML_DSA_44_S1_SIZE / sizeof(sword32) * PARAMS_ML_DSA_44_ETA_BITS / 8)
292
- /* Size of memory used for vector s2 in bytes for ML-DSA-44. */
293
- #define PARAMS_ML_DSA_44_S2_SIZE \
294
- (PARAMS_ML_DSA_44_K * DILITHIUM_POLY_SIZE)
295
- /* Encoding size of s2 in bytes for ML-DSA-44. */
296
- #define PARAMS_ML_DSA_44_S2_ENC_SIZE \
297
- (PARAMS_ML_DSA_44_S2_SIZE / sizeof(sword32) * PARAMS_ML_DSA_44_ETA_BITS / 8)
298
- /* Encoding size of z in bytes for ML-DSA-44. */
299
- #define PARAMS_ML_DSA_44_Z_ENC_SIZE \
300
- (PARAMS_ML_DSA_44_S1_SIZE / sizeof(sword32) / 8 * \
301
- (PARAMS_ML_DSA_44_GAMMA1_BITS + 1))
302
- /* Encoding size of public key in bytes for ML-DSA-44. */
303
- #define PARAMS_ML_DSA_44_PK_SIZE \
304
- (DILITHIUM_PUB_SEED_SZ + PARAMS_ML_DSA_44_K * DILITHIUM_N * DILITHIUM_U / 8)
305
- /* Encoding size of signature in bytes for ML-DSA-44. */
306
- #define PARAMS_ML_DSA_44_SIG_SIZE \
307
- ((PARAMS_ML_DSA_44_LAMBDA / 4) + \
308
- PARAMS_ML_DSA_44_L * DILITHIUM_N/8 * (PARAMS_ML_DSA_44_GAMMA1_BITS + 1) + \
309
- PARAMS_ML_DSA_44_OMEGA + PARAMS_ML_DSA_44_K)
310
-
311
- #endif /* WOLFSSL_NO_ML_DSA_44 */
312
-
313
- #ifndef WOLFSSL_NO_ML_DSA_65
314
-
315
- /* Fist dimension of A, k, for ML-DSA-65. */
316
- #define PARAMS_ML_DSA_65_K 6
317
- /* Second dimension of A, l, for ML-DSA-65. */
318
- #define PARAMS_ML_DSA_65_L 5
319
- /* Private key range, ETA, for ML-DSA-65. */
320
- #define PARAMS_ML_DSA_65_ETA DILITHIUM_ETA_4
321
- /* Number of bits in private key for ML-DSA-65. */
322
- #define PARAMS_ML_DSA_65_ETA_BITS DILITHIUM_ETA_4_BITS
323
- /* Collision strength of c-tilde, LAMBDA, in bits for ML-DSA-65. */
324
- #define PARAMS_ML_DSA_65_LAMBDA 192
325
- /* # +/-1's in polynomial c, TAU, for ML-DSA-65. */
326
- #define PARAMS_ML_DSA_65_TAU 49
327
- /* BETA = TAU * ETA for ML-DSA-65. */
328
- #define PARAMS_ML_DSA_65_BETA \
329
- (PARAMS_ML_DSA_65_TAU * PARAMS_ML_DSA_65_ETA)
330
- /* Max # 1's in the hint h, OMEGA, for ML-DSA-65. */
331
- #define PARAMS_ML_DSA_65_OMEGA 55
332
- /* Bits in coefficient range of y, GAMMA1, for ML-DSA-65. */
333
- #define PARAMS_ML_DSA_65_GAMMA1_BITS DILITHIUM_GAMMA1_BITS_19
334
- /* Ccoefficient range of y, GAMMA1, for ML-DSA-65. */
335
- #define PARAMS_ML_DSA_65_GAMMA1 (1 << PARAMS_ML_DSA_65_GAMMA1_BITS)
336
- /* Low-order rounding range, GAMMA2, for ML-DSA-65. */
337
- #define PARAMS_ML_DSA_65_GAMMA2 DILITHIUM_Q_LOW_32
338
- /* Bits in high-order rounding range, GAMMA2, for ML-DSA-65. */
339
- #define PARAMS_ML_DSA_65_GAMMA2_HI_BITS 4
340
- /* Encoding size of w1 in bytes for ML-DSA-65.
341
- * K * N / 8 * 4 - 4 bits as max value is 15 in high bits. */
342
- #define PARAMS_ML_DSA_65_W1_ENC_SZ \
343
- (PARAMS_ML_DSA_65_K * DILITHIUM_N / 8 * PARAMS_ML_DSA_65_GAMMA2_HI_BITS)
344
- /* Size of memory used for matrix a in bytes for ML-DSA-65. */
345
- #define PARAMS_ML_DSA_65_A_SIZE \
346
- (PARAMS_ML_DSA_65_K * PARAMS_ML_DSA_65_L * DILITHIUM_POLY_SIZE)
347
- /* Size of memory used for vector s1 in bytes for ML-DSA-65. */
348
- #define PARAMS_ML_DSA_65_S1_SIZE \
349
- (PARAMS_ML_DSA_65_L * DILITHIUM_POLY_SIZE)
350
- /* Encoding size of s1 in bytes for ML-DSA-65. */
351
- #define PARAMS_ML_DSA_65_S1_ENC_SIZE \
352
- (PARAMS_ML_DSA_65_S1_SIZE / sizeof(sword32) * PARAMS_ML_DSA_65_ETA_BITS / 8)
353
- /* Size of memory used for vector s2 in bytes for ML-DSA-65. */
354
- #define PARAMS_ML_DSA_65_S2_SIZE \
355
- (PARAMS_ML_DSA_65_K * DILITHIUM_POLY_SIZE)
356
- /* Encoding size of s2 in bytes for ML-DSA-65. */
357
- #define PARAMS_ML_DSA_65_S2_ENC_SIZE \
358
- (PARAMS_ML_DSA_65_S2_SIZE / sizeof(sword32) * PARAMS_ML_DSA_65_ETA_BITS / 8)
359
- /* Encoding size of z in bytes for ML-DSA-65. */
360
- #define PARAMS_ML_DSA_65_Z_ENC_SIZE \
361
- (PARAMS_ML_DSA_65_S1_SIZE / sizeof(sword32) / 8 * \
362
- (PARAMS_ML_DSA_65_GAMMA1_BITS + 1))
363
- /* Encoding size of public key in bytes for ML-DSA-65. */
364
- #define PARAMS_ML_DSA_65_PK_SIZE \
365
- (DILITHIUM_PUB_SEED_SZ + PARAMS_ML_DSA_65_K * DILITHIUM_N * DILITHIUM_U / 8)
366
- /* Encoding size of signature in bytes for ML-DSA-65. */
367
- #define PARAMS_ML_DSA_65_SIG_SIZE \
368
- ((PARAMS_ML_DSA_65_LAMBDA / 4) + \
369
- PARAMS_ML_DSA_65_L * DILITHIUM_N/8 * (PARAMS_ML_DSA_65_GAMMA1_BITS + 1) + \
370
- PARAMS_ML_DSA_65_OMEGA + PARAMS_ML_DSA_65_K)
371
-
372
- #endif /* WOLFSSL_NO_ML_DSA_65 */
373
-
374
- #ifndef WOLFSSL_NO_ML_DSA_87
375
-
376
- /* Fist dimension of A, k, for ML-DSA-87. */
377
- #define PARAMS_ML_DSA_87_K 8
378
- /* Second dimension of A, l, for ML-DSA-87. */
379
- #define PARAMS_ML_DSA_87_L 7
380
- /* Private key range, ETA, for ML-DSA-87. */
381
- #define PARAMS_ML_DSA_87_ETA DILITHIUM_ETA_2
382
- /* Number of bits in private key for ML-DSA-87. */
383
- #define PARAMS_ML_DSA_87_ETA_BITS DILITHIUM_ETA_2_BITS
384
- /* Collision strength of c-tilde, LAMBDA, in bits for ML-DSA-87. */
385
- #define PARAMS_ML_DSA_87_LAMBDA 256
386
- /* # +/-1's in polynomial c, TAU, for ML-DSA-87. */
387
- #define PARAMS_ML_DSA_87_TAU 60
388
- /* BETA = TAU * ETA for ML-DSA-87. */
389
- #define PARAMS_ML_DSA_87_BETA \
390
- (PARAMS_ML_DSA_87_TAU * PARAMS_ML_DSA_87_ETA)
391
- /* Max # 1's in the hint h, OMEGA, for ML-DSA-87. */
392
- #define PARAMS_ML_DSA_87_OMEGA 75
393
- /* Bits in coefficient range of y, GAMMA1, for ML-DSA-87. */
394
- #define PARAMS_ML_DSA_87_GAMMA1_BITS DILITHIUM_GAMMA1_BITS_19
395
- /* Ccoefficient range of y, GAMMA1, for ML-DSA-87. */
396
- #define PARAMS_ML_DSA_87_GAMMA1 (1 << PARAMS_ML_DSA_87_GAMMA1_BITS)
397
- /* Low-order rounding range, GAMMA2, for ML-DSA-87. */
398
- #define PARAMS_ML_DSA_87_GAMMA2 DILITHIUM_Q_LOW_32
399
- /* Bits in high-order rounding range, GAMMA2, for ML-DSA-87. */
400
- #define PARAMS_ML_DSA_87_GAMMA2_HI_BITS 4
401
- /* Encoding size of w1 in bytes for ML-DSA-87.
402
- * K * N / 8 * 4 - 4 bits as max value is 15 in high bits. */
403
- #define PARAMS_ML_DSA_87_W1_ENC_SZ \
404
- (PARAMS_ML_DSA_87_K * DILITHIUM_N / 8 * PARAMS_ML_DSA_87_GAMMA2_HI_BITS)
405
- /* Size of memory used for matrix A in bytes for ML-DSA-87. */
406
- #define PARAMS_ML_DSA_87_A_SIZE \
407
- (PARAMS_ML_DSA_87_K * PARAMS_ML_DSA_87_L * DILITHIUM_POLY_SIZE)
408
- #define PARAMS_ML_DSA_87_S_SIZE 4
409
- /* Size of memory used for vector s1 in bytes for ML-DSA-87. */
410
- #define PARAMS_ML_DSA_87_S1_SIZE \
411
- (PARAMS_ML_DSA_87_L * DILITHIUM_POLY_SIZE)
412
- /* Encoding size of s1 in bytes for ML-DSA-87. */
413
- #define PARAMS_ML_DSA_87_S1_ENC_SIZE \
414
- (PARAMS_ML_DSA_87_S1_SIZE / sizeof(sword32) * PARAMS_ML_DSA_87_ETA_BITS / 8)
415
- /* Size of memory used for vector s2 in bytes for ML-DSA-87. */
416
- #define PARAMS_ML_DSA_87_S2_SIZE \
417
- (PARAMS_ML_DSA_87_K * DILITHIUM_POLY_SIZE)
418
- /* Encoding size of s2 in bytes for ML-DSA-87. */
419
- #define PARAMS_ML_DSA_87_S2_ENC_SIZE \
420
- (PARAMS_ML_DSA_87_S2_SIZE / sizeof(sword32) * PARAMS_ML_DSA_87_ETA_BITS / 8)
421
- /* Encoding size of z in bytes for ML-DSA-87. */
422
- #define PARAMS_ML_DSA_87_Z_ENC_SIZE \
423
- (PARAMS_ML_DSA_87_S1_SIZE / sizeof(sword32) / 8 * \
424
- (PARAMS_ML_DSA_87_GAMMA1_BITS + 1))
425
- /* Encoding size of public key in bytes for ML-DSA-87. */
426
- #define PARAMS_ML_DSA_87_PK_SIZE \
427
- (DILITHIUM_PUB_SEED_SZ + PARAMS_ML_DSA_87_K * DILITHIUM_N * DILITHIUM_U / 8)
428
- /* Encoding size of signature in bytes for ML-DSA-87. */
429
- #define PARAMS_ML_DSA_87_SIG_SIZE \
430
- ((PARAMS_ML_DSA_87_LAMBDA / 4) + \
431
- PARAMS_ML_DSA_87_L * DILITHIUM_N/8 * (PARAMS_ML_DSA_87_GAMMA1_BITS + 1) + \
432
- PARAMS_ML_DSA_87_OMEGA + PARAMS_ML_DSA_87_K)
433
-
434
- #endif /* WOLFSSL_NO_ML_DSA_87 */
435
-
436
-
437
- #ifndef WOLFSSL_NO_ML_DSA_87
438
-
439
- #define DILITHIUM_MAX_W1_ENC_SZ PARAMS_ML_DSA_87_W1_ENC_SZ
440
- /* Maximum collision strength of c-tilde in bytes. */
441
- #define DILITHIUM_MAX_LAMBDA PARAMS_ML_DSA_87_LAMBDA
442
-
443
- /* Maximum count of elements of a vector with dimension K. */
444
- #define DILITHIUM_MAX_K_VECTOR_COUNT \
445
- (PARAMS_ML_DSA_87_K * DILITHIUM_N)
446
- /* Maximum count of elements of a vector with dimension L. */
447
- #define DILITHIUM_MAX_L_VECTOR_COUNT \
448
- (PARAMS_ML_DSA_87_L * DILITHIUM_N)
449
- /* Maximum count of elements of a matrix with dimension KxL. */
450
- #define DILITHIUM_MAX_MATRIX_COUNT \
451
- (PARAMS_ML_DSA_87_K * PARAMS_ML_DSA_87_L * DILITHIUM_N)
452
-
453
- #elif !defined(WOLFSSL_NO_ML_DSA_65)
454
-
455
- /* Maximum w1 encoding size in bytes. */
456
- #define DILITHIUM_MAX_W1_ENC_SZ PARAMS_ML_DSA_65_W1_ENC_SZ
457
- /* Maximum collision strength of c-tilde in bytes. */
458
- #define DILITHIUM_MAX_LAMBDA PARAMS_ML_DSA_65_LAMBDA
459
-
460
- /* Maximum count of elements of a vector with dimension K. */
461
- #define DILITHIUM_MAX_K_VECTOR_COUNT \
462
- (PARAMS_ML_DSA_65_K * DILITHIUM_N)
463
- /* Maximum count of elements of a vector with dimension L. */
464
- #define DILITHIUM_MAX_L_VECTOR_COUNT \
465
- (PARAMS_ML_DSA_65_L * DILITHIUM_N)
466
- /* Maximum count of elements of a matrix with dimension KxL. */
467
- #define DILITHIUM_MAX_MATRIX_COUNT \
468
- (PARAMS_ML_DSA_65_K * PARAMS_ML_DSA_65_L * DILITHIUM_N)
469
-
470
- #else
471
-
472
- /* Maximum w1 encoding size in bytes. */
473
- #define DILITHIUM_MAX_W1_ENC_SZ PARAMS_ML_DSA_44_W1_ENC_SZ
474
- /* Maximum collision strength of c-tilde in bytes. */
475
- #define DILITHIUM_MAX_LAMBDA PARAMS_ML_DSA_44_LAMBDA
476
-
477
- /* Maximum count of elements of a vector with dimension K. */
478
- #define DILITHIUM_MAX_K_VECTOR_COUNT \
479
- (PARAMS_ML_DSA_44_K * DILITHIUM_N)
480
- /* Maximum count of elements of a vector with dimension L. */
481
- #define DILITHIUM_MAX_L_VECTOR_COUNT \
482
- (PARAMS_ML_DSA_44_L * DILITHIUM_N)
483
- /* Maximum count of elements of a matrix with dimension KxL. */
484
- #define DILITHIUM_MAX_MATRIX_COUNT \
485
- (PARAMS_ML_DSA_44_K * PARAMS_ML_DSA_44_L * DILITHIUM_N)
486
-
487
- #endif
488
-
489
- /* Length of K in bytes. */
490
- #define DILITHIUM_K_SZ 32
491
- /* Length of TR in bytes. */
492
- #define DILITHIUM_TR_SZ 64
493
- /* Length of public key seed in bytes when expanding a. */
494
- #define DILITHIUM_PUB_SEED_SZ 32
495
- /* Length of private key seed in bytes when generating a key. */
496
- #define DILITHIUM_PRIV_SEED_SZ 64
497
-
498
- /* Length of seed when creating vector c. */
499
- #define DILITHIUM_SEED_SZ 32
500
- /* Length of seeds created when making a key. */
501
- #define DILITHIUM_SEEDS_SZ 128
502
-
503
- /* Length of MU in bytes. */
504
- #define DILITHIUM_MU_SZ 64
505
- /* Length of random in bytes when generating a signature. */
506
- #define DILITHIUM_RND_SZ 32
507
- /* Length of private random in bytes when generating a signature. */
508
- #define DILITHIUM_PRIV_RAND_SEED_SZ 64
509
-
510
- /* 5 blocks, each block 21 * 8 bytes = 840 bytes.
511
- * Minimum required is 256 * 3 = 768. */
512
- #define DILITHIUM_GEN_A_NBLOCKS 5
513
- /* Number of bytes to generate with Shake128 when generating A. */
514
- #define DILITHIUM_GEN_A_BYTES \
515
- (DILITHIUM_GEN_A_NBLOCKS * WC_SHA3_128_COUNT * 8)
516
- /* Number of bytes to a block of SHAKE-128 when generating A. */
517
- #define DILITHIUM_GEN_A_BLOCK_BYTES (WC_SHA3_128_COUNT * 8)
518
-
519
- /* Number of bytes to a block of SHAKE-256 when generating c. */
520
- #define DILITHIUM_GEN_C_BLOCK_BYTES (WC_SHA3_256_COUNT * 8)
521
-
522
-
523
- #ifndef WOLFSSL_DILITHIUM_SMALL
524
- #if defined(LITTLE_ENDIAN_ORDER) && (WOLFSSL_DILITHIUM_ALIGNMENT == 0)
525
- /* A block SHAKE-128 output plus one for reading 4 bytes at a time. */
526
- #define DILITHIUM_REJ_NTT_POLY_H_SIZE (DILITHIUM_GEN_A_BYTES + 1)
527
- #else
528
- /* A block SHAKE-128 output. */
529
- #define DILITHIUM_REJ_NTT_POLY_H_SIZE DILITHIUM_GEN_A_BYTES
530
- #endif /* LITTLE_ENDIAN_ORDER && WOLFSSL_DILITHIUM_ALIGNMENT == 0 */
531
- #else
532
- #if defined(LITTLE_ENDIAN_ORDER) && (WOLFSSL_DILITHIUM_ALIGNMENT == 0)
533
- /* A block SHAKE-128 output plus one for reading 4 bytes at a time. */
534
- #define DILITHIUM_REJ_NTT_POLY_H_SIZE (DILITHIUM_GEN_A_BLOCK_BYTES + 1)
535
- #else
536
- /* A block SHAKE-128 output. */
537
- #define DILITHIUM_REJ_NTT_POLY_H_SIZE DILITHIUM_GEN_A_BLOCK_BYTES
538
- #endif /* LITTLE_ENDIAN_ORDER && WOLFSSL_DILITHIUM_ALIGNMENT == 0 */
539
- #endif
540
-
541
- #elif defined(HAVE_LIBOQS)
542
-
543
- #define DILITHIUM_LEVEL2_KEY_SIZE OQS_SIG_ml_dsa_44_ipd_length_secret_key
544
- #define DILITHIUM_LEVEL2_SIG_SIZE OQS_SIG_ml_dsa_44_ipd_length_signature
545
- #define DILITHIUM_LEVEL2_PUB_KEY_SIZE OQS_SIG_ml_dsa_44_ipd_length_public_key
546
- #define DILITHIUM_LEVEL2_PRV_KEY_SIZE \
547
- (DILITHIUM_LEVEL2_PUB_KEY_SIZE+DILITHIUM_LEVEL2_KEY_SIZE)
548
- /* Buffer sizes large enough to store exported DER encoded keys */
549
- #define DILITHIUM_LEVEL2_PUB_KEY_DER_SIZE 1334
550
- #define DILITHIUM_LEVEL2_PRV_KEY_DER_SIZE 2588
551
- #define DILITHIUM_LEVEL2_BOTH_KEY_DER_SIZE 3904
552
- /* PEM size with the header "-----BEGIN PRIVATE KEY-----" and
553
- * the footer "-----END PRIVATE KEY-----" */
554
- #define DILITHIUM_LEVEL2_BOTH_KEY_PEM_SIZE 5344
555
-
556
- #define DILITHIUM_LEVEL3_KEY_SIZE OQS_SIG_ml_dsa_65_ipd_length_secret_key
557
- #define DILITHIUM_LEVEL3_SIG_SIZE OQS_SIG_ml_dsa_65_ipd_length_signature
558
- #define DILITHIUM_LEVEL3_PUB_KEY_SIZE OQS_SIG_ml_dsa_65_ipd_length_public_key
559
- #define DILITHIUM_LEVEL3_PRV_KEY_SIZE \
560
- (DILITHIUM_LEVEL3_PUB_KEY_SIZE+DILITHIUM_LEVEL3_KEY_SIZE)
561
- /* Buffer sizes large enough to store exported DER encoded keys */
562
- #define DILITHIUM_LEVEL3_PUB_KEY_DER_SIZE 1974
563
- #define DILITHIUM_LEVEL3_PRV_KEY_DER_SIZE 4060
564
- #define DILITHIUM_LEVEL3_BOTH_KEY_DER_SIZE 6016
565
- /* PEM size with the header "-----BEGIN PRIVATE KEY-----" and
566
- * the footer "-----END PRIVATE KEY-----" */
567
- #define DILITHIUM_LEVEL3_BOTH_KEY_PEM_SIZE 8204
568
-
569
- #define DILITHIUM_LEVEL5_KEY_SIZE OQS_SIG_ml_dsa_87_ipd_length_secret_key
570
- #define DILITHIUM_LEVEL5_SIG_SIZE OQS_SIG_ml_dsa_87_ipd_length_signature
571
- #define DILITHIUM_LEVEL5_PUB_KEY_SIZE OQS_SIG_ml_dsa_87_ipd_length_public_key
572
- #define DILITHIUM_LEVEL5_PRV_KEY_SIZE \
573
- (DILITHIUM_LEVEL5_PUB_KEY_SIZE+DILITHIUM_LEVEL5_KEY_SIZE)
574
- /* Buffer sizes large enough to store exported DER encoded keys */
575
- #define DILITHIUM_LEVEL5_PUB_KEY_DER_SIZE 2614
576
- #define DILITHIUM_LEVEL5_PRV_KEY_DER_SIZE 4924
577
- #define DILITHIUM_LEVEL5_BOTH_KEY_DER_SIZE 7520
578
- /* PEM size with the header "-----BEGIN ML_DSA_LEVEL5 PRIVATE KEY-----" and
579
- * the footer "-----END ML_DSA_LEVEL5 PRIVATE KEY-----" */
580
- #define DILITHIUM_LEVEL5_BOTH_KEY_PEM_SIZE 10267
581
-
582
- #define ML_DSA_LEVEL2_KEY_SIZE OQS_SIG_ml_dsa_44_ipd_length_secret_key
583
- #define ML_DSA_LEVEL2_SIG_SIZE OQS_SIG_ml_dsa_44_ipd_length_signature
584
- #define ML_DSA_LEVEL2_PUB_KEY_SIZE OQS_SIG_ml_dsa_44_ipd_length_public_key
585
- #define ML_DSA_LEVEL2_PRV_KEY_SIZE \
586
- (ML_DSA_LEVEL2_PUB_KEY_SIZE+ML_DSA_LEVEL2_KEY_SIZE)
587
- /* Buffer sizes large enough to store exported DER encoded keys */
588
- #define ML_DSA_LEVEL2_PUB_KEY_DER_SIZE DILITHIUM_LEVEL2_PUB_KEY_DER_SIZE
589
- #define ML_DSA_LEVEL2_PRV_KEY_DER_SIZE DILITHIUM_LEVEL2_PRV_KEY_DER_SIZE
590
- #define ML_DSA_LEVEL2_BOTH_KEY_DER_SIZE DILITHIUM_LEVEL2_BOTH_KEY_DER_SIZE
591
- /* PEM size with the header "-----BEGIN PRIVATE KEY-----" and
592
- * the footer "-----END PRIVATE KEY-----" */
593
- #define ML_DSA_LEVEL2_BOTH_KEY_PEM_SIZE DILITHIUM_LEVEL2_BOTH_KEY_PEM_SIZE
594
-
595
- #define ML_DSA_LEVEL3_KEY_SIZE OQS_SIG_ml_dsa_65_ipd_length_secret_key
596
- #define ML_DSA_LEVEL3_SIG_SIZE OQS_SIG_ml_dsa_65_ipd_length_signature
597
- #define ML_DSA_LEVEL3_PUB_KEY_SIZE OQS_SIG_ml_dsa_65_ipd_length_public_key
598
- #define ML_DSA_LEVEL3_PRV_KEY_SIZE \
599
- (ML_DSA_LEVEL3_PUB_KEY_SIZE+ML_DSA_LEVEL3_KEY_SIZE)
600
- /* Buffer sizes large enough to store exported DER encoded keys */
601
- #define ML_DSA_LEVEL3_PUB_KEY_DER_SIZE DILITHIUM_LEVEL3_PUB_KEY_DER_SIZE
602
- #define ML_DSA_LEVEL3_PRV_KEY_DER_SIZE DILITHIUM_LEVEL3_PRV_KEY_DER_SIZE
603
- #define ML_DSA_LEVEL3_BOTH_KEY_DER_SIZE DILITHIUM_LEVEL3_BOTH_KEY_DER_SIZE
604
- /* PEM size with the header "-----BEGIN PRIVATE KEY-----" and
605
- * the footer "-----END PRIVATE KEY-----" */
606
- #define ML_DSA_LEVEL3_BOTH_KEY_PEM_SIZE DILITHIUM_LEVEL3_BOTH_KEY_PEM_SIZE
607
-
608
- #define ML_DSA_LEVEL5_KEY_SIZE OQS_SIG_ml_dsa_87_ipd_length_secret_key
609
- #define ML_DSA_LEVEL5_SIG_SIZE OQS_SIG_ml_dsa_87_ipd_length_signature
610
- #define ML_DSA_LEVEL5_PUB_KEY_SIZE OQS_SIG_ml_dsa_87_ipd_length_public_key
611
- #define ML_DSA_LEVEL5_PRV_KEY_SIZE \
612
- (ML_DSA_LEVEL5_PUB_KEY_SIZE+ML_DSA_LEVEL5_KEY_SIZE)
613
- /* Buffer sizes large enough to store exported DER encoded keys */
614
- #define ML_DSA_LEVEL5_PUB_KEY_DER_SIZE DILITHIUM_LEVEL5_PUB_KEY_DER_SIZE
615
- #define ML_DSA_LEVEL5_PRV_KEY_DER_SIZE DILITHIUM_LEVEL5_PRV_KEY_DER_SIZE
616
- #define ML_DSA_LEVEL5_BOTH_KEY_DER_SIZE DILITHIUM_LEVEL5_BOTH_KEY_DER_SIZE
617
- /* PEM size with the header "-----BEGIN ML_DSA_LEVEL5 PRIVATE KEY-----" and
618
- * the footer "-----END ML_DSA_LEVEL5 PRIVATE KEY-----" */
619
- #define ML_DSA_LEVEL5_BOTH_KEY_PEM_SIZE DILITHIUM_LEVEL5_BOTH_KEY_PEM_SIZE
620
-
621
- #endif
622
-
623
- #define DILITHIUM_MAX_KEY_SIZE DILITHIUM_LEVEL5_KEY_SIZE
624
- #define DILITHIUM_MAX_SIG_SIZE DILITHIUM_LEVEL5_SIG_SIZE
625
- #define DILITHIUM_MAX_PUB_KEY_SIZE DILITHIUM_LEVEL5_PUB_KEY_SIZE
626
- #define DILITHIUM_MAX_PRV_KEY_SIZE DILITHIUM_LEVEL5_PRV_KEY_SIZE
627
- /* Buffer sizes large enough to store exported DER encoded keys */
628
- #define DILITHIUM_MAX_PUB_KEY_DER_SIZE DILITHIUM_LEVEL5_PUB_KEY_DER_SIZE
629
- #define DILITHIUM_MAX_PRV_KEY_DER_SIZE DILITHIUM_LEVEL5_PRV_KEY_DER_SIZE
630
- #define DILITHIUM_MAX_BOTH_KEY_DER_SIZE DILITHIUM_LEVEL5_BOTH_KEY_DER_SIZE
631
- /* PEM size with the header "-----BEGIN ML_DSA_LEVEL5 PRIVATE KEY-----" and
632
- * the footer "-----END ML_DSA_LEVEL5 PRIVATE KEY-----" */
633
- #define DILITHIUM_MAX_BOTH_KEY_PEM_SIZE DILITHIUM_LEVEL5_BOTH_KEY_PEM_SIZE
634
-
635
-
636
- #ifdef WOLF_PRIVATE_KEY_ID
637
- #define DILITHIUM_MAX_ID_LEN 32
638
- #define DILITHIUM_MAX_LABEL_LEN 32
639
- #endif
640
-
641
- /* Structs */
642
-
643
- #ifdef WOLFSSL_WC_DILITHIUM
644
- typedef struct wc_dilithium_params {
645
- byte level;
646
- byte k;
647
- byte l;
648
- byte eta;
649
- byte eta_bits;
650
- byte tau;
651
- byte beta;
652
- byte omega;
653
- word16 lambda;
654
- byte gamma1_bits;
655
- sword32 gamma2;
656
- word32 w1EncSz;
657
- word16 aSz;
658
- word16 s1Sz;
659
- word16 s1EncSz;
660
- word16 s2Sz;
661
- word16 s2EncSz;
662
- word16 zEncSz;
663
- word16 pkSz;
664
- word16 sigSz;
665
- } wc_dilithium_params;
666
- #endif
667
-
668
- struct dilithium_key {
669
- byte pubKeySet;
670
- byte prvKeySet;
671
- byte level; /* 2,3 or 5 */
672
-
673
- void* heap; /* heap hint */
674
-
675
- #ifdef WOLF_CRYPTO_CB
676
- void* devCtx;
677
- int devId;
678
- #endif
679
- #ifdef WOLF_PRIVATE_KEY_ID
680
- byte id[DILITHIUM_MAX_ID_LEN];
681
- int idLen;
682
- char label[DILITHIUM_MAX_LABEL_LEN];
683
- int labelLen;
684
- #endif
685
-
686
- #ifndef WOLFSSL_DILITHIUM_ASSIGN_KEY
687
- #ifdef USE_INTEL_SPEEDUP
688
- byte p[DILITHIUM_MAX_PUB_KEY_SIZE+8];
689
- byte k[DILITHIUM_MAX_KEY_SIZE+8];
690
- #else
691
- byte p[DILITHIUM_MAX_PUB_KEY_SIZE];
692
- byte k[DILITHIUM_MAX_KEY_SIZE];
693
- #endif
694
- #else
695
- const byte* p;
696
- const byte* k;
697
- #endif
698
-
699
- #ifdef WOLFSSL_WC_DILITHIUM
700
- const wc_dilithium_params* params;
701
- wc_Shake shake;
702
- #ifndef WC_DILITHIUM_FIXED_ARRAY
703
- #ifdef WC_DILITHIUM_CACHE_MATRIX_A
704
- sword32* a;
705
- byte aSet;
706
- #endif
707
- #ifdef WC_DILITHIUM_CACHE_PRIV_VECTORS
708
- sword32* s1;
709
- sword32* s2;
710
- sword32* t0;
711
- byte privVecsSet;
712
- #endif
713
- #ifdef WC_DILITHIUM_CACHE_PUB_VECTORS
714
- sword32* t1;
715
- byte pubVecSet;
716
- #endif
717
- #else
718
- #ifdef WC_DILITHIUM_CACHE_MATRIX_A
719
- sword32 a[DILITHIUM_MAX_MATRIX_COUNT];
720
- byte aSet;
721
- #endif
722
- #ifdef WC_DILITHIUM_CACHE_PRIV_VECTORS
723
- sword32 s1[DILITHIUM_MAX_L_VECTOR_COUNT];
724
- sword32 s2[DILITHIUM_MAX_K_VECTOR_COUNT];
725
- sword32 t0[DILITHIUM_MAX_K_VECTOR_COUNT];
726
- byte privVecsSet;
727
- #endif
728
- #ifdef WC_DILITHIUM_CACHE_PUB_VECTORS
729
- sword32 t1[DILITHIUM_MAX_K_VECTOR_COUNT];
730
- byte pubVecSet;
731
- #endif
732
- #endif
733
- #if defined(WOLFSSL_DILITHIUM_VERIFY_NO_MALLOC) && \
734
- defined(WOLFSSL_DILITHIUM_VERIFY_SMALL_MEM)
735
- sword32 z[DILITHIUM_MAX_L_VECTOR_COUNT];
736
- sword32 c[DILITHIUM_N];
737
- sword32 w[DILITHIUM_N];
738
- sword32 t1[DILITHIUM_N];
739
- byte w1e[DILITHIUM_MAX_W1_ENC_SZ];
740
- #ifdef WOLFSSL_DILITHIUM_SMALL_MEM_POLY64
741
- sword64 t64[DILITHIUM_N];
742
- #endif
743
- byte h[DILITHIUM_REJ_NTT_POLY_H_SIZE];
744
- byte block[DILITHIUM_GEN_C_BLOCK_BYTES];
745
- #endif /* WOLFSSL_DILITHIUM_VERIFY_NO_MALLOC &&
746
- * WOLFSSL_DILITHIUM_VERIFY_SMALL_MEM */
747
- #endif /* WOLFSSL_WC_DILITHIUM */
748
- };
749
-
750
- #ifndef WC_DILITHIUMKEY_TYPE_DEFINED
751
- typedef struct dilithium_key dilithium_key;
752
- #define WC_DILITHIUMKEY_TYPE_DEFINED
753
- #endif
754
-
755
- /* Functions */
756
-
757
- #ifndef WOLFSSL_DILITHIUM_VERIFY_ONLY
758
- WOLFSSL_API
759
- int wc_dilithium_make_key(dilithium_key* key, WC_RNG* rng);
760
- WOLFSSL_API
761
- int wc_dilithium_make_key_from_seed(dilithium_key* key, const byte* seed);
762
-
763
- WOLFSSL_API
764
- int wc_dilithium_sign_msg(const byte* msg, word32 msgLen, byte* sig,
765
- word32* sigLen, dilithium_key* key, WC_RNG* rng);
766
- WOLFSSL_API
767
- int wc_dilithium_sign_ctx_msg(const byte* ctx, byte ctxLen, const byte* msg,
768
- word32 msgLen, byte* sig, word32* sigLen, dilithium_key* key, WC_RNG* rng);
769
- WOLFSSL_API
770
- int wc_dilithium_sign_ctx_hash(const byte* ctx, byte ctxLen, int hashAlg,
771
- const byte* hash, word32 hashLen, byte* sig, word32* sigLen,
772
- dilithium_key* key, WC_RNG* rng);
773
- WOLFSSL_API
774
- int wc_dilithium_sign_msg_with_seed(const byte* msg, word32 msgLen, byte* sig,
775
- word32 *sigLen, dilithium_key* key, const byte* seed);
776
- WOLFSSL_API
777
- int wc_dilithium_sign_ctx_msg_with_seed(const byte* ctx, byte ctxLen,
778
- const byte* msg, word32 msgLen, byte* sig, word32 *sigLen,
779
- dilithium_key* key, const byte* seed);
780
- WOLFSSL_API
781
- int wc_dilithium_sign_ctx_hash_with_seed(const byte* ctx, byte ctxLen,
782
- int hashAlg, const byte* hash, word32 hashLen, byte* sig, word32 *sigLen,
783
- dilithium_key* key, const byte* seed);
784
- #endif
785
- WOLFSSL_API
786
- int wc_dilithium_verify_msg(const byte* sig, word32 sigLen, const byte* msg,
787
- word32 msgLen, int* res, dilithium_key* key);
788
- WOLFSSL_API
789
- int wc_dilithium_verify_ctx_msg(const byte* sig, word32 sigLen, const byte* ctx,
790
- word32 ctxLen, const byte* msg, word32 msgLen, int* res,
791
- dilithium_key* key);
792
- WOLFSSL_API
793
- int wc_dilithium_verify_ctx_hash(const byte* sig, word32 sigLen,
794
- const byte* ctx, word32 ctxLen, int hashAlg, const byte* hash,
795
- word32 hashLen, int* res, dilithium_key* key);
796
-
797
- WOLFSSL_API
798
- dilithium_key* wc_dilithium_new(void* heap, int devId);
799
- WOLFSSL_API
800
- int wc_dilithium_delete(dilithium_key* key, dilithium_key** key_p);
801
-
802
- WOLFSSL_API
803
- int wc_dilithium_init(dilithium_key* key);
804
-
805
- WOLFSSL_API
806
- int wc_dilithium_init_ex(dilithium_key* key, void* heap, int devId);
807
-
808
- #ifdef WOLF_PRIVATE_KEY_ID
809
- WOLFSSL_API
810
- int wc_dilithium_init_id(dilithium_key* key, const unsigned char* id, int len,
811
- void* heap, int devId);
812
- WOLFSSL_API
813
- int wc_dilithium_init_label(dilithium_key* key, const char* label, void* heap,
814
- int devId);
815
- #endif
816
-
817
- WOLFSSL_API
818
- int wc_dilithium_set_level(dilithium_key* key, byte level);
819
- WOLFSSL_API
820
- int wc_dilithium_get_level(dilithium_key* key, byte* level);
821
- WOLFSSL_API
822
- void wc_dilithium_free(dilithium_key* key);
823
-
824
- #ifdef WOLFSSL_DILITHIUM_PRIVATE_KEY
825
- WOLFSSL_API
826
- int wc_dilithium_size(dilithium_key* key);
827
- #endif
828
- #if defined(WOLFSSL_DILITHIUM_PRIVATE_KEY) && \
829
- defined(WOLFSSL_DILITHIUM_PUBLIC_KEY)
830
- WOLFSSL_API
831
- int wc_dilithium_priv_size(dilithium_key* key);
832
- #endif
833
- #ifdef WOLFSSL_DILITHIUM_PUBLIC_KEY
834
- WOLFSSL_API
835
- int wc_dilithium_pub_size(dilithium_key* key);
836
- #endif
837
- #if !defined(WOLFSSL_DILITHIUM_NO_SIGN) || !defined(WOLFSSL_DILITHIUM_NO_VERIFY)
838
- WOLFSSL_API
839
- int wc_dilithium_sig_size(dilithium_key* key);
840
- #endif
841
-
842
- #ifdef WOLFSSL_DILITHIUM_CHECK_KEY
843
- WOLFSSL_API
844
- int wc_dilithium_check_key(dilithium_key* key);
845
- #endif
846
-
847
- #ifdef WOLFSSL_DILITHIUM_PUBLIC_KEY
848
- WOLFSSL_API
849
- int wc_dilithium_import_public(const byte* in, word32 inLen,
850
- dilithium_key* key);
851
- #endif
852
- #ifdef WOLFSSL_DILITHIUM_PRIVATE_KEY
853
- WOLFSSL_API
854
- int wc_dilithium_import_private(const byte* priv, word32 privSz,
855
- dilithium_key* key);
856
- #define wc_dilithium_import_private_only wc_dilithium_import_private
857
- WOLFSSL_API
858
- int wc_dilithium_import_key(const byte* priv, word32 privSz,
859
- const byte* pub, word32 pubSz, dilithium_key* key);
860
- #endif
861
-
862
- #ifdef WOLFSSL_DILITHIUM_PUBLIC_KEY
863
- WOLFSSL_API
864
- int wc_dilithium_export_public(dilithium_key* key, byte* out, word32* outLen);
865
- #endif
866
- #ifdef WOLFSSL_DILITHIUM_PRIVATE_KEY
867
- WOLFSSL_API
868
- int wc_dilithium_export_private(dilithium_key* key, byte* out, word32* outLen);
869
- #define wc_dilithium_export_private_only wc_dilithium_export_private
870
- #endif
871
- #ifdef WOLFSSL_DILITHIUM_PRIVATE_KEY
872
- WOLFSSL_API
873
- int wc_dilithium_export_key(dilithium_key* key, byte* priv, word32 *privSz,
874
- byte* pub, word32 *pubSz);
875
- #endif
876
-
877
- #ifndef WOLFSSL_DILITHIUM_NO_ASN1
878
- WOLFSSL_LOCAL int dilithium_get_oid_sum(dilithium_key* key, int* keyFormat);
879
- #endif /* WOLFSSL_DILITHIUM_NO_ASN1 */
880
-
881
- #ifndef WOLFSSL_DILITHIUM_NO_ASN1
882
- #if defined(WOLFSSL_DILITHIUM_PRIVATE_KEY)
883
- WOLFSSL_API int wc_Dilithium_PrivateKeyDecode(const byte* input,
884
- word32* inOutIdx, dilithium_key* key, word32 inSz);
885
- #endif
886
- #endif /* WOLFSSL_DILITHIUM_NO_ASN1 */
887
- #ifdef WOLFSSL_DILITHIUM_PUBLIC_KEY
888
- WOLFSSL_API int wc_Dilithium_PublicKeyDecode(const byte* input,
889
- word32* inOutIdx, dilithium_key* key, word32 inSz);
890
- #endif
891
-
892
- #ifndef WOLFSSL_DILITHIUM_NO_ASN1
893
- #ifdef WC_ENABLE_ASYM_KEY_EXPORT
894
- WOLFSSL_API int wc_Dilithium_PublicKeyToDer(dilithium_key* key, byte* output,
895
- word32 inLen, int withAlg);
896
- #endif
897
- #if defined(WOLFSSL_DILITHIUM_PRIVATE_KEY)
898
- WOLFSSL_API int wc_Dilithium_KeyToDer(dilithium_key* key, byte* output,
899
- word32 inLen);
900
- #endif
901
- #ifdef WOLFSSL_DILITHIUM_PRIVATE_KEY
902
- WOLFSSL_API int wc_Dilithium_PrivateKeyToDer(dilithium_key* key, byte* output,
903
- word32 inLen);
904
- #endif
905
- #endif /* WOLFSSL_DILITHIUM_NO_ASN1 */
906
-
907
- #ifdef USE_INTEL_SPEEDUP
908
- WOLFSSL_LOCAL void wc_mldsa_poly_red_avx2(sword32* a);
909
-
910
- WOLFSSL_LOCAL void wc_mldsa_ntt_avx2(sword32* r);
911
- WOLFSSL_LOCAL void wc_mldsa_ntt_full_avx2(sword32* r);
912
- WOLFSSL_LOCAL void wc_mldsa_invntt_avx2(sword32* r);
913
- WOLFSSL_LOCAL void wc_mldsa_invntt_full_avx2(sword32* r);
914
-
915
- WOLFSSL_LOCAL void wc_mldsa_mul_avx2(sword32* r, const sword32* a,
916
- const sword32* b);
917
- WOLFSSL_LOCAL void wc_mldsa_mul_vec_4_avx2(sword32* r, const sword32* a,
918
- const sword32* b);
919
- WOLFSSL_LOCAL void wc_mldsa_mul_vec_5_avx2(sword32* r, const sword32* a,
920
- const sword32* b);
921
- WOLFSSL_LOCAL void wc_mldsa_mul_vec_7_avx2(sword32* r, const sword32* a,
922
- const sword32* b);
923
- WOLFSSL_LOCAL void wc_mldsa_matrix_mul_4x4_avx2(sword32* r, const sword32* m,
924
- const sword32* v);
925
- WOLFSSL_LOCAL void wc_mldsa_matrix_mul_6x5_avx2(sword32* r, const sword32* m,
926
- const sword32* v);
927
- WOLFSSL_LOCAL void wc_mldsa_matrix_mul_8x7_avx2(sword32* r, const sword32* m,
928
- const sword32* v);
929
-
930
- WOLFSSL_LOCAL void wc_mldsa_redistribute_21_rand_avx2(word64* s, byte* r0,
931
- byte* r1, byte* r2, byte* r3);
932
- WOLFSSL_LOCAL int wc_mldsa_rej_uniform_n_avx2(sword32* a, word32 len,
933
- const byte* r, word32 rLen);
934
- WOLFSSL_LOCAL int wc_mldsa_rej_uniform_avx2(sword32* a, word32 len,
935
- const byte* r, word32 rLen);
936
-
937
- WOLFSSL_LOCAL void wc_mldsa_redistribute_17_rand_avx2(word64* s, byte* r0,
938
- byte* r1, byte* r2, byte* r3);
939
- WOLFSSL_LOCAL void wc_mldsa_extract_coeffs_eta2_avx2(const byte* z,
940
- unsigned int zLen, sword32* s, unsigned int* cnt);
941
- WOLFSSL_LOCAL void wc_mldsa_extract_coeffs_eta4_avx2(const byte* z,
942
- unsigned int zLen, sword32* s, unsigned int* cnt);
943
-
944
- WOLFSSL_LOCAL void wc_mldsa_vec_encode_eta_2_avx2(const sword32* s, byte d,
945
- byte* p);
946
- WOLFSSL_LOCAL void wc_mldsa_vec_encode_eta_4_avx2(const sword32* t, byte* p);
947
- WOLFSSL_LOCAL void wc_mldsa_decode_eta_2_avx2(const byte* p, sword32* s);
948
- WOLFSSL_LOCAL void wc_mldsa_decode_eta_4_avx2(const byte* p, sword32* s);
949
-
950
- WOLFSSL_LOCAL void wc_mldsa_encode_w1_88_avx2(const sword32* w1, byte* w1e);
951
- WOLFSSL_LOCAL void wc_mldsa_encode_w1_32_avx2(const sword32* w1, byte* w1e);
952
-
953
- WOLFSSL_LOCAL void wc_mldsa_vec_encode_t0_t1_avx2(const sword32* t, byte d,
954
- byte* t0, byte* t1);
955
- WOLFSSL_LOCAL void wc_mldsa_decode_t0_avx2(const byte* t0, sword32* t);
956
- WOLFSSL_LOCAL void wc_mldsa_decode_t1_avx2(const byte* t1, sword32* t);
957
-
958
- WOLFSSL_LOCAL void wc_mldsa_decode_gamma1_17_avx2(const byte* s, sword32* z);
959
- WOLFSSL_LOCAL void wc_mldsa_decode_gamma1_19_avx2(const byte* s, sword32* z);
960
- WOLFSSL_LOCAL void wc_mldsa_encode_gamma1_17_avx2(const sword32* z, byte* s);
961
- WOLFSSL_LOCAL void wc_mldsa_encode_gamma1_19_avx2(const sword32* z, byte* s);
962
-
963
- WOLFSSL_LOCAL void wc_mldsa_decompose_q88_avx2(const sword32* r, sword32* r0,
964
- sword32* r1);
965
- WOLFSSL_LOCAL void wc_mldsa_decompose_q32_avx2(const sword32* r, byte k,
966
- sword32* r0, sword32* r1);
967
-
968
- WOLFSSL_LOCAL void wc_mldsa_use_hint_88_avx2(sword32* w1, const byte* h);
969
- WOLFSSL_LOCAL void wc_mldsa_use_hint_32_avx2(sword32* w1, byte k,
970
- const byte* h);
971
-
972
- WOLFSSL_LOCAL int wc_mldsa_vec_check_low_avx2(const sword32* a, byte l,
973
- sword32 hi);
974
-
975
- WOLFSSL_LOCAL void wc_mldsa_poly_add_avx2(sword32* r, const sword32* a);
976
- WOLFSSL_LOCAL void wc_mldsa_poly_sub_avx2(sword32* r, const sword32* a);
977
- WOLFSSL_LOCAL void wc_mldsa_poly_make_pos_avx2(sword32* a);
978
- #endif
979
-
980
-
981
- #define WC_ML_DSA_DRAFT 10
982
-
983
- #define WC_ML_DSA_44 2
984
- #define WC_ML_DSA_65 3
985
- #define WC_ML_DSA_87 5
986
- #define WC_ML_DSA_44_DRAFT (2 + WC_ML_DSA_DRAFT)
987
- #define WC_ML_DSA_65_DRAFT (3 + WC_ML_DSA_DRAFT)
988
- #define WC_ML_DSA_87_DRAFT (5 + WC_ML_DSA_DRAFT)
989
-
990
- #define DILITHIUM_ML_DSA_44_KEY_SIZE 2560
991
- #define DILITHIUM_ML_DSA_44_SIG_SIZE 2420
992
- #define DILITHIUM_ML_DSA_44_PUB_KEY_SIZE 1312
993
- #define DILITHIUM_ML_DSA_44_PRV_KEY_SIZE \
994
- (DILITHIUM_ML_DSA_44_PUB_KEY_SIZE + DILITHIUM_ML_DSA_44_KEY_SIZE)
995
-
996
- #define DILITHIUM_ML_DSA_65_KEY_SIZE 4032
997
- #define DILITHIUM_ML_DSA_65_SIG_SIZE 3309
998
- #define DILITHIUM_ML_DSA_65_PUB_KEY_SIZE 1952
999
- #define DILITHIUM_ML_DSA_65_PRV_KEY_SIZE \
1000
- (DILITHIUM_ML_DSA_65_PUB_KEY_SIZE + DILITHIUM_ML_DSA_65_KEY_SIZE)
1001
-
1002
- #define DILITHIUM_ML_DSA_87_KEY_SIZE 4896
1003
- #define DILITHIUM_ML_DSA_87_SIG_SIZE 4627
1004
- #define DILITHIUM_ML_DSA_87_PUB_KEY_SIZE 2592
1005
- #define DILITHIUM_ML_DSA_87_PRV_KEY_SIZE \
1006
- (DILITHIUM_ML_DSA_87_PUB_KEY_SIZE + DILITHIUM_ML_DSA_87_KEY_SIZE)
1007
-
1008
-
1009
- #define MlDsaKey dilithium_key
1010
-
1011
-
1012
- #define wc_MlDsaKey_Init(key, heap, devId) \
1013
- wc_dilithium_init_ex(key, heap, devId)
1014
- #define wc_MlDsaKey_SetParams(key, id) \
1015
- wc_dilithium_set_level(key, id)
1016
- #define wc_MlDsaKey_GetParams(key, id) \
1017
- wc_dilithium_get_level(key, id)
1018
- #define wc_MlDsaKey_MakeKey(key, rng) \
1019
- wc_dilithium_make_key(key, rng)
1020
- #define wc_MlDsaKey_ExportPrivRaw(key, out, outLen) \
1021
- wc_dilithium_export_private_only(key, out, outLen)
1022
- #define wc_MlDsaKey_ImportPrivRaw(key, in, inLen) \
1023
- wc_dilithium_import_private_only(in, inLen, key)
1024
- #define wc_MlDsaKey_Sign(key, sig, sigSz, msg, msgSz, rng) \
1025
- wc_dilithium_sign_msg(msg, msgSz, sig, sigSz, key, rng)
1026
- #define wc_MlDsaKey_Free(key) \
1027
- wc_dilithium_free(key)
1028
- #define wc_MlDsaKey_ExportPubRaw(key, out, outLen) \
1029
- wc_dilithium_export_public(key, out, outLen)
1030
- #define wc_MlDsaKey_ImportPubRaw(key, in, inLen) \
1031
- wc_dilithium_import_public(in, inLen, key)
1032
- #define wc_MlDsaKey_Verify(key, sig, sigSz, msg, msgSz, res) \
1033
- wc_dilithium_verify_msg(sig, sigSz, msg, msgSz, res, key)
1034
-
1035
- #define wc_MlDsaKey_PublicKeyToDer(key, output, len, withAlg) \
1036
- wc_Dilithium_PublicKeyToDer(key, output, len, withAlg)
1037
-
1038
- #define wc_MlDsaKey_PrivateKeyToDer(key, output, len) \
1039
- wc_Dilithium_PrivateKeyToDer(key, output, len)
1040
-
1041
-
1042
- WOLFSSL_API int wc_MlDsaKey_GetPrivLen(MlDsaKey* key, int* len);
1043
- WOLFSSL_API int wc_MlDsaKey_GetPubLen(MlDsaKey* key, int* len);
1044
- WOLFSSL_API int wc_MlDsaKey_GetSigLen(MlDsaKey* key, int* len);
1045
-
1046
- #ifdef __cplusplus
1047
- } /* extern "C" */
1048
- #endif
1049
-
1050
- #endif /* HAVE_DILITHIUM */
1051
- #endif /* WOLF_CRYPT_DILITHIUM_H */