pycryptodome 4.0.1__tar.gz → 4.2.0__tar.gz

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 (586) hide show
  1. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/.github/workflows/integration.yml +2 -2
  2. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Changelog.rst +49 -1
  3. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/_static/custom.css +6 -0
  4. pycryptodome-4.2.0/Doc/_static/pycryptodome-favicon-32.png +0 -0
  5. pycryptodome-4.2.0/Doc/_static/pycryptodome-favicon.svg +20 -0
  6. pycryptodome-4.2.0/Doc/_static/pycryptodome-logo-dark.svg +16 -0
  7. pycryptodome-4.2.0/Doc/_static/pycryptodome-logo-light.svg +15 -0
  8. pycryptodome-4.2.0/Doc/_templates/base.html +10 -0
  9. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/conf.py +8 -5
  10. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/features.rst +5 -1
  11. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/sha224.rst +5 -0
  12. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/sha256.rst +5 -0
  13. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/sha384.rst +5 -0
  14. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/sha3_224.rst +5 -0
  15. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/sha3_256.rst +5 -0
  16. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/sha3_384.rst +5 -0
  17. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/sha3_512.rst +5 -0
  18. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/sha512.rst +6 -0
  19. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/io/pkcs8.rst +1 -0
  20. pycryptodome-4.2.0/Doc/src/protocol/hpke.rst +186 -0
  21. pycryptodome-4.2.0/Doc/src/public_key/hybrid.rst +60 -0
  22. pycryptodome-4.2.0/Doc/src/public_key/mldsa.rst +110 -0
  23. pycryptodome-4.2.0/Doc/src/public_key/mlkem.rst +127 -0
  24. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/public_key/public_key.rst +6 -0
  25. pycryptodome-4.2.0/Doc/src/signature/mldsa.rst +97 -0
  26. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/signature/signature.rst +3 -0
  27. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/LICENSE.rst +13 -0
  28. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/MANIFEST.in +3 -1
  29. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/PKG-INFO +9 -5
  30. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/README.rst +5 -3
  31. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/compiler_opt.py +2 -0
  32. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA224.py +26 -0
  33. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA256.py +26 -0
  34. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA384.py +26 -0
  35. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA3_224.py +24 -0
  36. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA3_256.py +24 -0
  37. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA3_384.py +24 -0
  38. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA3_512.py +24 -0
  39. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA512.py +39 -0
  40. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/keccak.py +7 -0
  41. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/IO/PKCS8.py +100 -27
  42. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Protocol/HPKE.py +150 -53
  43. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/ECC.py +104 -44
  44. pycryptodome-4.2.0/lib/Crypto/PublicKey/Hybrid.py +293 -0
  45. pycryptodome-4.2.0/lib/Crypto/PublicKey/MLDSA.py +842 -0
  46. pycryptodome-4.2.0/lib/Crypto/PublicKey/MLKEM.py +831 -0
  47. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_KW.py +9 -3
  48. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py +19 -22
  49. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/common.py +4 -0
  50. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHA224.py +5 -0
  51. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHA256.py +5 -0
  52. pycryptodome-4.2.0/lib/Crypto/SelfTest/Hash/test_oneshot_digest.py +82 -0
  53. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/IO/test_PKCS8.py +103 -2
  54. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Protocol/test_HPKE.py +194 -1
  55. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Protocol/test_ecdh.py +90 -14
  56. pycryptodome-4.2.0/lib/Crypto/SelfTest/PublicKey/test_Hybrid.py +276 -0
  57. pycryptodome-4.2.0/lib/Crypto/SelfTest/PublicKey/test_MLDSA.py +570 -0
  58. pycryptodome-4.2.0/lib/Crypto/SelfTest/PublicKey/test_MLKEM.py +349 -0
  59. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_import_ECC.py +103 -0
  60. pycryptodome-4.2.0/lib/Crypto/SelfTest/PublicKey/test_import_MLDSA.py +603 -0
  61. pycryptodome-4.2.0/lib/Crypto/SelfTest/PublicKey/test_import_MLKEM.py +609 -0
  62. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Signature/test_dss.py +25 -14
  63. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Signature/test_eddsa.py +5 -18
  64. pycryptodome-4.2.0/lib/Crypto/SelfTest/Signature/test_mldsa.py +549 -0
  65. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Signature/test_pkcs1_15.py +20 -4
  66. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Signature/test_pss.py +34 -11
  67. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/test_asn1.py +62 -0
  68. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/loader.py +1 -1
  69. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Signature/__init__.py +1 -1
  70. pycryptodome-4.2.0/lib/Crypto/Signature/mldsa.py +308 -0
  71. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/asn1.py +86 -0
  72. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/__init__.py +1 -1
  73. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/pycryptodome.egg-info/PKG-INFO +9 -5
  74. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/pycryptodome.egg-info/SOURCES.txt +109 -0
  75. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/pyproject.toml +3 -2
  76. pycryptodome-4.2.0/requirements-test.txt +2 -0
  77. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/setup.py +33 -0
  78. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/hash_SHA2_template.c +61 -18
  79. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/keccak.c +214 -123
  80. pycryptodome-4.2.0/src/mldsa-native/LICENSE +305 -0
  81. pycryptodome-4.2.0/src/mldsa-native/README.md +23 -0
  82. pycryptodome-4.2.0/src/mldsa-native/mldsa_native.c +803 -0
  83. pycryptodome-4.2.0/src/mldsa-native/mldsa_native.h +956 -0
  84. pycryptodome-4.2.0/src/mldsa-native/mldsa_native_config.h +855 -0
  85. pycryptodome-4.2.0/src/mldsa-native/src/cbmc.h +233 -0
  86. pycryptodome-4.2.0/src/mldsa-native/src/common.h +301 -0
  87. pycryptodome-4.2.0/src/mldsa-native/src/context.h +152 -0
  88. pycryptodome-4.2.0/src/mldsa-native/src/ct.c +21 -0
  89. pycryptodome-4.2.0/src/mldsa-native/src/ct.h +373 -0
  90. pycryptodome-4.2.0/src/mldsa-native/src/debug.c +75 -0
  91. pycryptodome-4.2.0/src/mldsa-native/src/debug.h +125 -0
  92. pycryptodome-4.2.0/src/mldsa-native/src/fips202/fips202.c +270 -0
  93. pycryptodome-4.2.0/src/mldsa-native/src/fips202/fips202.h +224 -0
  94. pycryptodome-4.2.0/src/mldsa-native/src/fips202/fips202x4.c +187 -0
  95. pycryptodome-4.2.0/src/mldsa-native/src/fips202/fips202x4.h +125 -0
  96. pycryptodome-4.2.0/src/mldsa-native/src/fips202/keccakf1600.c +510 -0
  97. pycryptodome-4.2.0/src/mldsa-native/src/fips202/keccakf1600.h +110 -0
  98. pycryptodome-4.2.0/src/mldsa-native/src/fips202/native/aarch64/src/keccakf1600_round_constants.c +47 -0
  99. pycryptodome-4.2.0/src/mldsa-native/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.c +42 -0
  100. pycryptodome-4.2.0/src/mldsa-native/src/fips202/native/armv81m/src/keccakf1600_round_constants.c +53 -0
  101. pycryptodome-4.2.0/src/mldsa-native/src/fips202/native/x86_64/src/keccakf1600_constants.c +52 -0
  102. pycryptodome-4.2.0/src/mldsa-native/src/packing.c +213 -0
  103. pycryptodome-4.2.0/src/mldsa-native/src/packing.h +277 -0
  104. pycryptodome-4.2.0/src/mldsa-native/src/params.h +153 -0
  105. pycryptodome-4.2.0/src/mldsa-native/src/poly.c +1066 -0
  106. pycryptodome-4.2.0/src/mldsa-native/src/poly.h +464 -0
  107. pycryptodome-4.2.0/src/mldsa-native/src/poly_kl.c +910 -0
  108. pycryptodome-4.2.0/src/mldsa-native/src/poly_kl.h +367 -0
  109. pycryptodome-4.2.0/src/mldsa-native/src/polyvec.c +509 -0
  110. pycryptodome-4.2.0/src/mldsa-native/src/polyvec.h +435 -0
  111. pycryptodome-4.2.0/src/mldsa-native/src/polyvec_lazy.c +311 -0
  112. pycryptodome-4.2.0/src/mldsa-native/src/polyvec_lazy.h +652 -0
  113. pycryptodome-4.2.0/src/mldsa-native/src/randombytes.h +26 -0
  114. pycryptodome-4.2.0/src/mldsa-native/src/reduce.h +144 -0
  115. pycryptodome-4.2.0/src/mldsa-native/src/rounding.h +265 -0
  116. pycryptodome-4.2.0/src/mldsa-native/src/sign.c +1720 -0
  117. pycryptodome-4.2.0/src/mldsa-native/src/sign.h +850 -0
  118. pycryptodome-4.2.0/src/mldsa-native/src/symmetric.h +68 -0
  119. pycryptodome-4.2.0/src/mldsa-native/src/sys.h +327 -0
  120. pycryptodome-4.2.0/src/mldsa-native/src/zetas.inc +55 -0
  121. pycryptodome-4.2.0/src/mldsa.c +237 -0
  122. pycryptodome-4.2.0/src/mldsa_avx2_bmi2.c +17 -0
  123. pycryptodome-4.2.0/src/mldsa_config.h +65 -0
  124. pycryptodome-4.2.0/src/mldsa_fips202.h +76 -0
  125. pycryptodome-4.2.0/src/mlkem-native/LICENSE +312 -0
  126. pycryptodome-4.2.0/src/mlkem-native/README.md +23 -0
  127. pycryptodome-4.2.0/src/mlkem-native/mlkem_native.c +692 -0
  128. pycryptodome-4.2.0/src/mlkem-native/mlkem_native.h +464 -0
  129. pycryptodome-4.2.0/src/mlkem-native/mlkem_native_config.h +683 -0
  130. pycryptodome-4.2.0/src/mlkem-native/src/cbmc.h +222 -0
  131. pycryptodome-4.2.0/src/mlkem-native/src/common.h +296 -0
  132. pycryptodome-4.2.0/src/mlkem-native/src/compress.c +763 -0
  133. pycryptodome-4.2.0/src/mlkem-native/src/compress.h +613 -0
  134. pycryptodome-4.2.0/src/mlkem-native/src/context.h +51 -0
  135. pycryptodome-4.2.0/src/mlkem-native/src/debug.c +64 -0
  136. pycryptodome-4.2.0/src/mlkem-native/src/debug.h +121 -0
  137. pycryptodome-4.2.0/src/mlkem-native/src/fips202/fips202.c +249 -0
  138. pycryptodome-4.2.0/src/mlkem-native/src/fips202/fips202.h +144 -0
  139. pycryptodome-4.2.0/src/mlkem-native/src/fips202/fips202x4.c +207 -0
  140. pycryptodome-4.2.0/src/mlkem-native/src/fips202/fips202x4.h +81 -0
  141. pycryptodome-4.2.0/src/mlkem-native/src/fips202/keccakf1600.c +499 -0
  142. pycryptodome-4.2.0/src/mlkem-native/src/fips202/keccakf1600.h +98 -0
  143. pycryptodome-4.2.0/src/mlkem-native/src/fips202/native/aarch64/src/keccakf1600_round_constants.c +47 -0
  144. pycryptodome-4.2.0/src/mlkem-native/src/fips202/native/armv81m/src/keccak_f1600_x4_mve.c +40 -0
  145. pycryptodome-4.2.0/src/mlkem-native/src/fips202/native/armv81m/src/keccakf1600_round_constants.c +52 -0
  146. pycryptodome-4.2.0/src/mlkem-native/src/fips202/native/x86_64/src/keccakf1600_constants.c +52 -0
  147. pycryptodome-4.2.0/src/mlkem-native/src/indcpa.c +675 -0
  148. pycryptodome-4.2.0/src/mlkem-native/src/indcpa.h +172 -0
  149. pycryptodome-4.2.0/src/mlkem-native/src/kem.c +474 -0
  150. pycryptodome-4.2.0/src/mlkem-native/src/kem.h +353 -0
  151. pycryptodome-4.2.0/src/mlkem-native/src/params.h +76 -0
  152. pycryptodome-4.2.0/src/mlkem-native/src/poly.c +581 -0
  153. pycryptodome-4.2.0/src/mlkem-native/src/poly.h +296 -0
  154. pycryptodome-4.2.0/src/mlkem-native/src/poly_k.c +522 -0
  155. pycryptodome-4.2.0/src/mlkem-native/src/poly_k.h +622 -0
  156. pycryptodome-4.2.0/src/mlkem-native/src/randombytes.h +52 -0
  157. pycryptodome-4.2.0/src/mlkem-native/src/sampling.c +371 -0
  158. pycryptodome-4.2.0/src/mlkem-native/src/sampling.h +111 -0
  159. pycryptodome-4.2.0/src/mlkem-native/src/symmetric.h +70 -0
  160. pycryptodome-4.2.0/src/mlkem-native/src/sys.h +320 -0
  161. pycryptodome-4.2.0/src/mlkem-native/src/verify.c +20 -0
  162. pycryptodome-4.2.0/src/mlkem-native/src/verify.h +447 -0
  163. pycryptodome-4.2.0/src/mlkem-native/src/zetas.inc +30 -0
  164. pycryptodome-4.2.0/src/mlkem.c +268 -0
  165. pycryptodome-4.2.0/src/mlkem_avx2_bmi2.c +17 -0
  166. pycryptodome-4.2.0/src/mlkem_config.h +65 -0
  167. pycryptodome-4.2.0/src/mlkem_fips202.h +76 -0
  168. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/nat_mod.c +47 -41
  169. pycryptodome-4.2.0/src/pq_fips202.h +162 -0
  170. pycryptodome-4.0.1/Doc/src/protocol/hpke.rst +0 -127
  171. pycryptodome-4.0.1/requirements-test.txt +0 -2
  172. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/.github/workflows/codeql-analysis.yml +0 -0
  173. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/.github/workflows/wheels.yml +0 -0
  174. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/AUTHORS.rst +0 -0
  175. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/Changelog.pycrypto +0 -0
  176. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/00INDEX +0 -0
  177. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/COPYRIGHT.pycrypto +0 -0
  178. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/00INDEX +0 -0
  179. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/LICENSE.orig +0 -0
  180. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/LICENSE.python-2.2 +0 -0
  181. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/stmts/Andrew_M_Kuchling.mbox +0 -0
  182. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/stmts/Barry_A_Warsaw.mbox +0 -0
  183. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/stmts/Jeethu_Rao.mbox +0 -0
  184. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/stmts/Joris_Bontje.mbox +0 -0
  185. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/stmts/Mark_Moraes.mbox +0 -0
  186. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/stmts/Paul_Swartz.mbox +0 -0
  187. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/stmts/Robey_Pointer.asc +0 -0
  188. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/copy/stmts/Wim_Lewis.asc +0 -0
  189. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/LEGAL/tsu-notify.mbox +0 -0
  190. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/Makefile +0 -0
  191. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/index.rst +0 -0
  192. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/make.bat +0 -0
  193. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/requirements-docs.txt +0 -0
  194. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/api.rst +0 -0
  195. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/changelog.rst +0 -0
  196. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/aead.png +0 -0
  197. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/aead.xml +0 -0
  198. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/aes.rst +0 -0
  199. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/arc2.rst +0 -0
  200. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/arc4.rst +0 -0
  201. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/blowfish.rst +0 -0
  202. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/cast.rst +0 -0
  203. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/chacha20.rst +0 -0
  204. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/chacha20_poly1305.rst +0 -0
  205. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/cipher.rst +0 -0
  206. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/classic.rst +0 -0
  207. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/ctr_mode.png +0 -0
  208. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/ctr_mode.xml +0 -0
  209. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/des.rst +0 -0
  210. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/des3.rst +0 -0
  211. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/modern.rst +0 -0
  212. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/oaep.rst +0 -0
  213. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/ocb_mode.png +0 -0
  214. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/ocb_mode.xml +0 -0
  215. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/pkcs1_v1_5.rst +0 -0
  216. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/salsa20.rst +0 -0
  217. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/simple_mode.png +0 -0
  218. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/simple_mode.xml +0 -0
  219. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/siv.png +0 -0
  220. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/cipher/siv.xml +0 -0
  221. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/contribute_support.rst +0 -0
  222. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/examples.rst +0 -0
  223. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/exceptions.rst +0 -0
  224. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/faq.rst +0 -0
  225. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/blake2b.rst +0 -0
  226. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/blake2s.rst +0 -0
  227. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/cmac.rst +0 -0
  228. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/cshake128.rst +0 -0
  229. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/cshake256.rst +0 -0
  230. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/hash.rst +0 -0
  231. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/hashing.png +0 -0
  232. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/hashing.xml +0 -0
  233. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/hmac.rst +0 -0
  234. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/k12.rst +0 -0
  235. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/keccak.rst +0 -0
  236. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/kmac128.rst +0 -0
  237. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/kmac256.rst +0 -0
  238. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/md2.rst +0 -0
  239. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/md4.rst +0 -0
  240. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/md5.rst +0 -0
  241. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/poly1305.rst +0 -0
  242. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/ripemd160.rst +0 -0
  243. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/sha1.rst +0 -0
  244. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/shake128.rst +0 -0
  245. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/shake256.rst +0 -0
  246. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/tuplehash128.rst +0 -0
  247. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/tuplehash256.rst +0 -0
  248. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/turboshake.rst +0 -0
  249. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/xof.png +0 -0
  250. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/hash/xof.xml +0 -0
  251. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/installation.rst +0 -0
  252. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/introduction.rst +0 -0
  253. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/io/io.rst +0 -0
  254. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/io/kdf_limits.rst +0 -0
  255. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/io/pem.rst +0 -0
  256. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/license.rst +0 -0
  257. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/protocol/dh.png +0 -0
  258. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/protocol/dh.rst +0 -0
  259. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/protocol/hpke.png +0 -0
  260. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/protocol/hpkeAUTH.png +0 -0
  261. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/protocol/hpkePSK.png +0 -0
  262. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/protocol/kdf.rst +0 -0
  263. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/protocol/protocol.rst +0 -0
  264. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/protocol/ss.rst +0 -0
  265. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/public_key/dsa.rst +0 -0
  266. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/public_key/ecc.rst +0 -0
  267. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/public_key/elgamal.rst +0 -0
  268. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/public_key/rsa.rst +0 -0
  269. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/random/random.rst +0 -0
  270. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/signature/dsa.rst +0 -0
  271. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/signature/eddsa.rst +0 -0
  272. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/signature/pkcs1_pss.rst +0 -0
  273. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/signature/pkcs1_v1_5.rst +0 -0
  274. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/util/asn1.rst +0 -0
  275. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/util/counter_be.png +0 -0
  276. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/util/counter_be.xml +0 -0
  277. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/util/counter_le.png +0 -0
  278. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/util/counter_le.xml +0 -0
  279. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/Doc/src/util/util.rst +0 -0
  280. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/INSTALL.rst +0 -0
  281. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/AES.py +0 -0
  282. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/ARC2.py +0 -0
  283. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/ARC4.py +0 -0
  284. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/Blowfish.py +0 -0
  285. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/CAST.py +0 -0
  286. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/ChaCha20.py +0 -0
  287. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/ChaCha20_Poly1305.py +0 -0
  288. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/DES.py +0 -0
  289. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/DES3.py +0 -0
  290. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/PKCS1_OAEP.py +0 -0
  291. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/PKCS1_v1_5.py +0 -0
  292. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/Salsa20.py +0 -0
  293. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_EKSBlowfish.py +0 -0
  294. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/__init__.py +0 -0
  295. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_cbc.py +0 -0
  296. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_ccm.py +0 -0
  297. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_cfb.py +0 -0
  298. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_ctr.py +0 -0
  299. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_eax.py +0 -0
  300. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_ecb.py +0 -0
  301. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_gcm.py +0 -0
  302. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_kw.py +0 -0
  303. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_kwp.py +0 -0
  304. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_ocb.py +0 -0
  305. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_ofb.py +0 -0
  306. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_openpgp.py +0 -0
  307. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_mode_siv.py +0 -0
  308. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_pkcs1_oaep_decode.py +0 -0
  309. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/_state_machine.py +0 -0
  310. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Cipher/oaep.py +0 -0
  311. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/BLAKE2b.py +0 -0
  312. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/BLAKE2s.py +0 -0
  313. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/CMAC.py +0 -0
  314. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/HMAC.py +0 -0
  315. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/KMAC128.py +0 -0
  316. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/KMAC256.py +0 -0
  317. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/KangarooTwelve.py +0 -0
  318. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/MD2.py +0 -0
  319. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/MD4.py +0 -0
  320. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/MD5.py +0 -0
  321. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/Poly1305.py +0 -0
  322. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/RIPEMD.py +0 -0
  323. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/RIPEMD160.py +0 -0
  324. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA.py +0 -0
  325. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHA1.py +0 -0
  326. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHAKE128.py +0 -0
  327. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/SHAKE256.py +0 -0
  328. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/TupleHash128.py +0 -0
  329. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/TupleHash256.py +0 -0
  330. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/TurboSHAKE128.py +0 -0
  331. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/TurboSHAKE256.py +0 -0
  332. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/__init__.py +0 -0
  333. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/cSHAKE128.py +0 -0
  334. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Hash/cSHAKE256.py +0 -0
  335. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/IO/PEM.py +0 -0
  336. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/IO/_PBES.py +0 -0
  337. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/IO/__init__.py +0 -0
  338. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Math/Numbers.py +0 -0
  339. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Math/Primality.py +0 -0
  340. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Math/_IntegerBase.py +0 -0
  341. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Math/_IntegerNat.py +0 -0
  342. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Math/_IntegerNative.py +0 -0
  343. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Math/__init__.py +0 -0
  344. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Protocol/DH.py +0 -0
  345. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Protocol/KDF.py +0 -0
  346. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Protocol/SecretSharing.py +0 -0
  347. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Protocol/__init__.py +0 -0
  348. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/DSA.py +0 -0
  349. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/ElGamal.py +0 -0
  350. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/RSA.py +0 -0
  351. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/__init__.py +0 -0
  352. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/_curve.py +0 -0
  353. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/_ec_lib.py +0 -0
  354. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/_edwards.py +0 -0
  355. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/_montgomery.py +0 -0
  356. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/_nist_ecc.py +0 -0
  357. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/_openssh.py +0 -0
  358. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/PublicKey/_point.py +0 -0
  359. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Random/__init__.py +0 -0
  360. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Random/random.py +0 -0
  361. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/__init__.py +0 -0
  362. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/common.py +0 -0
  363. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_AES.py +0 -0
  364. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_ARC2.py +0 -0
  365. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_ARC4.py +0 -0
  366. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_Blowfish.py +0 -0
  367. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_CAST.py +0 -0
  368. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_CBC.py +0 -0
  369. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_CCM.py +0 -0
  370. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_CFB.py +0 -0
  371. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_CTR.py +0 -0
  372. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_ChaCha20.py +0 -0
  373. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py +0 -0
  374. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_DES.py +0 -0
  375. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_DES3.py +0 -0
  376. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_EAX.py +0 -0
  377. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_GCM.py +0 -0
  378. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_OCB.py +0 -0
  379. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_OFB.py +0 -0
  380. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_OpenPGP.py +0 -0
  381. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_SIV.py +0 -0
  382. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_Salsa20.py +0 -0
  383. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_message_too_long.py +0 -0
  384. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py +0 -0
  385. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Cipher/test_shared_objects.py +0 -0
  386. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/__init__.py +0 -0
  387. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_BLAKE2.py +0 -0
  388. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_CMAC.py +0 -0
  389. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_HMAC.py +0 -0
  390. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_KMAC.py +0 -0
  391. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_KangarooTwelve.py +0 -0
  392. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_MD2.py +0 -0
  393. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_MD4.py +0 -0
  394. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_MD5.py +0 -0
  395. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_Poly1305.py +0 -0
  396. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_RIPEMD160.py +0 -0
  397. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHA1.py +0 -0
  398. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHA384.py +0 -0
  399. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHA3_224.py +0 -0
  400. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHA3_256.py +0 -0
  401. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHA3_384.py +0 -0
  402. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHA3_512.py +0 -0
  403. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHA512.py +0 -0
  404. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_SHAKE.py +0 -0
  405. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_TupleHash.py +0 -0
  406. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_TurboSHAKE.py +0 -0
  407. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_cSHAKE.py +0 -0
  408. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_keccak.py +0 -0
  409. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Hash/test_shared_objects.py +0 -0
  410. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/IO/__init__.py +0 -0
  411. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/IO/test_PBES.py +0 -0
  412. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Math/__init__.py +0 -0
  413. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Math/test_Numbers.py +0 -0
  414. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Math/test_Primality.py +0 -0
  415. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Math/test_nat.py +0 -0
  416. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Protocol/__init__.py +0 -0
  417. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Protocol/test_KDF.py +0 -0
  418. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Protocol/test_SecretSharing.py +0 -0
  419. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Protocol/test_rfc1751.py +0 -0
  420. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/__init__.py +0 -0
  421. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_DSA.py +0 -0
  422. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_ECC_Curve25519.py +0 -0
  423. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_ECC_Curve448.py +0 -0
  424. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_ECC_Ed25519.py +0 -0
  425. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_ECC_Ed448.py +0 -0
  426. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_ECC_NIST.py +0 -0
  427. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_ElGamal.py +0 -0
  428. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_RSA.py +0 -0
  429. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_import_Curve25519.py +0 -0
  430. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_import_Curve448.py +0 -0
  431. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_import_DSA.py +0 -0
  432. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_import_RSA.py +0 -0
  433. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/PublicKey/test_import_passphrase.py +0 -0
  434. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Random/__init__.py +0 -0
  435. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Random/test_random.py +0 -0
  436. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Signature/__init__.py +0 -0
  437. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/__init__.py +0 -0
  438. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/test_Counter.py +0 -0
  439. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/test_Padding.py +0 -0
  440. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/test_cpu_features.py +0 -0
  441. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/test_number.py +0 -0
  442. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/test_raw_api.py +0 -0
  443. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/test_rfc1751.py +0 -0
  444. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/test_strxor.py +0 -0
  445. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/Util/test_threads.py +0 -0
  446. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/__init__.py +0 -0
  447. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/__main__.py +0 -0
  448. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/plugin.py +0 -0
  449. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/SelfTest/st_common.py +0 -0
  450. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Signature/DSS.py +0 -0
  451. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Signature/PKCS1_PSS.py +0 -0
  452. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Signature/PKCS1_v1_5.py +0 -0
  453. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Signature/eddsa.py +0 -0
  454. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Signature/pkcs1_15.py +0 -0
  455. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Signature/pss.py +0 -0
  456. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/Counter.py +0 -0
  457. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/Padding.py +0 -0
  458. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/RFC1751.py +0 -0
  459. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/__init__.py +0 -0
  460. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/_bytes.py +0 -0
  461. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/_cpu_features.py +0 -0
  462. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/_file_system.py +0 -0
  463. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/_raw_api.py +0 -0
  464. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/_threads.py +0 -0
  465. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/number.py +0 -0
  466. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/Util/strxor.py +0 -0
  467. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/Crypto/py.typed +0 -0
  468. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/pycryptodome.egg-info/dependency_links.txt +0 -0
  469. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/pycryptodome.egg-info/requires.txt +0 -0
  470. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/lib/pycryptodome.egg-info/top_level.txt +0 -0
  471. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/pct-speedtest.py +0 -0
  472. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/setup.cfg +0 -0
  473. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/AES.c +0 -0
  474. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/AESNI.c +0 -0
  475. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ARC2.c +0 -0
  476. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ARC4.c +0 -0
  477. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/CAST.c +0 -0
  478. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/DES.c +0 -0
  479. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/DES3.c +0 -0
  480. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/MD2.c +0 -0
  481. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/MD4.c +0 -0
  482. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/MD5.c +0 -0
  483. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/RIPEMD160.c +0 -0
  484. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/SHA1.c +0 -0
  485. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/SHA224.c +0 -0
  486. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/SHA224_shani.c +0 -0
  487. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/SHA256.c +0 -0
  488. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/SHA256_shani.c +0 -0
  489. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/SHA384.c +0 -0
  490. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/SHA512.c +0 -0
  491. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/Salsa20.c +0 -0
  492. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/Salsa20_avx2_bmi2.c +0 -0
  493. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/blake2.c +0 -0
  494. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/blake2b.c +0 -0
  495. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/blake2s.c +0 -0
  496. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/block_base.h +0 -0
  497. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/block_common.c +0 -0
  498. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/blowfish.c +0 -0
  499. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/blowfish_eks.c +0 -0
  500. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/blowfish_init.c +0 -0
  501. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/cast5.c +0 -0
  502. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/chacha20.c +0 -0
  503. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/chacha20_avx2_bmi2.c +0 -0
  504. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/common.h +0 -0
  505. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/cpuid.c +0 -0
  506. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/curve25519.c +0 -0
  507. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/curve25519.h +0 -0
  508. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/curve448.c +0 -0
  509. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/curve448.h +0 -0
  510. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/des_tables.h +0 -0
  511. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ec_common.c +0 -0
  512. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ec_common.h +0 -0
  513. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ec_field.h +0 -0
  514. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ec_nat.c +0 -0
  515. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ec_nat.h +0 -0
  516. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ec_nat_bmi2_adx.c +0 -0
  517. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ec_nat_module.c +0 -0
  518. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ec_special.h +0 -0
  519. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ed25519.c +0 -0
  520. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ed25519.h +0 -0
  521. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ed25519_perf.c +0 -0
  522. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ed25519_table.h +0 -0
  523. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ed448.c +0 -0
  524. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ed448.h +0 -0
  525. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/endianess.h +0 -0
  526. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/errors.h +0 -0
  527. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ghash_clmul.c +0 -0
  528. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/ghash_portable.c +0 -0
  529. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/k12.c +0 -0
  530. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/k12_avx2_bmi2.c +0 -0
  531. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/keccak_avx2_bmi2.c +0 -0
  532. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/keccak_x4_avx2.c +0 -0
  533. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/mod25519.c +0 -0
  534. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/nat.c +0 -0
  535. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/nat.h +0 -0
  536. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/nat_bmi2_adx.c +0 -0
  537. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/nat_ct.h +0 -0
  538. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/nat_div.c +0 -0
  539. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/nat_gcd.c +0 -0
  540. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/nat_prime.c +0 -0
  541. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/nat_rows.c +0 -0
  542. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/pkcs1_decode.c +0 -0
  543. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/poly1305.c +0 -0
  544. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/raw_cbc.c +0 -0
  545. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/raw_cfb.c +0 -0
  546. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/raw_ctr.c +0 -0
  547. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/raw_ecb.c +0 -0
  548. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/raw_ocb.c +0 -0
  549. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/raw_ofb.c +0 -0
  550. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/salsa20_core.h +0 -0
  551. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/scrypt.c +0 -0
  552. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/siphash.h +0 -0
  553. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/sse2_unaligned.h +0 -0
  554. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/strxor.c +0 -0
  555. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/CMakeLists.txt +0 -0
  556. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/README.txt +0 -0
  557. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/common.py +0 -0
  558. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/ec_group_tests.c +0 -0
  559. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/make_tests_ladder_step.py +0 -0
  560. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/make_tests_mul_25519.py +0 -0
  561. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/make_tests_poly1305_accumulate.py +0 -0
  562. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/make_tests_poly1305_load_m.py +0 -0
  563. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/make_tests_poly1305_load_r.py +0 -0
  564. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/make_tests_poly1305_multiply.py +0 -0
  565. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/make_tests_poly1305_reduce.py +0 -0
  566. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_aesni.c +0 -0
  567. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_chacha20.c +0 -0
  568. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_clmul.c +0 -0
  569. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_curve25519.c +0 -0
  570. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_curve25519_ct.c +0 -0
  571. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_curve448.c +0 -0
  572. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_des_ct.c +0 -0
  573. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_ec_common.c +0 -0
  574. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_ec_nat.c +0 -0
  575. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_ec_nat_ct.c +0 -0
  576. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_ed25519.c +0 -0
  577. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_ed25519_ct.c +0 -0
  578. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_ed448.c +0 -0
  579. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_endianess.c +0 -0
  580. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_ghash.c +0 -0
  581. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_mod25519.c +0 -0
  582. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_nat.c +0 -0
  583. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_nat_ct.c +0 -0
  584. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_pkcs1.c +0 -0
  585. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_raw_ctr.c +0 -0
  586. {pycryptodome-4.0.1 → pycryptodome-4.2.0}/src/test/test_salsa20.c +0 -0
@@ -62,9 +62,9 @@ jobs:
62
62
 
63
63
  # The same tests with the portable build of the big integer code (and
64
64
  # of the NIST curves)
65
- # (once per Python API: ctypes and cffi)
65
+ # (once, with ctypes: the Python API does not matter here)
66
66
  - name: Test the portable build of the big integer code
67
- if: runner.arch == 'X64' && matrix.python-version == '3.15'
67
+ if: runner.arch == 'X64' && matrix.python-version == '3.15' && matrix.cffi == 'no'
68
68
  shell: bash
69
69
  env:
70
70
  PYCRYPTODOME_DISABLE_BMI2_ADX: 1
@@ -1,7 +1,55 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
- 4.0.1(17 October 2026)
4
+ 4.2.0 (24 October 2026)
5
+ ++++++++++++++++++++++++++
6
+
7
+ New features
8
+ ------------
9
+ * New module ``Crypto.PublicKey.MLKEM``, for ML-KEM keys (FIPS 203).
10
+ It is based on the portable C code of
11
+ `mlkem-native <https://github.com/pq-code-package/mlkem-native>`_ (v2.0.0),
12
+ with the Keccak code of PyCryptodome, also compiled for AVX2 and BMI2 (with 4-way SHA-3).
13
+ The keys can be exported and imported as PKCS#8 DER or PEM files.
14
+ * New module ``Crypto.PublicKey.Hybrid``, to model hybrid keys (post-quantum + traditional).
15
+ It supports the hybrid KEM MLKEM768-X25519 (X-Wing), which combines ML-KEM-768 and X25519.
16
+ For now, hybrid keys can only be generated and used with HPKE: they cannot be exported or imported.
17
+ * ``Crypto.Protocol.HPKE`` accepts ML-KEM keys and X-Wing keys,
18
+ for post-quantum HPKE (draft-ietf-hpke-pq), in the Base and PSK modes.
19
+
20
+ 4.1.0 (19 October 2026)
21
+ ++++++++++++++++++++++++++
22
+
23
+ New features
24
+ ------------
25
+ * New module ``Crypto.PublicKey.MLDSA``, for ML-DSA keys (FIPS 204).
26
+ It is based on the portable C code of `mldsa-native <https://github.com/pq-code-package/mldsa-native>`_
27
+ (v2.0.0), with the Keccak code of PyCryptodome. On CPUs with AVX2 and BMI2, a version
28
+ compiled for them and with 4-way SHA-3 is used: compared to the portable version,
29
+ key generation and verification are 30-45% faster, signing 15-30%.
30
+ * New module ``Crypto.Signature.mldsa``, for ML-DSA and HashML-DSA signatures (FIPS 204),
31
+ hedged (default) or deterministic, with an optional context.
32
+ The new ``MLDSAMuHash`` computes the message representative mu (external mu),
33
+ to sign or verify a large message in pieces.
34
+ * New function ``digest()`` in the modules of the SHA-2 and SHA-3 hashes,
35
+ to hash a whole message with a single call,
36
+ like ``Crypto.Hash.KangarooTwelve.digest()``. For messages up to 1 KiB,
37
+ it is 1.5x to 3.4x faster than ``new()`` followed by ``digest()``.
38
+ * ``Crypto.IO.PKCS8.wrap()`` has a new parameter ``public_key``, to create a ``OneAsymmetricKey``
39
+ version 2 (RFC 5958) with the field ``publicKey``.
40
+ ``Crypto.IO.PKCS8.unwrap()`` returns an ``UnwrappedKey``: still a tuple ``(oid, private_key, params)``,
41
+ with the same items as attributes, plus ``public_key`` (the field ``publicKey``, if present).
42
+ * The scalar Keccak permutation (used by SHA-3, SHAKE, cSHAKE, KMAC, TupleHash, TurboSHAKE
43
+ and KangarooTwelve) processes the state one plane at a time, two rounds per iteration,
44
+ which needs fewer registers: SHA-3 and SHAKE are 5-10% faster.
45
+
46
+ Resolved issues
47
+ ---------------
48
+ * ``Crypto.PublicKey.ECC.import_key()`` checks that the field ``publicKey`` of a PKCS#8
49
+ ``OneAsymmetricKey`` version 2 (RFC 5958), if present, matches the private key.
50
+ Before, it was ignored.
51
+
52
+ 4.0.1 (17 October 2026)
5
53
  ++++++++++++++++++++++++++
6
54
 
7
55
  New features
@@ -7,3 +7,9 @@
7
7
  border: none;
8
8
  padding: 0;
9
9
  }
10
+
11
+ /* The logo at the top of the sidebar is square: keep it from taking the full
12
+ width of the sidebar, which would push the navigation down */
13
+ .sidebar-logo {
14
+ width: 160px;
15
+ }
@@ -0,0 +1,20 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">
2
+ <style>
3
+ @media (prefers-color-scheme: dark) {
4
+ .background, .keyhole { fill: #5D76A9; }
5
+ .lock { fill: #12173F; }
6
+ .tongue { stroke: #12173F; }
7
+ }
8
+ </style>
9
+ <rect class="background" width="256" height="256" rx="52" fill="#12173F"/>
10
+ <g transform="translate(128 128) scale(1.25) translate(-130 -126)">
11
+ <path d="M72 164 C 86 164, 98 158, 98 146 V94 a30 30 0 0 1 60 0 V140 C 158 154, 168 158, 186 158" fill="none" stroke="#F5B112" stroke-width="16" stroke-linecap="round"/>
12
+ <path d="M76 156 C 58 156, 44 150, 36 130 C 40 154, 56 172, 76 172 Z" fill="#F5B112"/>
13
+ <path d="M180 149 C 194 145, 208 149, 212 158 C 208 167, 194 171, 180 167 Z" fill="#F5B112"/>
14
+ <circle cx="201" cy="154" r="2.8" fill="#12173F"/>
15
+ <path class="tongue" d="M212 158 H220 M220 158 L225 154 M220 158 L225 162" fill="none" stroke="#5D76A9" stroke-width="2.2" stroke-linecap="round"/>
16
+ <rect class="lock" x="76" y="110" width="104" height="76" rx="14" fill="#5D76A9"/>
17
+ <circle class="keyhole" cx="128" cy="140" r="11" fill="#12173F"/>
18
+ <rect class="keyhole" x="123" y="144" width="10" height="22" rx="4" fill="#12173F"/>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,16 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="PyCryptodome">
2
+ <title>PyCryptodome</title>
3
+ <rect width="256" height="256" rx="52" fill="#5D76A9"/>
4
+ <g transform="translate(130 126) scale(1.12) translate(-130 -126)">
5
+ <path d="M72 164 C 86 164, 98 158, 98 146 V94 a30 30 0 0 1 60 0 V140 C 158 154, 168 158, 186 158" fill="none" stroke="#F5B112" stroke-width="16" stroke-linecap="round"/>
6
+ <path d="M76 156 C 58 156, 44 150, 36 130 C 40 154, 56 172, 76 172 Z" fill="#F5B112"/>
7
+ <path d="M180 149 C 194 145, 208 149, 212 158 C 208 167, 194 171, 180 167 Z" fill="#F5B112"/>
8
+ <circle cx="201" cy="154" r="2.8" fill="#12173F"/>
9
+ <path class="tongue" d="M212 158 H220 M220 158 L225 154 M220 158 L225 162" fill="none" stroke="#12173F" stroke-width="2.2" stroke-linecap="round"/>
10
+ <rect class="lock" x="76" y="110" width="104" height="76" rx="14" fill="#12173F"/>
11
+ <circle class="keyhole" cx="128" cy="140" r="11" fill="#5D76A9"/>
12
+ <rect class="keyhole" x="123" y="144" width="10" height="22" rx="4" fill="#5D76A9"/>
13
+ </g>
14
+ <rect x="38" y="201" width="180" height="34" rx="17" fill="#12173F"/>
15
+ <path d="M50.49 227.96V211.9H53.18V214.12Q53.51 212.98 54.37 212.33Q55.22 211.68 56.5 211.68Q57.67 211.68 58.56 212.25Q59.45 212.82 59.94 213.87Q60.44 214.91 60.44 216.3V219.58Q60.44 221.67 59.36 222.94Q58.28 224.22 56.5 224.22Q55.22 224.22 54.36 223.56Q53.49 222.9 53.16 221.71L53.24 224.57V227.96ZM55.47 221.84Q56.52 221.84 57.11 221.27Q57.69 220.7 57.69 219.51V216.39Q57.69 215.2 57.11 214.63Q56.52 214.06 55.47 214.06Q54.41 214.06 53.83 214.69Q53.24 215.33 53.24 216.5V219.4Q53.24 220.57 53.83 221.21Q54.41 221.84 55.47 221.84ZM65.63 227.96 67.35 223.34 62.79 211.9H65.7L68.03 218.08Q68.23 218.63 68.42 219.28Q68.62 219.93 68.71 220.48Q68.78 219.93 68.96 219.28Q69.15 218.63 69.35 218.08L71.5 211.9H74.41L68.51 227.96ZM82 224.22Q80.44 224.22 79.28 223.64Q78.13 223.05 77.49 221.99Q76.85 220.92 76.85 219.47V216.43Q76.85 214.98 77.49 213.91Q78.13 212.85 79.28 212.26Q80.44 211.68 82 211.68Q84.26 211.68 85.64 212.86Q87.01 214.03 87.08 216.06H84.37Q84.31 215.11 83.66 214.59Q83.01 214.08 82 214.08Q80.88 214.08 80.24 214.68Q79.6 215.29 79.6 216.41V219.47Q79.6 220.59 80.24 221.21Q80.88 221.82 82 221.82Q83.03 221.82 83.67 221.31Q84.31 220.79 84.37 219.84H87.08Q87.01 221.87 85.64 223.04Q84.26 224.22 82 224.22ZM90.53 224V211.9H93.22V214.25Q93.44 213.07 94.31 212.37Q95.18 211.68 96.56 211.68Q98.41 211.68 99.44 212.87Q100.48 214.06 100.48 216.19V217.33H97.73V216.32Q97.73 215.22 97.16 214.64Q96.58 214.06 95.53 214.06Q94.43 214.06 93.86 214.72Q93.28 215.38 93.28 216.59V224ZM105.23 227.96 106.95 223.34 102.39 211.9H105.3L107.63 218.08Q107.83 218.63 108.02 219.28Q108.22 219.93 108.31 220.48Q108.38 219.93 108.56 219.28Q108.75 218.63 108.95 218.08L111.1 211.9H114.01L108.11 227.96ZM116.49 227.96V211.9H119.18V214.12Q119.51 212.98 120.37 212.33Q121.22 211.68 122.5 211.68Q123.67 211.68 124.56 212.25Q125.45 212.82 125.94 213.87Q126.44 214.91 126.44 216.3V219.58Q126.44 221.67 125.36 222.94Q124.28 224.22 122.5 224.22Q121.22 224.22 120.36 223.56Q119.49 222.9 119.16 221.71L119.24 224.57V227.96ZM121.47 221.84Q122.52 221.84 123.11 221.27Q123.69 220.7 123.69 219.51V216.39Q123.69 215.2 123.11 214.63Q122.52 214.06 121.47 214.06Q120.41 214.06 119.83 214.69Q119.24 215.33 119.24 216.5V219.4Q119.24 220.57 119.83 221.21Q120.41 221.84 121.47 221.84ZM135.81 224Q134.12 224 133.12 223.02Q132.11 222.04 132.11 220.37V214.39H128.77V211.9H132.11V208.49H134.89V211.9H139.7V214.39H134.89V220.3Q134.89 220.83 135.18 221.17Q135.48 221.51 136.01 221.51H139.59V224ZM147.8 224.2Q145.47 224.2 144.1 222.89Q142.74 221.58 142.74 219.36V216.54Q142.74 214.3 144.1 213Q145.47 211.7 147.8 211.7Q150.13 211.7 151.5 213Q152.86 214.3 152.86 216.54V219.36Q152.86 221.58 151.5 222.89Q150.13 224.2 147.8 224.2ZM147.8 221.8Q148.9 221.8 149.5 221.19Q150.11 220.59 150.11 219.45V216.45Q150.11 215.31 149.5 214.7Q148.9 214.1 147.8 214.1Q146.7 214.1 146.1 214.7Q145.49 215.31 145.49 216.45V219.45Q145.49 220.59 146.1 221.19Q146.7 221.8 147.8 221.8ZM159.9 224.22Q158.14 224.22 157.05 222.97Q155.96 221.71 155.96 219.6V216.32Q155.96 214.19 157.04 212.93Q158.12 211.68 159.9 211.68Q161.15 211.68 162.02 212.32Q162.89 212.96 163.24 214.1L163.16 211.33V207.94H165.91V224H163.22V221.8Q162.89 222.94 162.03 223.58Q161.18 224.22 159.9 224.22ZM160.93 221.84Q161.99 221.84 162.57 221.21Q163.16 220.57 163.16 219.4V216.5Q163.16 215.33 162.57 214.69Q161.99 214.06 160.93 214.06Q159.88 214.06 159.3 214.63Q158.71 215.2 158.71 216.39V219.51Q158.71 220.7 159.3 221.27Q159.88 221.84 160.93 221.84ZM174.2 224.2Q171.87 224.2 170.5 222.89Q169.14 221.58 169.14 219.36V216.54Q169.14 214.3 170.5 213Q171.87 211.7 174.2 211.7Q176.53 211.7 177.9 213Q179.26 214.3 179.26 216.54V219.36Q179.26 221.58 177.9 222.89Q176.53 224.2 174.2 224.2ZM174.2 221.8Q175.3 221.8 175.9 221.19Q176.51 220.59 176.51 219.45V216.45Q176.51 215.31 175.9 214.7Q175.3 214.1 174.2 214.1Q173.1 214.1 172.5 214.7Q171.89 215.31 171.89 216.45V219.45Q171.89 220.59 172.5 221.19Q173.1 221.8 174.2 221.8ZM181.83 224V211.9H184.12V213.66H184.19Q184.25 212.78 184.8 212.23Q185.35 211.68 186.19 211.68Q187 211.68 187.58 212.2Q188.15 212.71 188.35 213.59Q188.43 212.71 188.99 212.2Q189.56 211.68 190.41 211.68Q191.51 211.68 192.24 212.55Q192.97 213.42 192.97 214.78V224H190.55V214.98Q190.55 214.39 190.27 214.05Q190 213.7 189.49 213.7Q188.5 213.7 188.5 214.98V224H186.3V214.98Q186.3 214.39 186.05 214.05Q185.79 213.7 185.31 213.7Q184.25 213.7 184.25 214.98V224ZM200.62 224.22Q199.08 224.22 197.94 223.63Q196.79 223.03 196.17 221.94Q195.54 220.85 195.54 219.38V216.52Q195.54 215.05 196.17 213.96Q196.79 212.87 197.94 212.27Q199.08 211.68 200.62 211.68Q202.14 211.68 203.27 212.27Q204.41 212.87 205.03 213.94Q205.66 215 205.66 216.43V218.63H198.18V219.47Q198.18 220.7 198.82 221.33Q199.46 221.95 200.62 221.95Q201.48 221.95 202.08 221.66Q202.69 221.36 202.8 220.79H205.53Q205.24 222.35 203.9 223.28Q202.56 224.22 200.62 224.22ZM198.18 216.43V216.85L203.02 216.83V216.41Q203.02 215.16 202.4 214.47Q201.79 213.79 200.62 213.79Q199.41 213.79 198.8 214.49Q198.18 215.18 198.18 216.43Z" fill="#F5B112"/>
16
+ </svg>
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="PyCryptodome">
2
+ <title>PyCryptodome</title>
3
+ <rect width="256" height="256" rx="52" fill="#12173F"/>
4
+ <g transform="translate(130 126) scale(1.12) translate(-130 -126)">
5
+ <path d="M72 164 C 86 164, 98 158, 98 146 V94 a30 30 0 0 1 60 0 V140 C 158 154, 168 158, 186 158" fill="none" stroke="#F5B112" stroke-width="16" stroke-linecap="round"/>
6
+ <path d="M76 156 C 58 156, 44 150, 36 130 C 40 154, 56 172, 76 172 Z" fill="#F5B112"/>
7
+ <path d="M180 149 C 194 145, 208 149, 212 158 C 208 167, 194 171, 180 167 Z" fill="#F5B112"/>
8
+ <circle cx="201" cy="154" r="2.8" fill="#12173F"/>
9
+ <path class="tongue" d="M212 158 H220 M220 158 L225 154 M220 158 L225 162" fill="none" stroke="#5D76A9" stroke-width="2.2" stroke-linecap="round"/>
10
+ <rect class="lock" x="76" y="110" width="104" height="76" rx="14" fill="#5D76A9"/>
11
+ <circle class="keyhole" cx="128" cy="140" r="11" fill="#12173F"/>
12
+ <rect class="keyhole" x="123" y="144" width="10" height="22" rx="4" fill="#12173F"/>
13
+ </g>
14
+ <path d="M50.49 227.96V211.9H53.18V214.12Q53.51 212.98 54.37 212.33Q55.22 211.68 56.5 211.68Q57.67 211.68 58.56 212.25Q59.45 212.82 59.94 213.87Q60.44 214.91 60.44 216.3V219.58Q60.44 221.67 59.36 222.94Q58.28 224.22 56.5 224.22Q55.22 224.22 54.36 223.56Q53.49 222.9 53.16 221.71L53.24 224.57V227.96ZM55.47 221.84Q56.52 221.84 57.11 221.27Q57.69 220.7 57.69 219.51V216.39Q57.69 215.2 57.11 214.63Q56.52 214.06 55.47 214.06Q54.41 214.06 53.83 214.69Q53.24 215.33 53.24 216.5V219.4Q53.24 220.57 53.83 221.21Q54.41 221.84 55.47 221.84ZM65.63 227.96 67.35 223.34 62.79 211.9H65.7L68.03 218.08Q68.23 218.63 68.42 219.28Q68.62 219.93 68.71 220.48Q68.78 219.93 68.96 219.28Q69.15 218.63 69.35 218.08L71.5 211.9H74.41L68.51 227.96ZM82 224.22Q80.44 224.22 79.28 223.64Q78.13 223.05 77.49 221.99Q76.85 220.92 76.85 219.47V216.43Q76.85 214.98 77.49 213.91Q78.13 212.85 79.28 212.26Q80.44 211.68 82 211.68Q84.26 211.68 85.64 212.86Q87.01 214.03 87.08 216.06H84.37Q84.31 215.11 83.66 214.59Q83.01 214.08 82 214.08Q80.88 214.08 80.24 214.68Q79.6 215.29 79.6 216.41V219.47Q79.6 220.59 80.24 221.21Q80.88 221.82 82 221.82Q83.03 221.82 83.67 221.31Q84.31 220.79 84.37 219.84H87.08Q87.01 221.87 85.64 223.04Q84.26 224.22 82 224.22ZM90.53 224V211.9H93.22V214.25Q93.44 213.07 94.31 212.37Q95.18 211.68 96.56 211.68Q98.41 211.68 99.44 212.87Q100.48 214.06 100.48 216.19V217.33H97.73V216.32Q97.73 215.22 97.16 214.64Q96.58 214.06 95.53 214.06Q94.43 214.06 93.86 214.72Q93.28 215.38 93.28 216.59V224ZM105.23 227.96 106.95 223.34 102.39 211.9H105.3L107.63 218.08Q107.83 218.63 108.02 219.28Q108.22 219.93 108.31 220.48Q108.38 219.93 108.56 219.28Q108.75 218.63 108.95 218.08L111.1 211.9H114.01L108.11 227.96ZM116.49 227.96V211.9H119.18V214.12Q119.51 212.98 120.37 212.33Q121.22 211.68 122.5 211.68Q123.67 211.68 124.56 212.25Q125.45 212.82 125.94 213.87Q126.44 214.91 126.44 216.3V219.58Q126.44 221.67 125.36 222.94Q124.28 224.22 122.5 224.22Q121.22 224.22 120.36 223.56Q119.49 222.9 119.16 221.71L119.24 224.57V227.96ZM121.47 221.84Q122.52 221.84 123.11 221.27Q123.69 220.7 123.69 219.51V216.39Q123.69 215.2 123.11 214.63Q122.52 214.06 121.47 214.06Q120.41 214.06 119.83 214.69Q119.24 215.33 119.24 216.5V219.4Q119.24 220.57 119.83 221.21Q120.41 221.84 121.47 221.84ZM135.81 224Q134.12 224 133.12 223.02Q132.11 222.04 132.11 220.37V214.39H128.77V211.9H132.11V208.49H134.89V211.9H139.7V214.39H134.89V220.3Q134.89 220.83 135.18 221.17Q135.48 221.51 136.01 221.51H139.59V224ZM147.8 224.2Q145.47 224.2 144.1 222.89Q142.74 221.58 142.74 219.36V216.54Q142.74 214.3 144.1 213Q145.47 211.7 147.8 211.7Q150.13 211.7 151.5 213Q152.86 214.3 152.86 216.54V219.36Q152.86 221.58 151.5 222.89Q150.13 224.2 147.8 224.2ZM147.8 221.8Q148.9 221.8 149.5 221.19Q150.11 220.59 150.11 219.45V216.45Q150.11 215.31 149.5 214.7Q148.9 214.1 147.8 214.1Q146.7 214.1 146.1 214.7Q145.49 215.31 145.49 216.45V219.45Q145.49 220.59 146.1 221.19Q146.7 221.8 147.8 221.8ZM159.9 224.22Q158.14 224.22 157.05 222.97Q155.96 221.71 155.96 219.6V216.32Q155.96 214.19 157.04 212.93Q158.12 211.68 159.9 211.68Q161.15 211.68 162.02 212.32Q162.89 212.96 163.24 214.1L163.16 211.33V207.94H165.91V224H163.22V221.8Q162.89 222.94 162.03 223.58Q161.18 224.22 159.9 224.22ZM160.93 221.84Q161.99 221.84 162.57 221.21Q163.16 220.57 163.16 219.4V216.5Q163.16 215.33 162.57 214.69Q161.99 214.06 160.93 214.06Q159.88 214.06 159.3 214.63Q158.71 215.2 158.71 216.39V219.51Q158.71 220.7 159.3 221.27Q159.88 221.84 160.93 221.84ZM174.2 224.2Q171.87 224.2 170.5 222.89Q169.14 221.58 169.14 219.36V216.54Q169.14 214.3 170.5 213Q171.87 211.7 174.2 211.7Q176.53 211.7 177.9 213Q179.26 214.3 179.26 216.54V219.36Q179.26 221.58 177.9 222.89Q176.53 224.2 174.2 224.2ZM174.2 221.8Q175.3 221.8 175.9 221.19Q176.51 220.59 176.51 219.45V216.45Q176.51 215.31 175.9 214.7Q175.3 214.1 174.2 214.1Q173.1 214.1 172.5 214.7Q171.89 215.31 171.89 216.45V219.45Q171.89 220.59 172.5 221.19Q173.1 221.8 174.2 221.8ZM181.83 224V211.9H184.12V213.66H184.19Q184.25 212.78 184.8 212.23Q185.35 211.68 186.19 211.68Q187 211.68 187.58 212.2Q188.15 212.71 188.35 213.59Q188.43 212.71 188.99 212.2Q189.56 211.68 190.41 211.68Q191.51 211.68 192.24 212.55Q192.97 213.42 192.97 214.78V224H190.55V214.98Q190.55 214.39 190.27 214.05Q190 213.7 189.49 213.7Q188.5 213.7 188.5 214.98V224H186.3V214.98Q186.3 214.39 186.05 214.05Q185.79 213.7 185.31 213.7Q184.25 213.7 184.25 214.98V224ZM200.62 224.22Q199.08 224.22 197.94 223.63Q196.79 223.03 196.17 221.94Q195.54 220.85 195.54 219.38V216.52Q195.54 215.05 196.17 213.96Q196.79 212.87 197.94 212.27Q199.08 211.68 200.62 211.68Q202.14 211.68 203.27 212.27Q204.41 212.87 205.03 213.94Q205.66 215 205.66 216.43V218.63H198.18V219.47Q198.18 220.7 198.82 221.33Q199.46 221.95 200.62 221.95Q201.48 221.95 202.08 221.66Q202.69 221.36 202.8 220.79H205.53Q205.24 222.35 203.9 223.28Q202.56 224.22 200.62 224.22ZM198.18 216.43V216.85L203.02 216.83V216.41Q203.02 215.16 202.4 214.47Q201.79 213.79 200.62 213.79Q199.41 213.79 198.8 214.49Q198.18 215.18 198.18 216.43Z" fill="#E6EBF4"/>
15
+ </svg>
@@ -0,0 +1,10 @@
1
+ {%- extends "!base.html" %}
2
+
3
+ {#- The favicon: an SVG, which swaps its colors in dark mode, with a PNG fallback
4
+ for browsers without SVG favicons. The PNG comes first and declares its size,
5
+ so that browsers which support both choose the SVG. #}
6
+ {%- block extrahead %}
7
+ {{- super() }}
8
+ <link rel="icon" href="{{ pathto('_static/pycryptodome-favicon-32.png', 1) }}" sizes="32x32" type="image/png">
9
+ <link rel="icon" href="{{ pathto('_static/pycryptodome-favicon.svg', 1) }}" type="image/svg+xml">
10
+ {%- endblock %}
@@ -157,6 +157,11 @@ html_theme_options = {
157
157
  "top_of_page_buttons": ["view", "edit"],
158
158
  # Left and right arrows go to the previous and next page
159
159
  "navigation_with_keys": True,
160
+ # The logo at the top of the sidebar, which already contains the name.
161
+ # In dark mode, its two blues are swapped.
162
+ "light_logo": "pycryptodome-logo-light.svg",
163
+ "dark_logo": "pycryptodome-logo-dark.svg",
164
+ "sidebar_hide_name": True,
160
165
  # Teal, to tell this documentation apart from the many blue ones
161
166
  "light_css_variables": {
162
167
  "color-brand-primary": "#0f766e",
@@ -183,13 +188,11 @@ html_title = "PyCryptodome"
183
188
  # A shorter title for the navigation bar. Default is the same as html_title.
184
189
  # html_short_title = None
185
190
 
186
- # The name of an image file (relative to this directory) to place at the top
187
- # of the sidebar.
191
+ # The image at the top of the sidebar: see light_logo and dark_logo above
188
192
  # html_logo = None
189
193
 
190
- # The name of an image file (within the static path) to use as favicon of the
191
- # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
192
- # pixels large.
194
+ # The icon in the browser tab: see _templates/base.html, which adds an SVG
195
+ # (with the two blues swapped when the browser is in dark mode) and a PNG fallback
193
196
  # html_favicon = None
194
197
 
195
198
  # Add any paths that contain custom static files (such as style sheets) here,
@@ -76,6 +76,9 @@ only to enable backward compatibility where required by the applications.
76
76
  - RSA
77
77
  - ECC: NIST P-curves (P-192, P-224, P-256, P-384, P-521), Ed25519 and Ed448,
78
78
  Curve25519 (X25519) and Curve448 (X448)
79
+ - ML-DSA (FIPS 204): ML-DSA-44, ML-DSA-65 and ML-DSA-87
80
+ - ML-KEM (FIPS 203): ML-KEM-512, ML-KEM-768 and ML-KEM-1024
81
+ - Hybrid KEMs: MLKEM768-X25519 (X-Wing)
79
82
  - DSA
80
83
  - ElGamal (legacy)
81
84
 
@@ -98,6 +101,7 @@ only to enable backward compatibility where required by the applications.
98
101
  - RSASSA-PSS and RSASSA-PKCS1-v1_5 (PKCS#1)
99
102
  - DSA and ECDSA, with random nonces (FIPS 186-3) or deterministic nonces (RFC 6979)
100
103
  - EdDSA with Ed25519 and Ed448 (RFC 8032), including the pre-hashed variants
104
+ - ML-DSA and HashML-DSA (FIPS 204), hedged or deterministic
101
105
 
102
106
  * Key agreement:
103
107
 
@@ -115,7 +119,7 @@ only to enable backward compatibility where required by the applications.
115
119
 
116
120
  * Other cryptographic protocols:
117
121
 
118
- - HPKE (RFC 9180)
122
+ - HPKE (RFC 9180), also post-quantum with ML-KEM or the hybrid KEMs (draft-ietf-hpke-pq)
119
123
  - Shamir's secret sharing
120
124
  - Padding
121
125
 
@@ -10,6 +10,11 @@ It produces the 224 bit digest of a message.
10
10
  >>> h.update(b'Hello')
11
11
  >>> print(h.hexdigest())
12
12
 
13
+ If the whole message is available at once, :func:`Crypto.Hash.SHA224.digest`
14
+ returns the digest with a single call, which is faster for short messages::
15
+
16
+ >>> print(SHA224.digest(b'Hello').hex())
17
+
13
18
  *SHA* stands for Secure Hash Algorithm.
14
19
 
15
20
  .. _SHA-2: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
@@ -10,6 +10,11 @@ It produces the 256 bit digest of a message.
10
10
  >>> h.update(b'Hello')
11
11
  >>> print(h.hexdigest())
12
12
 
13
+ If the whole message is available at once, :func:`Crypto.Hash.SHA256.digest`
14
+ returns the digest with a single call, which is faster for short messages::
15
+
16
+ >>> print(SHA256.digest(b'Hello').hex())
17
+
13
18
  *SHA* stands for Secure Hash Algorithm.
14
19
 
15
20
  .. warning::
@@ -18,6 +18,11 @@ This is an example showing how to use SHA-384:
18
18
  >>> h.update(b'Hello')
19
19
  >>> print(h.hexdigest())
20
20
 
21
+ If the whole message is available at once, :func:`Crypto.Hash.SHA384.digest`
22
+ returns the digest with a single call, which is faster for short messages::
23
+
24
+ >>> print(SHA384.digest(b'Hello').hex())
25
+
21
26
  *SHA* stands for Secure Hash Algorithm.
22
27
 
23
28
  SHA-384 is **not** vulnerable to `length-extension attacks <https://crypto.stackexchange.com/questions/3978/understanding-the-length-extension-attack>`_.
@@ -12,6 +12,11 @@ The hash function produces the 224 bit digest of a message::
12
12
  >>> h_obj.update(b'Some data')
13
13
  >>> print(h_obj.hexdigest())
14
14
 
15
+ If the whole message is available at once, :func:`Crypto.Hash.SHA3_224.digest`
16
+ returns the digest with a single call, which is faster for short messages::
17
+
18
+ >>> print(SHA3_224.digest(b'Some data').hex())
19
+
15
20
  .. __: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
16
21
 
17
22
  *SHA* stands for Secure Hash Algorithm.
@@ -12,6 +12,11 @@ The hash function produces the 256 bit digest of a message::
12
12
  >>> h_obj.update(b'Some data')
13
13
  >>> print(h_obj.hexdigest())
14
14
 
15
+ If the whole message is available at once, :func:`Crypto.Hash.SHA3_256.digest`
16
+ returns the digest with a single call, which is faster for short messages::
17
+
18
+ >>> print(SHA3_256.digest(b'Some data').hex())
19
+
15
20
  .. __: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
16
21
 
17
22
  *SHA* stands for Secure Hash Algorithm.
@@ -12,6 +12,11 @@ The hash function produces the 384 bit digest of a message::
12
12
  >>> h_obj.update(b'Some data')
13
13
  >>> print(h_obj.hexdigest())
14
14
 
15
+ If the whole message is available at once, :func:`Crypto.Hash.SHA3_384.digest`
16
+ returns the digest with a single call, which is faster for short messages::
17
+
18
+ >>> print(SHA3_384.digest(b'Some data').hex())
19
+
15
20
  .. __: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
16
21
 
17
22
  *SHA* stands for Secure Hash Algorithm.
@@ -12,6 +12,11 @@ The hash function produces the 512 bit digest of a message::
12
12
  >>> h_obj.update(b'Some data')
13
13
  >>> print(h_obj.hexdigest())
14
14
 
15
+ If the whole message is available at once, :func:`Crypto.Hash.SHA3_512.digest`
16
+ returns the digest with a single call, which is faster for short messages::
17
+
18
+ >>> print(SHA3_512.digest(b'Some data').hex())
19
+
15
20
  .. __: http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
16
21
 
17
22
  *SHA* stands for Secure Hash Algorithm.
@@ -19,6 +19,12 @@ This is an example showing how to use SHA-512:
19
19
  >>> print(h.hexdigest())
20
20
  3615f80c9d293ed7402687f94b22d58e529b8cc7916f8fac7fddf7fbd5af4cf777d3d795a7a00a16bf7e7f3fb9561ee9baae480da9fe7a18769e71886b03f315
21
21
 
22
+ If the whole message is available at once, :func:`Crypto.Hash.SHA512.digest`
23
+ returns the digest with a single call, which is faster for short messages::
24
+
25
+ >>> print(SHA512.digest(b'Hello').hex())
26
+ 3615f80c9d293ed7402687f94b22d58e529b8cc7916f8fac7fddf7fbd5af4cf777d3d795a7a00a16bf7e7f3fb9561ee9baae480da9fe7a18769e71886b03f315
27
+
22
28
  This is an example showing how to use SHA-512/256:
23
29
 
24
30
  >>> from Crypto.Hash import SHA512
@@ -107,6 +107,7 @@ for backward compatibility only:
107
107
  * ``pbeWithSHA1AndDES-CBC``
108
108
 
109
109
  .. _`PKCS#8`: http://www.ietf.org/rfc/rfc5208.txt
110
+ .. _`RFC 5958`: https://www.rfc-editor.org/rfc/rfc5958.html
110
111
 
111
112
  .. automodule:: Crypto.IO.PKCS8
112
113
  :members:
@@ -0,0 +1,186 @@
1
+ .. _hpke:
2
+
3
+ Hybrid Public Key Encryption (HPKE)
4
+ =====================================
5
+
6
+ .. module:: Crypto.Protocol.HPKE
7
+
8
+ HPKE (`RFC 9180 <https://www.rfc-editor.org/rfc/rfc9180.html>`_)
9
+ is a non-interactive protocol that enables secure communication
10
+ using a combination of public key cryptography
11
+ (a Key Encapsulation Mechanism, KEM)
12
+ and symmetric encryption (Authenticated Encryption with Associated Data, AEAD).
13
+
14
+ It allows a sender that knows the public key of the intended recipient
15
+ to encrypt one or more messages, ensuring confidentiality and integrity,
16
+ without any interaction with the recipient.
17
+
18
+ There are no significant limits on the size of a single message or
19
+ on the number of messages in the sequence.
20
+ Along with each encrypted message (**ciphertext**),
21
+ the sender can also deliver a piece of non-sensitive data (e.g., a header),
22
+ which is authenticated together with the matching message
23
+ (**additional authenticated data, AAD**).
24
+
25
+ Before or together with the first message, the sender must deliver
26
+ the encapsulated session secret (**enc**) to the receiver.
27
+
28
+ .. figure:: hpke.png
29
+ :align: center
30
+ :width: 500px
31
+
32
+ In the basic scheme above, the receiver gets no proof
33
+ of the sender's identity.
34
+ Variants of the protocol exist to enable the receiver to ascertain
35
+ the origin of the message.
36
+
37
+ **First variant: Auth mode**. The sender can contribute its own private key to the encryption.
38
+ The receiver must have the matching public key:
39
+
40
+ .. figure:: hpkeAUTH.png
41
+ :align: center
42
+ :width: 500px
43
+
44
+ **Second variant: PSK mode**. The sender and the receiver can agree on a secret key
45
+ (a pre-shared key, PSK, of at least 32 random bytes) and use it for both encryption and decryption.
46
+
47
+ .. figure:: hpkePSK.png
48
+ :align: center
49
+ :width: 500px
50
+
51
+ Finally, the two authentication modes can also be combined (*AuthPSK* mode).
52
+
53
+ .. note::
54
+
55
+ The PSK is only used to authenticate the messages; it is not a replacement
56
+ for the asymmetric key that the receiver must provide to the sender.
57
+
58
+ .. note::
59
+
60
+ Future versions of HPKE will drop support for Auth and AuthPSK modes.
61
+
62
+ Examples
63
+ ~~~~~~~~~
64
+
65
+ This is how the sender can encrypt two messages::
66
+
67
+ from Crypto.Protocol import HPKE
68
+
69
+ # Let's assume that the recipient has delivered its public key,
70
+ # which is already loaded in a variable called their_pub_key
71
+ #
72
+ # For the sake of clarity, it could be simulated with:
73
+ #
74
+ # from Crypto.PublicKey import ECC
75
+ # their_key = ECC.generate(curve='p256')
76
+ # their_pub_key = their_key.public_key()
77
+
78
+ encryptor = HPKE.new(receiver_key=their_pub_key,
79
+ aead_id=HPKE.AEAD.AES128_GCM)
80
+
81
+ ct_1 = encryptor.seal(b'Message 1')
82
+ ct_2 = encryptor.seal(b'Message 2')
83
+
84
+ # The sender will deliver:
85
+ # - encryptor.enc as enc
86
+ # - ct_1
87
+ # - ct_2
88
+
89
+ And this is how the receiver can decrypt them::
90
+
91
+ from Crypto.Protocol import HPKE
92
+
93
+ # Let's assume that the recipient has its own private key,
94
+ # which is already loaded in a variable called my_key
95
+ #
96
+ # To continue the simulation, assign:
97
+ #
98
+ # my_key = their_key
99
+
100
+ decryptor = HPKE.new(receiver_key=my_key,
101
+ aead_id=HPKE.AEAD.AES128_GCM,
102
+ enc=enc)
103
+
104
+ # Any of the calls to unseal() can raise ValueError
105
+ # if it detects a key mismatch, a modified message, or messages out of order
106
+ pt1 = decryptor.unseal(ct_1)
107
+ pt2 = decryptor.unseal(ct_2)
108
+
109
+ HPKE can also derive shared secret material without encrypting messages::
110
+
111
+ from Crypto.Protocol import HPKE
112
+
113
+ exporter = HPKE.new(receiver_key=their_pub_key,
114
+ aead_id=HPKE.AEAD.EXPORT_ONLY)
115
+
116
+ secret = exporter.export(b'example context', 32)
117
+
118
+ # The sender will deliver exporter.enc as enc.
119
+ # The receiver will create the same context with its private key
120
+ # and call export() with the same context and length.
121
+
122
+ Post-quantum HPKE
123
+ ~~~~~~~~~~~~~~~~~
124
+
125
+ HPKE based on ECC keys (DHKEM) is not secure against quantum computers.
126
+ An extension of HPKE, still at the draft stage (`draft-ietf-hpke-pq`_),
127
+ defines how to use post-quantum cryptographic keys:
128
+
129
+ * an :doc:`ML-KEM key <../public_key/mlkem>`, or
130
+ * a :doc:`hybrid key <../public_key/hybrid>` of the hybrid KEM X-Wing,
131
+ which combines ML-KEM and X25519 and remains secure as long as at least one of them is secure.
132
+
133
+ The KEM (and with it the KDF) is selected by the type of the receiver key:
134
+
135
+ .. csv-table::
136
+ :header: Receiver key, KEM, KDF, Size of enc
137
+ :widths: 40, 20, 20, 20
138
+
139
+ "ECC, ``NIST P-256``", "DHKEM(P-256)", "HKDF-SHA256", "65 bytes"
140
+ "ECC, ``NIST P-384``", "DHKEM(P-384)", "HKDF-SHA384", "97 bytes"
141
+ "ECC, ``NIST P-521``", "DHKEM(P-521)", "HKDF-SHA512", "133 bytes"
142
+ "ECC, ``Curve25519``", "DHKEM(X25519)", "HKDF-SHA256", "32 bytes"
143
+ "ECC, ``Curve448``", "DHKEM(X448)", "HKDF-SHA512", "56 bytes"
144
+ "ML-KEM, ``MLKEM.ML_KEM_512``", "ML-KEM-512", "HKDF-SHA256", "768 bytes"
145
+ "ML-KEM, ``MLKEM.ML_KEM_768``", "ML-KEM-768", "HKDF-SHA256", "1088 bytes"
146
+ "ML-KEM, ``MLKEM.ML_KEM_1024``", "ML-KEM-1024", "HKDF-SHA384", "1568 bytes"
147
+ "Hybrid, ``Hybrid.MLKEM768_X25519``", "MLKEM768-X25519", "HKDF-SHA256", "1120 bytes"
148
+
149
+ The hybrid KEMs MLKEM768-P256 and MLKEM1024-P384 of `draft-ietf-hpke-pq`_ are not supported yet.
150
+
151
+ With ML-KEM and X-Wing, only the Base and PSK modes are available:
152
+ the *Auth* and *AuthPSK* modes are not supported (i.e., ``sender_key`` must not be specified).
153
+ The rest of the API is the same::
154
+
155
+ from Crypto.Protocol import HPKE
156
+ from Crypto.PublicKey import Hybrid
157
+
158
+ # The receiver
159
+ my_key = Hybrid.generate(param_set=Hybrid.MLKEM768_X25519)
160
+ their_pub_key = my_key.public_key()
161
+
162
+ # The sender
163
+ encryptor = HPKE.new(receiver_key=their_pub_key,
164
+ aead_id=HPKE.AEAD.CHACHA20_POLY1305)
165
+ ct = encryptor.seal(b'Message 1')
166
+
167
+ # The receiver again
168
+ decryptor = HPKE.new(receiver_key=my_key,
169
+ aead_id=HPKE.AEAD.CHACHA20_POLY1305,
170
+ enc=encryptor.enc)
171
+ pt = decryptor.unseal(ct)
172
+
173
+ .. _`draft-ietf-hpke-pq`: https://datatracker.ietf.org/doc/draft-ietf-hpke-pq/
174
+
175
+ Specification
176
+ ~~~~~~~~~~~~~
177
+
178
+ .. autoclass:: Crypto.Protocol.HPKE.AEAD
179
+ :members:
180
+ :undoc-members:
181
+
182
+ .. autofunction:: Crypto.Protocol.HPKE.new
183
+
184
+ .. autoclass:: Crypto.Protocol.HPKE.HPKE_Cipher
185
+ :members:
186
+ :undoc-members:
@@ -0,0 +1,60 @@
1
+ Hybrid keys
2
+ ===========
3
+
4
+ .. currentmodule:: Crypto.PublicKey.Hybrid
5
+
6
+ A hybrid key combines a post-quantum key with a traditional one:
7
+ the result stays secure as long as at least one of the two algorithms is secure.
8
+ It protects against quantum computers (thanks to the post-quantum algorithm)
9
+ without relying only on an algorithm that is still relatively new
10
+ (the traditional one is still there, should the post-quantum one fail).
11
+
12
+ The combination is selected by the ``param_set`` argument, one of the members of
13
+ the enum :class:`Crypto.PublicKey.Hybrid.ParamSet`
14
+ (also available as constants at the module level, for instance ``Hybrid.MLKEM768_X25519``).
15
+ The parameter set also decides what the key can be used for.
16
+
17
+ Currently, hybrid keys can only be generated, and used with :ref:`HPKE <hpke>`:
18
+ they cannot be exported or imported.
19
+
20
+ Hybrid KEMs (ML-KEM + ECDH)
21
+ ---------------------------
22
+
23
+ A hybrid KEM combines a post-quantum KEM (:doc:`ML-KEM <mlkem>`) with
24
+ a traditional one (ECDH), to agree on a shared secret.
25
+ This module implements the hybrid KEM MLKEM768-X25519 of `draft-irtf-cfrg-concrete-hybrid-kems`_,
26
+ also used by HPKE (`draft-ietf-hpke-pq`_):
27
+
28
+ .. csv-table::
29
+ :header: Hybrid KEM, Constant, Components, Public key, Ciphertext
30
+ :widths: 20, 30, 20, 15, 15
31
+
32
+ "MLKEM768-X25519", "``Hybrid.MLKEM768_X25519``", "ML-KEM-768 and X25519", "1216 bytes", "1120 bytes"
33
+
34
+ MLKEM768-X25519 is the same as X-Wing.
35
+ The other hybrid KEMs of the draft (MLKEM768-P256 and MLKEM1024-P384)
36
+ are not supported yet, as their definition may still change.
37
+
38
+ A private key is a **seed** of 32 random bytes:
39
+ the ML-KEM key and the ECDH key are both derived from it.
40
+ The two private keys are never used on their own, or with another algorithm.
41
+ The public key is the ML-KEM public key, followed by the X25519 public key (32 bytes).
42
+
43
+ With this module you can generate a new hybrid KEM key, and get its public key::
44
+
45
+ >>> from Crypto.PublicKey import Hybrid
46
+ >>>
47
+ >>> key = Hybrid.generate(param_set=Hybrid.MLKEM768_X25519)
48
+ >>> pub_key = key.public_key()
49
+
50
+ To encrypt data with these keys, use :ref:`HPKE <hpke>` (:mod:`Crypto.Protocol.HPKE`).
51
+
52
+ .. _`draft-irtf-cfrg-concrete-hybrid-kems`: https://datatracker.ietf.org/doc/draft-irtf-cfrg-concrete-hybrid-kems/
53
+ .. _`draft-ietf-hpke-pq`: https://datatracker.ietf.org/doc/draft-ietf-hpke-pq/
54
+
55
+ API
56
+ ---
57
+
58
+ .. automodule:: Crypto.PublicKey.Hybrid
59
+ :members:
60
+ :member-order: bysource