oxcrypto 0.1.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 (1192) hide show
  1. oxcrypto-0.1.0/.github/dependabot.yml +20 -0
  2. oxcrypto-0.1.0/.github/workflows/ci.yml +102 -0
  3. oxcrypto-0.1.0/.github/workflows/release.yml +193 -0
  4. oxcrypto-0.1.0/.gitignore +9 -0
  5. oxcrypto-0.1.0/.husky/commit-msg +1 -0
  6. oxcrypto-0.1.0/.husky/pre-commit +1 -0
  7. oxcrypto-0.1.0/CONTRIBUTING.md +126 -0
  8. oxcrypto-0.1.0/Cargo.lock +5134 -0
  9. oxcrypto-0.1.0/Cargo.toml +208 -0
  10. oxcrypto-0.1.0/LICENSE-APACHE +202 -0
  11. oxcrypto-0.1.0/LICENSE-MIT +18 -0
  12. oxcrypto-0.1.0/PKG-INFO +138 -0
  13. oxcrypto-0.1.0/README.md +125 -0
  14. oxcrypto-0.1.0/THIRD_PARTY_LICENSES.md +6893 -0
  15. oxcrypto-0.1.0/about.hbs +19 -0
  16. oxcrypto-0.1.0/about.toml +21 -0
  17. oxcrypto-0.1.0/bun.lock +168 -0
  18. oxcrypto-0.1.0/commitlint.config.mjs +3 -0
  19. oxcrypto-0.1.0/deny.toml +28 -0
  20. oxcrypto-0.1.0/docs/.gitignore +28 -0
  21. oxcrypto-0.1.0/docs/README.md +14 -0
  22. oxcrypto-0.1.0/docs/app/(home)/layout.tsx +6 -0
  23. oxcrypto-0.1.0/docs/app/(home)/page.tsx +15 -0
  24. oxcrypto-0.1.0/docs/app/api/search/route.ts +9 -0
  25. oxcrypto-0.1.0/docs/app/docs/[[...slug]]/page.tsx +65 -0
  26. oxcrypto-0.1.0/docs/app/docs/layout.tsx +11 -0
  27. oxcrypto-0.1.0/docs/app/global.css +23 -0
  28. oxcrypto-0.1.0/docs/app/layout.tsx +12 -0
  29. oxcrypto-0.1.0/docs/app/llms-full.txt/route.ts +7 -0
  30. oxcrypto-0.1.0/docs/app/llms.mdx/[...path]/route.ts +20 -0
  31. oxcrypto-0.1.0/docs/app/llms.txt/route.ts +7 -0
  32. oxcrypto-0.1.0/docs/bun.lock +907 -0
  33. oxcrypto-0.1.0/docs/components/mdx.tsx +15 -0
  34. oxcrypto-0.1.0/docs/components/provider.tsx +8 -0
  35. oxcrypto-0.1.0/docs/components/search.tsx +36 -0
  36. oxcrypto-0.1.0/docs/content/docs/aead/aes_gcm.mdx +29 -0
  37. oxcrypto-0.1.0/docs/content/docs/aead/aes_gcm_siv.mdx +29 -0
  38. oxcrypto-0.1.0/docs/content/docs/aead/ascon_aead128.mdx +30 -0
  39. oxcrypto-0.1.0/docs/content/docs/aead/belt_dwp.mdx +29 -0
  40. oxcrypto-0.1.0/docs/content/docs/aead/chacha20poly1305.mdx +29 -0
  41. oxcrypto-0.1.0/docs/content/docs/aead/deoxys.mdx +29 -0
  42. oxcrypto-0.1.0/docs/content/docs/aead/index.mdx +63 -0
  43. oxcrypto-0.1.0/docs/content/docs/aead/meta.json +5 -0
  44. oxcrypto-0.1.0/docs/content/docs/aead/stream.mdx +39 -0
  45. oxcrypto-0.1.0/docs/content/docs/aead/xaes_256_gcm.mdx +29 -0
  46. oxcrypto-0.1.0/docs/content/docs/aead/xoodyak.mdx +31 -0
  47. oxcrypto-0.1.0/docs/content/docs/age/index.mdx +13 -0
  48. oxcrypto-0.1.0/docs/content/docs/age/meta.json +5 -0
  49. oxcrypto-0.1.0/docs/content/docs/age/x25519.mdx +61 -0
  50. oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/blowfish.mdx +25 -0
  51. oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/cast5.mdx +25 -0
  52. oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/des.mdx +25 -0
  53. oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/idea.mdx +25 -0
  54. oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/meta.json +4 -0
  55. oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/rc2.mdx +25 -0
  56. oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/xtea.mdx +25 -0
  57. oxcrypto-0.1.0/docs/content/docs/cipher/aes.mdx +22 -0
  58. oxcrypto-0.1.0/docs/content/docs/cipher/aria.mdx +24 -0
  59. oxcrypto-0.1.0/docs/content/docs/cipher/belt_block.mdx +24 -0
  60. oxcrypto-0.1.0/docs/content/docs/cipher/belt_ctr.mdx +17 -0
  61. oxcrypto-0.1.0/docs/content/docs/cipher/camellia.mdx +24 -0
  62. oxcrypto-0.1.0/docs/content/docs/cipher/cast6.mdx +24 -0
  63. oxcrypto-0.1.0/docs/content/docs/cipher/cbc.mdx +25 -0
  64. oxcrypto-0.1.0/docs/content/docs/cipher/cfb.mdx +24 -0
  65. oxcrypto-0.1.0/docs/content/docs/cipher/cfb8.mdx +24 -0
  66. oxcrypto-0.1.0/docs/content/docs/cipher/ctr.mdx +24 -0
  67. oxcrypto-0.1.0/docs/content/docs/cipher/gift.mdx +24 -0
  68. oxcrypto-0.1.0/docs/content/docs/cipher/hazmat.mdx +19 -0
  69. oxcrypto-0.1.0/docs/content/docs/cipher/ige.mdx +24 -0
  70. oxcrypto-0.1.0/docs/content/docs/cipher/index.mdx +33 -0
  71. oxcrypto-0.1.0/docs/content/docs/cipher/kuznyechik.mdx +24 -0
  72. oxcrypto-0.1.0/docs/content/docs/cipher/magma.mdx +26 -0
  73. oxcrypto-0.1.0/docs/content/docs/cipher/meta.json +10 -0
  74. oxcrypto-0.1.0/docs/content/docs/cipher/ofb.mdx +24 -0
  75. oxcrypto-0.1.0/docs/content/docs/cipher/pcbc.mdx +24 -0
  76. oxcrypto-0.1.0/docs/content/docs/cipher/rc5.mdx +24 -0
  77. oxcrypto-0.1.0/docs/content/docs/cipher/serpent.mdx +24 -0
  78. oxcrypto-0.1.0/docs/content/docs/cipher/sm4.mdx +24 -0
  79. oxcrypto-0.1.0/docs/content/docs/cipher/speck.mdx +24 -0
  80. oxcrypto-0.1.0/docs/content/docs/cipher/threefish.mdx +24 -0
  81. oxcrypto-0.1.0/docs/content/docs/cipher/twofish.mdx +24 -0
  82. oxcrypto-0.1.0/docs/content/docs/cose/encrypt.mdx +28 -0
  83. oxcrypto-0.1.0/docs/content/docs/cose/index.mdx +54 -0
  84. oxcrypto-0.1.0/docs/content/docs/cose/key.mdx +26 -0
  85. oxcrypto-0.1.0/docs/content/docs/cose/mac.mdx +25 -0
  86. oxcrypto-0.1.0/docs/content/docs/cose/meta.json +5 -0
  87. oxcrypto-0.1.0/docs/content/docs/cose/sign.mdx +34 -0
  88. oxcrypto-0.1.0/docs/content/docs/encoding/base16.mdx +23 -0
  89. oxcrypto-0.1.0/docs/content/docs/encoding/base32.mdx +23 -0
  90. oxcrypto-0.1.0/docs/content/docs/encoding/base64.mdx +36 -0
  91. oxcrypto-0.1.0/docs/content/docs/encoding/index.mdx +17 -0
  92. oxcrypto-0.1.0/docs/content/docs/encoding/meta.json +5 -0
  93. oxcrypto-0.1.0/docs/content/docs/encoding/pem.mdx +29 -0
  94. oxcrypto-0.1.0/docs/content/docs/encryption/index.mdx +28 -0
  95. oxcrypto-0.1.0/docs/content/docs/encryption/meta.json +5 -0
  96. oxcrypto-0.1.0/docs/content/docs/encryption/rsa.mdx +58 -0
  97. oxcrypto-0.1.0/docs/content/docs/exchange/bign.mdx +51 -0
  98. oxcrypto-0.1.0/docs/content/docs/exchange/ecdh.mdx +45 -0
  99. oxcrypto-0.1.0/docs/content/docs/exchange/index.mdx +44 -0
  100. oxcrypto-0.1.0/docs/content/docs/exchange/meta.json +5 -0
  101. oxcrypto-0.1.0/docs/content/docs/exchange/x25519.mdx +58 -0
  102. oxcrypto-0.1.0/docs/content/docs/exchange/x448.mdx +50 -0
  103. oxcrypto-0.1.0/docs/content/docs/hashes/(legacy)/meta.json +4 -0
  104. oxcrypto-0.1.0/docs/content/docs/hashes/(protocol)/meta.json +3 -0
  105. oxcrypto-0.1.0/docs/content/docs/hashes/index.mdx +79 -0
  106. oxcrypto-0.1.0/docs/content/docs/hashes/meta.json +9 -0
  107. oxcrypto-0.1.0/docs/content/docs/hazmat/ascon.mdx +23 -0
  108. oxcrypto-0.1.0/docs/content/docs/hazmat/bash_f.mdx +22 -0
  109. oxcrypto-0.1.0/docs/content/docs/hazmat/decaf448.mdx +41 -0
  110. oxcrypto-0.1.0/docs/content/docs/hazmat/hash_to_curve.mdx +37 -0
  111. oxcrypto-0.1.0/docs/content/docs/hazmat/index.mdx +37 -0
  112. oxcrypto-0.1.0/docs/content/docs/hazmat/keccak.mdx +31 -0
  113. oxcrypto-0.1.0/docs/content/docs/hazmat/meta.json +5 -0
  114. oxcrypto-0.1.0/docs/content/docs/hazmat/ristretto255.mdx +42 -0
  115. oxcrypto-0.1.0/docs/content/docs/hd/bip32.mdx +72 -0
  116. oxcrypto-0.1.0/docs/content/docs/hd/bip39.mdx +63 -0
  117. oxcrypto-0.1.0/docs/content/docs/hd/index.mdx +73 -0
  118. oxcrypto-0.1.0/docs/content/docs/hd/meta.json +5 -0
  119. oxcrypto-0.1.0/docs/content/docs/hpke/index.mdx +126 -0
  120. oxcrypto-0.1.0/docs/content/docs/hpke/meta.json +5 -0
  121. oxcrypto-0.1.0/docs/content/docs/index.mdx +83 -0
  122. oxcrypto-0.1.0/docs/content/docs/jose/index.mdx +61 -0
  123. oxcrypto-0.1.0/docs/content/docs/jose/jwe.mdx +63 -0
  124. oxcrypto-0.1.0/docs/content/docs/jose/jwk.mdx +44 -0
  125. oxcrypto-0.1.0/docs/content/docs/jose/jws.mdx +41 -0
  126. oxcrypto-0.1.0/docs/content/docs/jose/jwt.mdx +32 -0
  127. oxcrypto-0.1.0/docs/content/docs/jose/meta.json +5 -0
  128. oxcrypto-0.1.0/docs/content/docs/kdf/ansi_x963_kdf.mdx +25 -0
  129. oxcrypto-0.1.0/docs/content/docs/kdf/bake_kdf.mdx +29 -0
  130. oxcrypto-0.1.0/docs/content/docs/kdf/hkdf.mdx +33 -0
  131. oxcrypto-0.1.0/docs/content/docs/kdf/index.mdx +30 -0
  132. oxcrypto-0.1.0/docs/content/docs/kdf/kbkdf.mdx +54 -0
  133. oxcrypto-0.1.0/docs/content/docs/kdf/meta.json +5 -0
  134. oxcrypto-0.1.0/docs/content/docs/kdf/one_step_kdf.mdx +27 -0
  135. oxcrypto-0.1.0/docs/content/docs/kem/dhkem.mdx +43 -0
  136. oxcrypto-0.1.0/docs/content/docs/kem/frodo_kem.mdx +54 -0
  137. oxcrypto-0.1.0/docs/content/docs/kem/hqc_kem.mdx +44 -0
  138. oxcrypto-0.1.0/docs/content/docs/kem/index.mdx +72 -0
  139. oxcrypto-0.1.0/docs/content/docs/kem/meta.json +5 -0
  140. oxcrypto-0.1.0/docs/content/docs/kem/ml_kem.mdx +46 -0
  141. oxcrypto-0.1.0/docs/content/docs/kem/sntrup_kem.mdx +43 -0
  142. oxcrypto-0.1.0/docs/content/docs/kem/x_wing.mdx +40 -0
  143. oxcrypto-0.1.0/docs/content/docs/keywrap/aes_kw.mdx +22 -0
  144. oxcrypto-0.1.0/docs/content/docs/keywrap/belt_kwp.mdx +17 -0
  145. oxcrypto-0.1.0/docs/content/docs/keywrap/index.mdx +11 -0
  146. oxcrypto-0.1.0/docs/content/docs/keywrap/meta.json +5 -0
  147. oxcrypto-0.1.0/docs/content/docs/mac/cbc_mac.mdx +19 -0
  148. oxcrypto-0.1.0/docs/content/docs/mac/cmac.mdx +21 -0
  149. oxcrypto-0.1.0/docs/content/docs/mac/hmac.mdx +18 -0
  150. oxcrypto-0.1.0/docs/content/docs/mac/index.mdx +66 -0
  151. oxcrypto-0.1.0/docs/content/docs/mac/meta.json +5 -0
  152. oxcrypto-0.1.0/docs/content/docs/mac/pmac.mdx +15 -0
  153. oxcrypto-0.1.0/docs/content/docs/mac/retail_mac.mdx +21 -0
  154. oxcrypto-0.1.0/docs/content/docs/meta.json +3 -0
  155. oxcrypto-0.1.0/docs/content/docs/nacl/crypto_box.mdx +40 -0
  156. oxcrypto-0.1.0/docs/content/docs/nacl/crypto_secretbox.mdx +30 -0
  157. oxcrypto-0.1.0/docs/content/docs/nacl/index.mdx +54 -0
  158. oxcrypto-0.1.0/docs/content/docs/nacl/meta.json +5 -0
  159. oxcrypto-0.1.0/docs/content/docs/oprf/index.mdx +87 -0
  160. oxcrypto-0.1.0/docs/content/docs/oprf/meta.json +5 -0
  161. oxcrypto-0.1.0/docs/content/docs/oprf/oprf.mdx +20 -0
  162. oxcrypto-0.1.0/docs/content/docs/oprf/poprf.mdx +19 -0
  163. oxcrypto-0.1.0/docs/content/docs/oprf/voprf.mdx +20 -0
  164. oxcrypto-0.1.0/docs/content/docs/otp/hotp.mdx +33 -0
  165. oxcrypto-0.1.0/docs/content/docs/otp/index.mdx +75 -0
  166. oxcrypto-0.1.0/docs/content/docs/otp/meta.json +5 -0
  167. oxcrypto-0.1.0/docs/content/docs/otp/totp.mdx +35 -0
  168. oxcrypto-0.1.0/docs/content/docs/pake/index.mdx +16 -0
  169. oxcrypto-0.1.0/docs/content/docs/pake/meta.json +5 -0
  170. oxcrypto-0.1.0/docs/content/docs/pake/opaque.mdx +92 -0
  171. oxcrypto-0.1.0/docs/content/docs/paseto/index.mdx +57 -0
  172. oxcrypto-0.1.0/docs/content/docs/paseto/meta.json +5 -0
  173. oxcrypto-0.1.0/docs/content/docs/paseto/v3.mdx +21 -0
  174. oxcrypto-0.1.0/docs/content/docs/paseto/v4.mdx +20 -0
  175. oxcrypto-0.1.0/docs/content/docs/password/argon2.mdx +46 -0
  176. oxcrypto-0.1.0/docs/content/docs/password/balloon.mdx +40 -0
  177. oxcrypto-0.1.0/docs/content/docs/password/bcrypt.mdx +46 -0
  178. oxcrypto-0.1.0/docs/content/docs/password/bcrypt_pbkdf.mdx +15 -0
  179. oxcrypto-0.1.0/docs/content/docs/password/index.mdx +43 -0
  180. oxcrypto-0.1.0/docs/content/docs/password/legacy_crypt.mdx +36 -0
  181. oxcrypto-0.1.0/docs/content/docs/password/meta.json +5 -0
  182. oxcrypto-0.1.0/docs/content/docs/password/password_auth.mdx +35 -0
  183. oxcrypto-0.1.0/docs/content/docs/password/pbkdf2.mdx +44 -0
  184. oxcrypto-0.1.0/docs/content/docs/password/scrypt.mdx +30 -0
  185. oxcrypto-0.1.0/docs/content/docs/password/sha_crypt.mdx +27 -0
  186. oxcrypto-0.1.0/docs/content/docs/password/yescrypt.mdx +36 -0
  187. oxcrypto-0.1.0/docs/content/docs/pki/cms.mdx +45 -0
  188. oxcrypto-0.1.0/docs/content/docs/pki/index.mdx +38 -0
  189. oxcrypto-0.1.0/docs/content/docs/pki/meta.json +5 -0
  190. oxcrypto-0.1.0/docs/content/docs/pki/path.mdx +49 -0
  191. oxcrypto-0.1.0/docs/content/docs/pki/x509.mdx +89 -0
  192. oxcrypto-0.1.0/docs/content/docs/random/chacha.mdx +43 -0
  193. oxcrypto-0.1.0/docs/content/docs/random/getrandom.mdx +18 -0
  194. oxcrypto-0.1.0/docs/content/docs/random/index.mdx +27 -0
  195. oxcrypto-0.1.0/docs/content/docs/random/meta.json +5 -0
  196. oxcrypto-0.1.0/docs/content/docs/secret_sharing/feldman.mdx +35 -0
  197. oxcrypto-0.1.0/docs/content/docs/secret_sharing/index.mdx +51 -0
  198. oxcrypto-0.1.0/docs/content/docs/secret_sharing/meta.json +5 -0
  199. oxcrypto-0.1.0/docs/content/docs/secret_sharing/pedersen.mdx +39 -0
  200. oxcrypto-0.1.0/docs/content/docs/secret_sharing/shamir.mdx +26 -0
  201. oxcrypto-0.1.0/docs/content/docs/signature/blind_rsa.mdx +90 -0
  202. oxcrypto-0.1.0/docs/content/docs/signature/bls.mdx +73 -0
  203. oxcrypto-0.1.0/docs/content/docs/signature/dsa.mdx +48 -0
  204. oxcrypto-0.1.0/docs/content/docs/signature/ecdsa.mdx +88 -0
  205. oxcrypto-0.1.0/docs/content/docs/signature/ed25519.mdx +68 -0
  206. oxcrypto-0.1.0/docs/content/docs/signature/ed448.mdx +52 -0
  207. oxcrypto-0.1.0/docs/content/docs/signature/fn_dsa.mdx +36 -0
  208. oxcrypto-0.1.0/docs/content/docs/signature/index.mdx +103 -0
  209. oxcrypto-0.1.0/docs/content/docs/signature/meta.json +5 -0
  210. oxcrypto-0.1.0/docs/content/docs/signature/ml_dsa.mdx +32 -0
  211. oxcrypto-0.1.0/docs/content/docs/signature/rsa.mdx +51 -0
  212. oxcrypto-0.1.0/docs/content/docs/signature/schnorr.mdx +35 -0
  213. oxcrypto-0.1.0/docs/content/docs/signature/slh_dsa.mdx +32 -0
  214. oxcrypto-0.1.0/docs/content/docs/signature/sr25519.mdx +57 -0
  215. oxcrypto-0.1.0/docs/content/docs/signature/xmss.mdx +64 -0
  216. oxcrypto-0.1.0/docs/content/docs/ssh/authorized_keys.mdx +22 -0
  217. oxcrypto-0.1.0/docs/content/docs/ssh/certificate.mdx +45 -0
  218. oxcrypto-0.1.0/docs/content/docs/ssh/index.mdx +71 -0
  219. oxcrypto-0.1.0/docs/content/docs/ssh/known_hosts.mdx +29 -0
  220. oxcrypto-0.1.0/docs/content/docs/ssh/meta.json +5 -0
  221. oxcrypto-0.1.0/docs/content/docs/ssh/openssh.mdx +43 -0
  222. oxcrypto-0.1.0/docs/content/docs/ssh/sshsig.mdx +29 -0
  223. oxcrypto-0.1.0/docs/content/docs/stream/chacha20.mdx +33 -0
  224. oxcrypto-0.1.0/docs/content/docs/stream/hc_256.mdx +18 -0
  225. oxcrypto-0.1.0/docs/content/docs/stream/index.mdx +45 -0
  226. oxcrypto-0.1.0/docs/content/docs/stream/meta.json +5 -0
  227. oxcrypto-0.1.0/docs/content/docs/stream/rabbit.mdx +17 -0
  228. oxcrypto-0.1.0/docs/content/docs/stream/rc4.mdx +18 -0
  229. oxcrypto-0.1.0/docs/content/docs/stream/salsa20.mdx +26 -0
  230. oxcrypto-0.1.0/docs/content/docs/threshold/frost.mdx +114 -0
  231. oxcrypto-0.1.0/docs/content/docs/threshold/index.mdx +43 -0
  232. oxcrypto-0.1.0/docs/content/docs/threshold/meta.json +5 -0
  233. oxcrypto-0.1.0/docs/content/docs/universal_hash/ghash.mdx +16 -0
  234. oxcrypto-0.1.0/docs/content/docs/universal_hash/index.mdx +34 -0
  235. oxcrypto-0.1.0/docs/content/docs/universal_hash/meta.json +5 -0
  236. oxcrypto-0.1.0/docs/content/docs/universal_hash/poly1305.mdx +15 -0
  237. oxcrypto-0.1.0/docs/content/docs/universal_hash/polyval.mdx +14 -0
  238. oxcrypto-0.1.0/docs/content/docs/vrf/ecvrf.mdx +19 -0
  239. oxcrypto-0.1.0/docs/content/docs/vrf/index.mdx +50 -0
  240. oxcrypto-0.1.0/docs/content/docs/vrf/meta.json +5 -0
  241. oxcrypto-0.1.0/docs/content/docs/xof/ascon_xof128.mdx +20 -0
  242. oxcrypto-0.1.0/docs/content/docs/xof/bash_prg_hash.mdx +13 -0
  243. oxcrypto-0.1.0/docs/content/docs/xof/cshake.mdx +13 -0
  244. oxcrypto-0.1.0/docs/content/docs/xof/index.mdx +42 -0
  245. oxcrypto-0.1.0/docs/content/docs/xof/k12.mdx +13 -0
  246. oxcrypto-0.1.0/docs/content/docs/xof/meta.json +5 -0
  247. oxcrypto-0.1.0/docs/content/docs/xof/shake.mdx +14 -0
  248. oxcrypto-0.1.0/docs/content/docs/xof/tuple_hash.mdx +31 -0
  249. oxcrypto-0.1.0/docs/content/docs/xof/turboshake.mdx +22 -0
  250. oxcrypto-0.1.0/docs/lib/cn.ts +1 -0
  251. oxcrypto-0.1.0/docs/lib/layout.shared.tsx +12 -0
  252. oxcrypto-0.1.0/docs/lib/remark-alerts.ts +43 -0
  253. oxcrypto-0.1.0/docs/lib/shared.ts +8 -0
  254. oxcrypto-0.1.0/docs/lib/source.ts +40 -0
  255. oxcrypto-0.1.0/docs/next.config.mjs +13 -0
  256. oxcrypto-0.1.0/docs/package.json +33 -0
  257. oxcrypto-0.1.0/docs/postcss.config.mjs +7 -0
  258. oxcrypto-0.1.0/docs/scripts/generate_hash_reference.py +145 -0
  259. oxcrypto-0.1.0/docs/tsconfig.json +34 -0
  260. oxcrypto-0.1.0/lint-staged.config.mjs +7 -0
  261. oxcrypto-0.1.0/package.json +13 -0
  262. oxcrypto-0.1.0/pyproject.toml +34 -0
  263. oxcrypto-0.1.0/python/oxcrypto/__init__.py +5 -0
  264. oxcrypto-0.1.0/python/oxcrypto/__init__.pyi +1 -0
  265. oxcrypto-0.1.0/python/oxcrypto/aead/__init__.py +1 -0
  266. oxcrypto-0.1.0/python/oxcrypto/aead/aes_gcm.py +8 -0
  267. oxcrypto-0.1.0/python/oxcrypto/aead/aes_gcm.pyi +73 -0
  268. oxcrypto-0.1.0/python/oxcrypto/aead/aes_gcm_siv.py +8 -0
  269. oxcrypto-0.1.0/python/oxcrypto/aead/aes_gcm_siv.pyi +72 -0
  270. oxcrypto-0.1.0/python/oxcrypto/aead/ascon_aead128.py +8 -0
  271. oxcrypto-0.1.0/python/oxcrypto/aead/ascon_aead128.pyi +71 -0
  272. oxcrypto-0.1.0/python/oxcrypto/aead/belt_dwp.py +8 -0
  273. oxcrypto-0.1.0/python/oxcrypto/aead/belt_dwp.pyi +71 -0
  274. oxcrypto-0.1.0/python/oxcrypto/aead/chacha20poly1305.py +8 -0
  275. oxcrypto-0.1.0/python/oxcrypto/aead/chacha20poly1305.pyi +76 -0
  276. oxcrypto-0.1.0/python/oxcrypto/aead/deoxys.py +8 -0
  277. oxcrypto-0.1.0/python/oxcrypto/aead/deoxys.pyi +74 -0
  278. oxcrypto-0.1.0/python/oxcrypto/aead/stream.py +8 -0
  279. oxcrypto-0.1.0/python/oxcrypto/aead/stream.pyi +19 -0
  280. oxcrypto-0.1.0/python/oxcrypto/aead/xaes_256_gcm.py +8 -0
  281. oxcrypto-0.1.0/python/oxcrypto/aead/xaes_256_gcm.pyi +71 -0
  282. oxcrypto-0.1.0/python/oxcrypto/aead/xoodyak.py +8 -0
  283. oxcrypto-0.1.0/python/oxcrypto/aead/xoodyak.pyi +71 -0
  284. oxcrypto-0.1.0/python/oxcrypto/age/__init__.py +1 -0
  285. oxcrypto-0.1.0/python/oxcrypto/age/x25519.py +7 -0
  286. oxcrypto-0.1.0/python/oxcrypto/age/x25519.pyi +15 -0
  287. oxcrypto-0.1.0/python/oxcrypto/cipher/__init__.py +9 -0
  288. oxcrypto-0.1.0/python/oxcrypto/cipher/__init__.pyi +65 -0
  289. oxcrypto-0.1.0/python/oxcrypto/cipher/aes.py +7 -0
  290. oxcrypto-0.1.0/python/oxcrypto/cipher/aes.pyi +13 -0
  291. oxcrypto-0.1.0/python/oxcrypto/cipher/aria.py +7 -0
  292. oxcrypto-0.1.0/python/oxcrypto/cipher/aria.pyi +13 -0
  293. oxcrypto-0.1.0/python/oxcrypto/cipher/belt_block.py +7 -0
  294. oxcrypto-0.1.0/python/oxcrypto/cipher/belt_block.pyi +11 -0
  295. oxcrypto-0.1.0/python/oxcrypto/cipher/belt_ctr.py +7 -0
  296. oxcrypto-0.1.0/python/oxcrypto/cipher/belt_ctr.pyi +12 -0
  297. oxcrypto-0.1.0/python/oxcrypto/cipher/blowfish.py +7 -0
  298. oxcrypto-0.1.0/python/oxcrypto/cipher/blowfish.pyi +11 -0
  299. oxcrypto-0.1.0/python/oxcrypto/cipher/camellia.py +7 -0
  300. oxcrypto-0.1.0/python/oxcrypto/cipher/camellia.pyi +13 -0
  301. oxcrypto-0.1.0/python/oxcrypto/cipher/cast5.py +7 -0
  302. oxcrypto-0.1.0/python/oxcrypto/cipher/cast5.pyi +11 -0
  303. oxcrypto-0.1.0/python/oxcrypto/cipher/cast6.py +7 -0
  304. oxcrypto-0.1.0/python/oxcrypto/cipher/cast6.pyi +11 -0
  305. oxcrypto-0.1.0/python/oxcrypto/cipher/cbc.py +7 -0
  306. oxcrypto-0.1.0/python/oxcrypto/cipher/cbc.pyi +34 -0
  307. oxcrypto-0.1.0/python/oxcrypto/cipher/cfb.py +7 -0
  308. oxcrypto-0.1.0/python/oxcrypto/cipher/cfb.pyi +20 -0
  309. oxcrypto-0.1.0/python/oxcrypto/cipher/cfb8.py +7 -0
  310. oxcrypto-0.1.0/python/oxcrypto/cipher/cfb8.pyi +20 -0
  311. oxcrypto-0.1.0/python/oxcrypto/cipher/ctr.py +7 -0
  312. oxcrypto-0.1.0/python/oxcrypto/cipher/ctr.pyi +25 -0
  313. oxcrypto-0.1.0/python/oxcrypto/cipher/des.py +7 -0
  314. oxcrypto-0.1.0/python/oxcrypto/cipher/des.pyi +15 -0
  315. oxcrypto-0.1.0/python/oxcrypto/cipher/gift.py +7 -0
  316. oxcrypto-0.1.0/python/oxcrypto/cipher/gift.pyi +11 -0
  317. oxcrypto-0.1.0/python/oxcrypto/cipher/hazmat.py +12 -0
  318. oxcrypto-0.1.0/python/oxcrypto/cipher/hazmat.pyi +23 -0
  319. oxcrypto-0.1.0/python/oxcrypto/cipher/idea.py +7 -0
  320. oxcrypto-0.1.0/python/oxcrypto/cipher/idea.pyi +11 -0
  321. oxcrypto-0.1.0/python/oxcrypto/cipher/ige.py +7 -0
  322. oxcrypto-0.1.0/python/oxcrypto/cipher/ige.pyi +34 -0
  323. oxcrypto-0.1.0/python/oxcrypto/cipher/kuznyechik.py +7 -0
  324. oxcrypto-0.1.0/python/oxcrypto/cipher/kuznyechik.pyi +11 -0
  325. oxcrypto-0.1.0/python/oxcrypto/cipher/magma.py +7 -0
  326. oxcrypto-0.1.0/python/oxcrypto/cipher/magma.pyi +15 -0
  327. oxcrypto-0.1.0/python/oxcrypto/cipher/ofb.py +7 -0
  328. oxcrypto-0.1.0/python/oxcrypto/cipher/ofb.pyi +20 -0
  329. oxcrypto-0.1.0/python/oxcrypto/cipher/pcbc.py +7 -0
  330. oxcrypto-0.1.0/python/oxcrypto/cipher/pcbc.pyi +34 -0
  331. oxcrypto-0.1.0/python/oxcrypto/cipher/rc2.py +7 -0
  332. oxcrypto-0.1.0/python/oxcrypto/cipher/rc2.pyi +11 -0
  333. oxcrypto-0.1.0/python/oxcrypto/cipher/rc5.py +7 -0
  334. oxcrypto-0.1.0/python/oxcrypto/cipher/rc5.pyi +15 -0
  335. oxcrypto-0.1.0/python/oxcrypto/cipher/serpent.py +7 -0
  336. oxcrypto-0.1.0/python/oxcrypto/cipher/serpent.pyi +11 -0
  337. oxcrypto-0.1.0/python/oxcrypto/cipher/sm4.py +7 -0
  338. oxcrypto-0.1.0/python/oxcrypto/cipher/sm4.pyi +11 -0
  339. oxcrypto-0.1.0/python/oxcrypto/cipher/speck.py +7 -0
  340. oxcrypto-0.1.0/python/oxcrypto/cipher/speck.pyi +20 -0
  341. oxcrypto-0.1.0/python/oxcrypto/cipher/threefish.py +7 -0
  342. oxcrypto-0.1.0/python/oxcrypto/cipher/threefish.pyi +13 -0
  343. oxcrypto-0.1.0/python/oxcrypto/cipher/twofish.py +7 -0
  344. oxcrypto-0.1.0/python/oxcrypto/cipher/twofish.pyi +11 -0
  345. oxcrypto-0.1.0/python/oxcrypto/cipher/xtea.py +7 -0
  346. oxcrypto-0.1.0/python/oxcrypto/cipher/xtea.pyi +11 -0
  347. oxcrypto-0.1.0/python/oxcrypto/cose/__init__.py +1 -0
  348. oxcrypto-0.1.0/python/oxcrypto/cose/encrypt.py +7 -0
  349. oxcrypto-0.1.0/python/oxcrypto/cose/encrypt.pyi +23 -0
  350. oxcrypto-0.1.0/python/oxcrypto/cose/key.py +7 -0
  351. oxcrypto-0.1.0/python/oxcrypto/cose/key.pyi +15 -0
  352. oxcrypto-0.1.0/python/oxcrypto/cose/mac.py +7 -0
  353. oxcrypto-0.1.0/python/oxcrypto/cose/mac.pyi +26 -0
  354. oxcrypto-0.1.0/python/oxcrypto/cose/sign.py +8 -0
  355. oxcrypto-0.1.0/python/oxcrypto/cose/sign.pyi +55 -0
  356. oxcrypto-0.1.0/python/oxcrypto/encoding/__init__.py +1 -0
  357. oxcrypto-0.1.0/python/oxcrypto/encoding/base16.py +7 -0
  358. oxcrypto-0.1.0/python/oxcrypto/encoding/base16.pyi +10 -0
  359. oxcrypto-0.1.0/python/oxcrypto/encoding/base32.py +7 -0
  360. oxcrypto-0.1.0/python/oxcrypto/encoding/base32.pyi +11 -0
  361. oxcrypto-0.1.0/python/oxcrypto/encoding/base64.py +7 -0
  362. oxcrypto-0.1.0/python/oxcrypto/encoding/base64.pyi +15 -0
  363. oxcrypto-0.1.0/python/oxcrypto/encoding/pem.py +7 -0
  364. oxcrypto-0.1.0/python/oxcrypto/encoding/pem.pyi +15 -0
  365. oxcrypto-0.1.0/python/oxcrypto/encryption/__init__.py +1 -0
  366. oxcrypto-0.1.0/python/oxcrypto/encryption/rsa.py +8 -0
  367. oxcrypto-0.1.0/python/oxcrypto/encryption/rsa.pyi +67 -0
  368. oxcrypto-0.1.0/python/oxcrypto/exchange/__init__.py +1 -0
  369. oxcrypto-0.1.0/python/oxcrypto/exchange/bign.py +9 -0
  370. oxcrypto-0.1.0/python/oxcrypto/exchange/bign.pyi +46 -0
  371. oxcrypto-0.1.0/python/oxcrypto/exchange/ecdh.py +9 -0
  372. oxcrypto-0.1.0/python/oxcrypto/exchange/ecdh.pyi +60 -0
  373. oxcrypto-0.1.0/python/oxcrypto/exchange/x25519.py +9 -0
  374. oxcrypto-0.1.0/python/oxcrypto/exchange/x25519.pyi +39 -0
  375. oxcrypto-0.1.0/python/oxcrypto/exchange/x448.py +9 -0
  376. oxcrypto-0.1.0/python/oxcrypto/exchange/x448.pyi +39 -0
  377. oxcrypto-0.1.0/python/oxcrypto/hash/__init__.py +7 -0
  378. oxcrypto-0.1.0/python/oxcrypto/hash/__init__.pyi +18 -0
  379. oxcrypto-0.1.0/python/oxcrypto/hash/ascon_hash256.py +7 -0
  380. oxcrypto-0.1.0/python/oxcrypto/hash/ascon_hash256.pyi +12 -0
  381. oxcrypto-0.1.0/python/oxcrypto/hash/bao.py +21 -0
  382. oxcrypto-0.1.0/python/oxcrypto/hash/bao.pyi +27 -0
  383. oxcrypto-0.1.0/python/oxcrypto/hash/bash_hash.py +7 -0
  384. oxcrypto-0.1.0/python/oxcrypto/hash/bash_hash.pyi +14 -0
  385. oxcrypto-0.1.0/python/oxcrypto/hash/belt_hash.py +7 -0
  386. oxcrypto-0.1.0/python/oxcrypto/hash/belt_hash.pyi +12 -0
  387. oxcrypto-0.1.0/python/oxcrypto/hash/blake2.py +12 -0
  388. oxcrypto-0.1.0/python/oxcrypto/hash/blake2.pyi +45 -0
  389. oxcrypto-0.1.0/python/oxcrypto/hash/blake3.py +10 -0
  390. oxcrypto-0.1.0/python/oxcrypto/hash/blake3.pyi +34 -0
  391. oxcrypto-0.1.0/python/oxcrypto/hash/fsb.py +7 -0
  392. oxcrypto-0.1.0/python/oxcrypto/hash/fsb.pyi +16 -0
  393. oxcrypto-0.1.0/python/oxcrypto/hash/gost94.py +7 -0
  394. oxcrypto-0.1.0/python/oxcrypto/hash/gost94.pyi +15 -0
  395. oxcrypto-0.1.0/python/oxcrypto/hash/groestl.py +10 -0
  396. oxcrypto-0.1.0/python/oxcrypto/hash/groestl.pyi +18 -0
  397. oxcrypto-0.1.0/python/oxcrypto/hash/jh.py +7 -0
  398. oxcrypto-0.1.0/python/oxcrypto/hash/jh.pyi +15 -0
  399. oxcrypto-0.1.0/python/oxcrypto/hash/keccak.py +7 -0
  400. oxcrypto-0.1.0/python/oxcrypto/hash/keccak.pyi +16 -0
  401. oxcrypto-0.1.0/python/oxcrypto/hash/kupyna.py +10 -0
  402. oxcrypto-0.1.0/python/oxcrypto/hash/kupyna.pyi +18 -0
  403. oxcrypto-0.1.0/python/oxcrypto/hash/md2.py +10 -0
  404. oxcrypto-0.1.0/python/oxcrypto/hash/md2.pyi +14 -0
  405. oxcrypto-0.1.0/python/oxcrypto/hash/md4.py +10 -0
  406. oxcrypto-0.1.0/python/oxcrypto/hash/md4.pyi +14 -0
  407. oxcrypto-0.1.0/python/oxcrypto/hash/md5.py +10 -0
  408. oxcrypto-0.1.0/python/oxcrypto/hash/md5.pyi +14 -0
  409. oxcrypto-0.1.0/python/oxcrypto/hash/ripemd.py +7 -0
  410. oxcrypto-0.1.0/python/oxcrypto/hash/ripemd.pyi +15 -0
  411. oxcrypto-0.1.0/python/oxcrypto/hash/sha1.py +10 -0
  412. oxcrypto-0.1.0/python/oxcrypto/hash/sha1.pyi +14 -0
  413. oxcrypto-0.1.0/python/oxcrypto/hash/sha1_checked.py +11 -0
  414. oxcrypto-0.1.0/python/oxcrypto/hash/sha1_checked.pyi +25 -0
  415. oxcrypto-0.1.0/python/oxcrypto/hash/sha2.py +7 -0
  416. oxcrypto-0.1.0/python/oxcrypto/hash/sha2.pyi +17 -0
  417. oxcrypto-0.1.0/python/oxcrypto/hash/sha3.py +7 -0
  418. oxcrypto-0.1.0/python/oxcrypto/hash/sha3.pyi +15 -0
  419. oxcrypto-0.1.0/python/oxcrypto/hash/shabal.py +7 -0
  420. oxcrypto-0.1.0/python/oxcrypto/hash/shabal.pyi +16 -0
  421. oxcrypto-0.1.0/python/oxcrypto/hash/skein.py +10 -0
  422. oxcrypto-0.1.0/python/oxcrypto/hash/skein.pyi +26 -0
  423. oxcrypto-0.1.0/python/oxcrypto/hash/sm3.py +7 -0
  424. oxcrypto-0.1.0/python/oxcrypto/hash/sm3.pyi +12 -0
  425. oxcrypto-0.1.0/python/oxcrypto/hash/streebog.py +7 -0
  426. oxcrypto-0.1.0/python/oxcrypto/hash/streebog.pyi +13 -0
  427. oxcrypto-0.1.0/python/oxcrypto/hash/tiger.py +7 -0
  428. oxcrypto-0.1.0/python/oxcrypto/hash/tiger.pyi +13 -0
  429. oxcrypto-0.1.0/python/oxcrypto/hash/whirlpool.py +7 -0
  430. oxcrypto-0.1.0/python/oxcrypto/hash/whirlpool.pyi +12 -0
  431. oxcrypto-0.1.0/python/oxcrypto/hazmat/__init__.py +1 -0
  432. oxcrypto-0.1.0/python/oxcrypto/hazmat/curve/__init__.py +1 -0
  433. oxcrypto-0.1.0/python/oxcrypto/hazmat/curve/hash_to_curve.py +7 -0
  434. oxcrypto-0.1.0/python/oxcrypto/hazmat/curve/hash_to_curve.pyi +13 -0
  435. oxcrypto-0.1.0/python/oxcrypto/hazmat/group/__init__.py +1 -0
  436. oxcrypto-0.1.0/python/oxcrypto/hazmat/group/decaf448.py +7 -0
  437. oxcrypto-0.1.0/python/oxcrypto/hazmat/group/decaf448.pyi +13 -0
  438. oxcrypto-0.1.0/python/oxcrypto/hazmat/group/ristretto255.py +7 -0
  439. oxcrypto-0.1.0/python/oxcrypto/hazmat/group/ristretto255.pyi +13 -0
  440. oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/__init__.py +1 -0
  441. oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/ascon.py +7 -0
  442. oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/ascon.pyi +7 -0
  443. oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/bash_f.py +7 -0
  444. oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/bash_f.pyi +7 -0
  445. oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/keccak.py +7 -0
  446. oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/keccak.pyi +10 -0
  447. oxcrypto-0.1.0/python/oxcrypto/hd/__init__.py +1 -0
  448. oxcrypto-0.1.0/python/oxcrypto/hd/bip32.py +9 -0
  449. oxcrypto-0.1.0/python/oxcrypto/hd/bip32.pyi +53 -0
  450. oxcrypto-0.1.0/python/oxcrypto/hd/bip39.py +8 -0
  451. oxcrypto-0.1.0/python/oxcrypto/hd/bip39.pyi +28 -0
  452. oxcrypto-0.1.0/python/oxcrypto/hpke/__init__.py +23 -0
  453. oxcrypto-0.1.0/python/oxcrypto/hpke/__init__.pyi +139 -0
  454. oxcrypto-0.1.0/python/oxcrypto/jose/__init__.py +1 -0
  455. oxcrypto-0.1.0/python/oxcrypto/jose/jwe.py +9 -0
  456. oxcrypto-0.1.0/python/oxcrypto/jose/jwe.pyi +57 -0
  457. oxcrypto-0.1.0/python/oxcrypto/jose/jwk.py +7 -0
  458. oxcrypto-0.1.0/python/oxcrypto/jose/jwk.pyi +17 -0
  459. oxcrypto-0.1.0/python/oxcrypto/jose/jws.py +8 -0
  460. oxcrypto-0.1.0/python/oxcrypto/jose/jws.pyi +44 -0
  461. oxcrypto-0.1.0/python/oxcrypto/jose/jwt.py +8 -0
  462. oxcrypto-0.1.0/python/oxcrypto/jose/jwt.pyi +25 -0
  463. oxcrypto-0.1.0/python/oxcrypto/kdf/__init__.py +1 -0
  464. oxcrypto-0.1.0/python/oxcrypto/kdf/ansi_x963_kdf.py +7 -0
  465. oxcrypto-0.1.0/python/oxcrypto/kdf/ansi_x963_kdf.pyi +19 -0
  466. oxcrypto-0.1.0/python/oxcrypto/kdf/bake_kdf.py +8 -0
  467. oxcrypto-0.1.0/python/oxcrypto/kdf/bake_kdf.pyi +17 -0
  468. oxcrypto-0.1.0/python/oxcrypto/kdf/hkdf.py +7 -0
  469. oxcrypto-0.1.0/python/oxcrypto/kdf/hkdf.pyi +89 -0
  470. oxcrypto-0.1.0/python/oxcrypto/kdf/kbkdf.py +7 -0
  471. oxcrypto-0.1.0/python/oxcrypto/kdf/kbkdf.pyi +58 -0
  472. oxcrypto-0.1.0/python/oxcrypto/kdf/one_step_kdf.py +7 -0
  473. oxcrypto-0.1.0/python/oxcrypto/kdf/one_step_kdf.pyi +19 -0
  474. oxcrypto-0.1.0/python/oxcrypto/kem/__init__.py +1 -0
  475. oxcrypto-0.1.0/python/oxcrypto/kem/dhkem.py +9 -0
  476. oxcrypto-0.1.0/python/oxcrypto/kem/dhkem.pyi +28 -0
  477. oxcrypto-0.1.0/python/oxcrypto/kem/frodo_kem.py +9 -0
  478. oxcrypto-0.1.0/python/oxcrypto/kem/frodo_kem.pyi +39 -0
  479. oxcrypto-0.1.0/python/oxcrypto/kem/hqc_kem.py +9 -0
  480. oxcrypto-0.1.0/python/oxcrypto/kem/hqc_kem.pyi +30 -0
  481. oxcrypto-0.1.0/python/oxcrypto/kem/ml_kem.py +9 -0
  482. oxcrypto-0.1.0/python/oxcrypto/kem/ml_kem.pyi +30 -0
  483. oxcrypto-0.1.0/python/oxcrypto/kem/sntrup_kem.py +9 -0
  484. oxcrypto-0.1.0/python/oxcrypto/kem/sntrup_kem.pyi +33 -0
  485. oxcrypto-0.1.0/python/oxcrypto/kem/x_wing.py +9 -0
  486. oxcrypto-0.1.0/python/oxcrypto/kem/x_wing.pyi +28 -0
  487. oxcrypto-0.1.0/python/oxcrypto/keywrap/__init__.py +1 -0
  488. oxcrypto-0.1.0/python/oxcrypto/keywrap/aes_kw.py +7 -0
  489. oxcrypto-0.1.0/python/oxcrypto/keywrap/aes_kw.pyi +13 -0
  490. oxcrypto-0.1.0/python/oxcrypto/keywrap/belt_kwp.py +7 -0
  491. oxcrypto-0.1.0/python/oxcrypto/keywrap/belt_kwp.pyi +10 -0
  492. oxcrypto-0.1.0/python/oxcrypto/mac/__init__.py +7 -0
  493. oxcrypto-0.1.0/python/oxcrypto/mac/__init__.pyi +9 -0
  494. oxcrypto-0.1.0/python/oxcrypto/mac/cbc_mac.py +7 -0
  495. oxcrypto-0.1.0/python/oxcrypto/mac/cbc_mac.pyi +54 -0
  496. oxcrypto-0.1.0/python/oxcrypto/mac/cmac.py +7 -0
  497. oxcrypto-0.1.0/python/oxcrypto/mac/cmac.pyi +50 -0
  498. oxcrypto-0.1.0/python/oxcrypto/mac/hmac.py +7 -0
  499. oxcrypto-0.1.0/python/oxcrypto/mac/hmac.pyi +61 -0
  500. oxcrypto-0.1.0/python/oxcrypto/mac/pmac.py +7 -0
  501. oxcrypto-0.1.0/python/oxcrypto/mac/pmac.pyi +50 -0
  502. oxcrypto-0.1.0/python/oxcrypto/mac/retail_mac.py +7 -0
  503. oxcrypto-0.1.0/python/oxcrypto/mac/retail_mac.pyi +54 -0
  504. oxcrypto-0.1.0/python/oxcrypto/nacl/__init__.py +1 -0
  505. oxcrypto-0.1.0/python/oxcrypto/nacl/crypto_box.py +9 -0
  506. oxcrypto-0.1.0/python/oxcrypto/nacl/crypto_box.pyi +39 -0
  507. oxcrypto-0.1.0/python/oxcrypto/nacl/crypto_secretbox.py +7 -0
  508. oxcrypto-0.1.0/python/oxcrypto/nacl/crypto_secretbox.pyi +9 -0
  509. oxcrypto-0.1.0/python/oxcrypto/oprf/__init__.py +1 -0
  510. oxcrypto-0.1.0/python/oxcrypto/oprf/oprf.py +9 -0
  511. oxcrypto-0.1.0/python/oxcrypto/oprf/oprf.pyi +30 -0
  512. oxcrypto-0.1.0/python/oxcrypto/oprf/poprf.py +10 -0
  513. oxcrypto-0.1.0/python/oxcrypto/oprf/poprf.pyi +49 -0
  514. oxcrypto-0.1.0/python/oxcrypto/oprf/voprf.py +10 -0
  515. oxcrypto-0.1.0/python/oxcrypto/oprf/voprf.pyi +41 -0
  516. oxcrypto-0.1.0/python/oxcrypto/otp/__init__.py +1 -0
  517. oxcrypto-0.1.0/python/oxcrypto/otp/hotp.py +7 -0
  518. oxcrypto-0.1.0/python/oxcrypto/otp/hotp.pyi +29 -0
  519. oxcrypto-0.1.0/python/oxcrypto/otp/totp.py +7 -0
  520. oxcrypto-0.1.0/python/oxcrypto/otp/totp.pyi +39 -0
  521. oxcrypto-0.1.0/python/oxcrypto/pake/__init__.py +1 -0
  522. oxcrypto-0.1.0/python/oxcrypto/pake/opaque.py +11 -0
  523. oxcrypto-0.1.0/python/oxcrypto/pake/opaque.pyi +76 -0
  524. oxcrypto-0.1.0/python/oxcrypto/paseto/__init__.py +8 -0
  525. oxcrypto-0.1.0/python/oxcrypto/paseto/__init__.pyi +41 -0
  526. oxcrypto-0.1.0/python/oxcrypto/password/__init__.py +1 -0
  527. oxcrypto-0.1.0/python/oxcrypto/password/argon2.py +8 -0
  528. oxcrypto-0.1.0/python/oxcrypto/password/argon2.pyi +35 -0
  529. oxcrypto-0.1.0/python/oxcrypto/password/balloon.py +7 -0
  530. oxcrypto-0.1.0/python/oxcrypto/password/balloon.pyi +33 -0
  531. oxcrypto-0.1.0/python/oxcrypto/password/bcrypt.py +7 -0
  532. oxcrypto-0.1.0/python/oxcrypto/password/bcrypt.pyi +10 -0
  533. oxcrypto-0.1.0/python/oxcrypto/password/bcrypt_pbkdf.py +7 -0
  534. oxcrypto-0.1.0/python/oxcrypto/password/bcrypt_pbkdf.pyi +9 -0
  535. oxcrypto-0.1.0/python/oxcrypto/password/legacy_crypt.py +7 -0
  536. oxcrypto-0.1.0/python/oxcrypto/password/legacy_crypt.pyi +9 -0
  537. oxcrypto-0.1.0/python/oxcrypto/password/password_auth.py +7 -0
  538. oxcrypto-0.1.0/python/oxcrypto/password/password_auth.pyi +9 -0
  539. oxcrypto-0.1.0/python/oxcrypto/password/pbkdf2.py +7 -0
  540. oxcrypto-0.1.0/python/oxcrypto/password/pbkdf2.pyi +21 -0
  541. oxcrypto-0.1.0/python/oxcrypto/password/scrypt.py +7 -0
  542. oxcrypto-0.1.0/python/oxcrypto/password/scrypt.pyi +19 -0
  543. oxcrypto-0.1.0/python/oxcrypto/password/sha_crypt.py +7 -0
  544. oxcrypto-0.1.0/python/oxcrypto/password/sha_crypt.pyi +9 -0
  545. oxcrypto-0.1.0/python/oxcrypto/password/yescrypt.py +7 -0
  546. oxcrypto-0.1.0/python/oxcrypto/password/yescrypt.pyi +27 -0
  547. oxcrypto-0.1.0/python/oxcrypto/pki/__init__.py +1 -0
  548. oxcrypto-0.1.0/python/oxcrypto/pki/cms.py +7 -0
  549. oxcrypto-0.1.0/python/oxcrypto/pki/cms.pyi +31 -0
  550. oxcrypto-0.1.0/python/oxcrypto/pki/path.py +7 -0
  551. oxcrypto-0.1.0/python/oxcrypto/pki/path.pyi +21 -0
  552. oxcrypto-0.1.0/python/oxcrypto/pki/x509.py +15 -0
  553. oxcrypto-0.1.0/python/oxcrypto/pki/x509.pyi +125 -0
  554. oxcrypto-0.1.0/python/oxcrypto/py.typed +0 -0
  555. oxcrypto-0.1.0/python/oxcrypto/random/__init__.py +7 -0
  556. oxcrypto-0.1.0/python/oxcrypto/random/__init__.pyi +3 -0
  557. oxcrypto-0.1.0/python/oxcrypto/random/chacha.py +8 -0
  558. oxcrypto-0.1.0/python/oxcrypto/random/chacha.pyi +16 -0
  559. oxcrypto-0.1.0/python/oxcrypto/secret_sharing/__init__.py +1 -0
  560. oxcrypto-0.1.0/python/oxcrypto/secret_sharing/feldman.py +7 -0
  561. oxcrypto-0.1.0/python/oxcrypto/secret_sharing/feldman.pyi +12 -0
  562. oxcrypto-0.1.0/python/oxcrypto/secret_sharing/pedersen.py +7 -0
  563. oxcrypto-0.1.0/python/oxcrypto/secret_sharing/pedersen.pyi +14 -0
  564. oxcrypto-0.1.0/python/oxcrypto/secret_sharing/shamir.py +7 -0
  565. oxcrypto-0.1.0/python/oxcrypto/secret_sharing/shamir.pyi +10 -0
  566. oxcrypto-0.1.0/python/oxcrypto/signature/__init__.py +1 -0
  567. oxcrypto-0.1.0/python/oxcrypto/signature/blind_rsa.py +10 -0
  568. oxcrypto-0.1.0/python/oxcrypto/signature/blind_rsa.pyi +42 -0
  569. oxcrypto-0.1.0/python/oxcrypto/signature/bls.py +9 -0
  570. oxcrypto-0.1.0/python/oxcrypto/signature/bls.pyi +38 -0
  571. oxcrypto-0.1.0/python/oxcrypto/signature/dsa.py +9 -0
  572. oxcrypto-0.1.0/python/oxcrypto/signature/dsa.pyi +67 -0
  573. oxcrypto-0.1.0/python/oxcrypto/signature/ecdsa.py +9 -0
  574. oxcrypto-0.1.0/python/oxcrypto/signature/ecdsa.pyi +107 -0
  575. oxcrypto-0.1.0/python/oxcrypto/signature/ed25519.py +9 -0
  576. oxcrypto-0.1.0/python/oxcrypto/signature/ed25519.pyi +43 -0
  577. oxcrypto-0.1.0/python/oxcrypto/signature/ed448.py +9 -0
  578. oxcrypto-0.1.0/python/oxcrypto/signature/ed448.pyi +43 -0
  579. oxcrypto-0.1.0/python/oxcrypto/signature/fn_dsa.py +9 -0
  580. oxcrypto-0.1.0/python/oxcrypto/signature/fn_dsa.pyi +45 -0
  581. oxcrypto-0.1.0/python/oxcrypto/signature/ml_dsa.py +9 -0
  582. oxcrypto-0.1.0/python/oxcrypto/signature/ml_dsa.pyi +46 -0
  583. oxcrypto-0.1.0/python/oxcrypto/signature/rsa.py +9 -0
  584. oxcrypto-0.1.0/python/oxcrypto/signature/rsa.pyi +117 -0
  585. oxcrypto-0.1.0/python/oxcrypto/signature/schnorr.py +9 -0
  586. oxcrypto-0.1.0/python/oxcrypto/signature/schnorr.pyi +24 -0
  587. oxcrypto-0.1.0/python/oxcrypto/signature/slh_dsa.py +9 -0
  588. oxcrypto-0.1.0/python/oxcrypto/signature/slh_dsa.pyi +55 -0
  589. oxcrypto-0.1.0/python/oxcrypto/signature/sr25519.py +9 -0
  590. oxcrypto-0.1.0/python/oxcrypto/signature/sr25519.pyi +26 -0
  591. oxcrypto-0.1.0/python/oxcrypto/signature/xmss.py +9 -0
  592. oxcrypto-0.1.0/python/oxcrypto/signature/xmss.pyi +69 -0
  593. oxcrypto-0.1.0/python/oxcrypto/ssh/__init__.py +1 -0
  594. oxcrypto-0.1.0/python/oxcrypto/ssh/openssh.py +10 -0
  595. oxcrypto-0.1.0/python/oxcrypto/ssh/openssh.pyi +110 -0
  596. oxcrypto-0.1.0/python/oxcrypto/ssh/sshsig.py +7 -0
  597. oxcrypto-0.1.0/python/oxcrypto/ssh/sshsig.pyi +29 -0
  598. oxcrypto-0.1.0/python/oxcrypto/stream/__init__.py +1 -0
  599. oxcrypto-0.1.0/python/oxcrypto/stream/chacha20.py +8 -0
  600. oxcrypto-0.1.0/python/oxcrypto/stream/chacha20.pyi +23 -0
  601. oxcrypto-0.1.0/python/oxcrypto/stream/hc_256.py +8 -0
  602. oxcrypto-0.1.0/python/oxcrypto/stream/hc_256.pyi +14 -0
  603. oxcrypto-0.1.0/python/oxcrypto/stream/rabbit.py +8 -0
  604. oxcrypto-0.1.0/python/oxcrypto/stream/rabbit.pyi +15 -0
  605. oxcrypto-0.1.0/python/oxcrypto/stream/rc4.py +8 -0
  606. oxcrypto-0.1.0/python/oxcrypto/stream/rc4.pyi +14 -0
  607. oxcrypto-0.1.0/python/oxcrypto/stream/salsa20.py +8 -0
  608. oxcrypto-0.1.0/python/oxcrypto/stream/salsa20.pyi +22 -0
  609. oxcrypto-0.1.0/python/oxcrypto/threshold/__init__.py +1 -0
  610. oxcrypto-0.1.0/python/oxcrypto/threshold/frost.py +19 -0
  611. oxcrypto-0.1.0/python/oxcrypto/threshold/frost.pyi +69 -0
  612. oxcrypto-0.1.0/python/oxcrypto/universal_hash/__init__.py +1 -0
  613. oxcrypto-0.1.0/python/oxcrypto/universal_hash/ghash.py +7 -0
  614. oxcrypto-0.1.0/python/oxcrypto/universal_hash/ghash.pyi +12 -0
  615. oxcrypto-0.1.0/python/oxcrypto/universal_hash/poly1305.py +7 -0
  616. oxcrypto-0.1.0/python/oxcrypto/universal_hash/poly1305.pyi +12 -0
  617. oxcrypto-0.1.0/python/oxcrypto/universal_hash/polyval.py +7 -0
  618. oxcrypto-0.1.0/python/oxcrypto/universal_hash/polyval.pyi +12 -0
  619. oxcrypto-0.1.0/python/oxcrypto/vrf/__init__.py +1 -0
  620. oxcrypto-0.1.0/python/oxcrypto/vrf/ecvrf.py +9 -0
  621. oxcrypto-0.1.0/python/oxcrypto/vrf/ecvrf.pyi +26 -0
  622. oxcrypto-0.1.0/python/oxcrypto/xof/__init__.py +8 -0
  623. oxcrypto-0.1.0/python/oxcrypto/xof/__init__.pyi +12 -0
  624. oxcrypto-0.1.0/python/oxcrypto/xof/ascon_xof128.py +8 -0
  625. oxcrypto-0.1.0/python/oxcrypto/xof/ascon_xof128.pyi +24 -0
  626. oxcrypto-0.1.0/python/oxcrypto/xof/bash_prg_hash.py +7 -0
  627. oxcrypto-0.1.0/python/oxcrypto/xof/bash_prg_hash.pyi +19 -0
  628. oxcrypto-0.1.0/python/oxcrypto/xof/cshake.py +7 -0
  629. oxcrypto-0.1.0/python/oxcrypto/xof/cshake.pyi +31 -0
  630. oxcrypto-0.1.0/python/oxcrypto/xof/k12.py +7 -0
  631. oxcrypto-0.1.0/python/oxcrypto/xof/k12.pyi +17 -0
  632. oxcrypto-0.1.0/python/oxcrypto/xof/shake.py +7 -0
  633. oxcrypto-0.1.0/python/oxcrypto/xof/shake.pyi +13 -0
  634. oxcrypto-0.1.0/python/oxcrypto/xof/tuple_hash.py +7 -0
  635. oxcrypto-0.1.0/python/oxcrypto/xof/tuple_hash.pyi +13 -0
  636. oxcrypto-0.1.0/python/oxcrypto/xof/turboshake.py +7 -0
  637. oxcrypto-0.1.0/python/oxcrypto/xof/turboshake.pyi +22 -0
  638. oxcrypto-0.1.0/scripts/licenses.py +205 -0
  639. oxcrypto-0.1.0/src/aead/aes_gcm.rs +10 -0
  640. oxcrypto-0.1.0/src/aead/aes_gcm_siv.rs +9 -0
  641. oxcrypto-0.1.0/src/aead/ascon_aead128.rs +9 -0
  642. oxcrypto-0.1.0/src/aead/belt_dwp.rs +8 -0
  643. oxcrypto-0.1.0/src/aead/chacha20poly1305.rs +20 -0
  644. oxcrypto-0.1.0/src/aead/deoxys.rs +15 -0
  645. oxcrypto-0.1.0/src/aead/mod.rs +35 -0
  646. oxcrypto-0.1.0/src/aead/stream.rs +177 -0
  647. oxcrypto-0.1.0/src/aead/template.rs +438 -0
  648. oxcrypto-0.1.0/src/aead/xaes_256_gcm.rs +10 -0
  649. oxcrypto-0.1.0/src/aead/xoodyak.rs +94 -0
  650. oxcrypto-0.1.0/src/age/mod.rs +10 -0
  651. oxcrypto-0.1.0/src/age/x25519.rs +155 -0
  652. oxcrypto-0.1.0/src/cipher/aes.rs +10 -0
  653. oxcrypto-0.1.0/src/cipher/aria.rs +10 -0
  654. oxcrypto-0.1.0/src/cipher/belt_block.rs +8 -0
  655. oxcrypto-0.1.0/src/cipher/belt_ctr.rs +56 -0
  656. oxcrypto-0.1.0/src/cipher/block.rs +222 -0
  657. oxcrypto-0.1.0/src/cipher/blowfish.rs +8 -0
  658. oxcrypto-0.1.0/src/cipher/camellia.rs +10 -0
  659. oxcrypto-0.1.0/src/cipher/cast5.rs +8 -0
  660. oxcrypto-0.1.0/src/cipher/cast6.rs +8 -0
  661. oxcrypto-0.1.0/src/cipher/cbc.rs +6 -0
  662. oxcrypto-0.1.0/src/cipher/cfb.rs +6 -0
  663. oxcrypto-0.1.0/src/cipher/cfb8.rs +6 -0
  664. oxcrypto-0.1.0/src/cipher/context.rs +637 -0
  665. oxcrypto-0.1.0/src/cipher/ctr.rs +73 -0
  666. oxcrypto-0.1.0/src/cipher/des.rs +12 -0
  667. oxcrypto-0.1.0/src/cipher/ecb.rs +63 -0
  668. oxcrypto-0.1.0/src/cipher/gift.rs +8 -0
  669. oxcrypto-0.1.0/src/cipher/hazmat.rs +67 -0
  670. oxcrypto-0.1.0/src/cipher/idea.rs +8 -0
  671. oxcrypto-0.1.0/src/cipher/ige.rs +6 -0
  672. oxcrypto-0.1.0/src/cipher/kuznyechik.rs +8 -0
  673. oxcrypto-0.1.0/src/cipher/magma.rs +12 -0
  674. oxcrypto-0.1.0/src/cipher/mod.rs +74 -0
  675. oxcrypto-0.1.0/src/cipher/ofb.rs +6 -0
  676. oxcrypto-0.1.0/src/cipher/pcbc.rs +6 -0
  677. oxcrypto-0.1.0/src/cipher/rc2.rs +8 -0
  678. oxcrypto-0.1.0/src/cipher/rc5.rs +12 -0
  679. oxcrypto-0.1.0/src/cipher/serpent.rs +8 -0
  680. oxcrypto-0.1.0/src/cipher/sm4.rs +8 -0
  681. oxcrypto-0.1.0/src/cipher/speck.rs +17 -0
  682. oxcrypto-0.1.0/src/cipher/threefish.rs +10 -0
  683. oxcrypto-0.1.0/src/cipher/twofish.rs +8 -0
  684. oxcrypto-0.1.0/src/cipher/xtea.rs +8 -0
  685. oxcrypto-0.1.0/src/cose/mod.rs +752 -0
  686. oxcrypto-0.1.0/src/encoding/base16.rs +49 -0
  687. oxcrypto-0.1.0/src/encoding/base32.rs +13 -0
  688. oxcrypto-0.1.0/src/encoding/base64.rs +23 -0
  689. oxcrypto-0.1.0/src/encoding/mod.rs +17 -0
  690. oxcrypto-0.1.0/src/encoding/pem.rs +54 -0
  691. oxcrypto-0.1.0/src/encoding/template.rs +93 -0
  692. oxcrypto-0.1.0/src/encryption/mod.rs +10 -0
  693. oxcrypto-0.1.0/src/encryption/rsa.rs +136 -0
  694. oxcrypto-0.1.0/src/errors.rs +14 -0
  695. oxcrypto-0.1.0/src/exchange/bign.rs +246 -0
  696. oxcrypto-0.1.0/src/exchange/ecdh.rs +316 -0
  697. oxcrypto-0.1.0/src/exchange/mod.rs +24 -0
  698. oxcrypto-0.1.0/src/exchange/x25519.rs +213 -0
  699. oxcrypto-0.1.0/src/exchange/x448.rs +213 -0
  700. oxcrypto-0.1.0/src/hash/ascon_hash256.rs +8 -0
  701. oxcrypto-0.1.0/src/hash/bao.rs +209 -0
  702. oxcrypto-0.1.0/src/hash/bash_hash.rs +10 -0
  703. oxcrypto-0.1.0/src/hash/belt_hash.rs +8 -0
  704. oxcrypto-0.1.0/src/hash/blake2.rs +177 -0
  705. oxcrypto-0.1.0/src/hash/blake3.rs +69 -0
  706. oxcrypto-0.1.0/src/hash/fsb.rs +12 -0
  707. oxcrypto-0.1.0/src/hash/gost94.rs +11 -0
  708. oxcrypto-0.1.0/src/hash/groestl.rs +44 -0
  709. oxcrypto-0.1.0/src/hash/jh.rs +11 -0
  710. oxcrypto-0.1.0/src/hash/keccak.rs +14 -0
  711. oxcrypto-0.1.0/src/hash/kupyna.rs +44 -0
  712. oxcrypto-0.1.0/src/hash/md2.rs +8 -0
  713. oxcrypto-0.1.0/src/hash/md4.rs +8 -0
  714. oxcrypto-0.1.0/src/hash/md5.rs +8 -0
  715. oxcrypto-0.1.0/src/hash/mod.rs +64 -0
  716. oxcrypto-0.1.0/src/hash/ripemd.rs +11 -0
  717. oxcrypto-0.1.0/src/hash/sha1.rs +8 -0
  718. oxcrypto-0.1.0/src/hash/sha1_checked.rs +30 -0
  719. oxcrypto-0.1.0/src/hash/sha2.rs +15 -0
  720. oxcrypto-0.1.0/src/hash/sha3.rs +13 -0
  721. oxcrypto-0.1.0/src/hash/shabal.rs +12 -0
  722. oxcrypto-0.1.0/src/hash/skein.rs +24 -0
  723. oxcrypto-0.1.0/src/hash/sm3.rs +8 -0
  724. oxcrypto-0.1.0/src/hash/streebog.rs +9 -0
  725. oxcrypto-0.1.0/src/hash/template.rs +482 -0
  726. oxcrypto-0.1.0/src/hash/tiger.rs +9 -0
  727. oxcrypto-0.1.0/src/hash/whirlpool.rs +8 -0
  728. oxcrypto-0.1.0/src/hazmat/ascon.rs +34 -0
  729. oxcrypto-0.1.0/src/hazmat/bash_f.rs +27 -0
  730. oxcrypto-0.1.0/src/hazmat/decaf448.rs +106 -0
  731. oxcrypto-0.1.0/src/hazmat/hash_to_curve.rs +106 -0
  732. oxcrypto-0.1.0/src/hazmat/keccak.rs +64 -0
  733. oxcrypto-0.1.0/src/hazmat/mod.rs +21 -0
  734. oxcrypto-0.1.0/src/hazmat/ristretto255.rs +108 -0
  735. oxcrypto-0.1.0/src/hazmat/template.rs +78 -0
  736. oxcrypto-0.1.0/src/hd/bip32.rs +279 -0
  737. oxcrypto-0.1.0/src/hd/bip39.rs +212 -0
  738. oxcrypto-0.1.0/src/hd/mod.rs +15 -0
  739. oxcrypto-0.1.0/src/hpke/keys.rs +140 -0
  740. oxcrypto-0.1.0/src/hpke/mod.rs +231 -0
  741. oxcrypto-0.1.0/src/hpke/suite.rs +451 -0
  742. oxcrypto-0.1.0/src/int.rs +64 -0
  743. oxcrypto-0.1.0/src/jose/jwe.rs +734 -0
  744. oxcrypto-0.1.0/src/jose/jwk.rs +605 -0
  745. oxcrypto-0.1.0/src/jose/jws.rs +152 -0
  746. oxcrypto-0.1.0/src/jose/jwt.rs +124 -0
  747. oxcrypto-0.1.0/src/jose/mod.rs +117 -0
  748. oxcrypto-0.1.0/src/jose/sig.rs +285 -0
  749. oxcrypto-0.1.0/src/kdf/ansi_x963_kdf.rs +18 -0
  750. oxcrypto-0.1.0/src/kdf/bake_kdf.rs +83 -0
  751. oxcrypto-0.1.0/src/kdf/hkdf.rs +183 -0
  752. oxcrypto-0.1.0/src/kdf/kbkdf.rs +272 -0
  753. oxcrypto-0.1.0/src/kdf/mod.rs +20 -0
  754. oxcrypto-0.1.0/src/kdf/one_step_kdf.rs +18 -0
  755. oxcrypto-0.1.0/src/kdf/support.rs +71 -0
  756. oxcrypto-0.1.0/src/kem/dhkem.rs +87 -0
  757. oxcrypto-0.1.0/src/kem/frodo_kem.rs +90 -0
  758. oxcrypto-0.1.0/src/kem/hqc_kem.rs +14 -0
  759. oxcrypto-0.1.0/src/kem/ml_kem.rs +13 -0
  760. oxcrypto-0.1.0/src/kem/mod.rs +33 -0
  761. oxcrypto-0.1.0/src/kem/sntrup_kem.rs +20 -0
  762. oxcrypto-0.1.0/src/kem/template.rs +314 -0
  763. oxcrypto-0.1.0/src/kem/x_wing.rs +13 -0
  764. oxcrypto-0.1.0/src/keywrap/aes_kw.rs +119 -0
  765. oxcrypto-0.1.0/src/keywrap/belt_kwp.rs +67 -0
  766. oxcrypto-0.1.0/src/keywrap/mod.rs +12 -0
  767. oxcrypto-0.1.0/src/lib.rs +73 -0
  768. oxcrypto-0.1.0/src/mac/cbc_mac.rs +52 -0
  769. oxcrypto-0.1.0/src/mac/cmac.rs +48 -0
  770. oxcrypto-0.1.0/src/mac/hmac.rs +59 -0
  771. oxcrypto-0.1.0/src/mac/mod.rs +20 -0
  772. oxcrypto-0.1.0/src/mac/pmac.rs +48 -0
  773. oxcrypto-0.1.0/src/mac/retail_mac.rs +52 -0
  774. oxcrypto-0.1.0/src/mac/template.rs +255 -0
  775. oxcrypto-0.1.0/src/nacl/crypto_box.rs +157 -0
  776. oxcrypto-0.1.0/src/nacl/crypto_secretbox.rs +94 -0
  777. oxcrypto-0.1.0/src/nacl/mod.rs +15 -0
  778. oxcrypto-0.1.0/src/nacl/support.rs +80 -0
  779. oxcrypto-0.1.0/src/oprf/base.rs +117 -0
  780. oxcrypto-0.1.0/src/oprf/mod.rs +23 -0
  781. oxcrypto-0.1.0/src/oprf/poprf.rs +180 -0
  782. oxcrypto-0.1.0/src/oprf/template.rs +500 -0
  783. oxcrypto-0.1.0/src/oprf/voprf.rs +173 -0
  784. oxcrypto-0.1.0/src/otp/mod.rs +11 -0
  785. oxcrypto-0.1.0/src/otp/totp.rs +194 -0
  786. oxcrypto-0.1.0/src/pake/mod.rs +14 -0
  787. oxcrypto-0.1.0/src/pake/opaque.rs +561 -0
  788. oxcrypto-0.1.0/src/paseto/mod.rs +345 -0
  789. oxcrypto-0.1.0/src/password/argon2.rs +270 -0
  790. oxcrypto-0.1.0/src/password/balloon.rs +127 -0
  791. oxcrypto-0.1.0/src/password/bcrypt.rs +58 -0
  792. oxcrypto-0.1.0/src/password/bcrypt_pbkdf.rs +35 -0
  793. oxcrypto-0.1.0/src/password/legacy_crypt.rs +45 -0
  794. oxcrypto-0.1.0/src/password/mod.rs +30 -0
  795. oxcrypto-0.1.0/src/password/password_auth.rs +48 -0
  796. oxcrypto-0.1.0/src/password/pbkdf2.rs +120 -0
  797. oxcrypto-0.1.0/src/password/scrypt.rs +84 -0
  798. oxcrypto-0.1.0/src/password/sha_crypt.rs +51 -0
  799. oxcrypto-0.1.0/src/password/support.rs +49 -0
  800. oxcrypto-0.1.0/src/password/yescrypt.rs +76 -0
  801. oxcrypto-0.1.0/src/pki/cms.rs +213 -0
  802. oxcrypto-0.1.0/src/pki/keys.rs +512 -0
  803. oxcrypto-0.1.0/src/pki/mod.rs +18 -0
  804. oxcrypto-0.1.0/src/pki/path.rs +275 -0
  805. oxcrypto-0.1.0/src/pki/x509.rs +640 -0
  806. oxcrypto-0.1.0/src/random/chacha20.rs +95 -0
  807. oxcrypto-0.1.0/src/random/getrandom.rs +17 -0
  808. oxcrypto-0.1.0/src/random/mod.rs +13 -0
  809. oxcrypto-0.1.0/src/secret_sharing/mod.rs +21 -0
  810. oxcrypto-0.1.0/src/secret_sharing/shamir.rs +45 -0
  811. oxcrypto-0.1.0/src/secret_sharing/vss.rs +327 -0
  812. oxcrypto-0.1.0/src/signature/blind_rsa.rs +416 -0
  813. oxcrypto-0.1.0/src/signature/bls.rs +305 -0
  814. oxcrypto-0.1.0/src/signature/dsa.rs +343 -0
  815. oxcrypto-0.1.0/src/signature/ecdsa.rs +480 -0
  816. oxcrypto-0.1.0/src/signature/ed25519.rs +278 -0
  817. oxcrypto-0.1.0/src/signature/ed448.rs +272 -0
  818. oxcrypto-0.1.0/src/signature/fn_dsa.rs +170 -0
  819. oxcrypto-0.1.0/src/signature/ml_dsa.rs +177 -0
  820. oxcrypto-0.1.0/src/signature/mod.rs +64 -0
  821. oxcrypto-0.1.0/src/signature/pkcs8.rs +206 -0
  822. oxcrypto-0.1.0/src/signature/rsa.rs +485 -0
  823. oxcrypto-0.1.0/src/signature/schnorr.rs +145 -0
  824. oxcrypto-0.1.0/src/signature/slh_dsa.rs +157 -0
  825. oxcrypto-0.1.0/src/signature/sr25519.rs +138 -0
  826. oxcrypto-0.1.0/src/signature/support.rs +228 -0
  827. oxcrypto-0.1.0/src/signature/template.rs +727 -0
  828. oxcrypto-0.1.0/src/signature/xmss.rs +302 -0
  829. oxcrypto-0.1.0/src/ssh/convert.rs +329 -0
  830. oxcrypto-0.1.0/src/ssh/mod.rs +15 -0
  831. oxcrypto-0.1.0/src/ssh/openssh.rs +410 -0
  832. oxcrypto-0.1.0/src/ssh/sshsig.rs +75 -0
  833. oxcrypto-0.1.0/src/stream/chacha20.rs +17 -0
  834. oxcrypto-0.1.0/src/stream/hc_256.rs +8 -0
  835. oxcrypto-0.1.0/src/stream/mod.rs +24 -0
  836. oxcrypto-0.1.0/src/stream/rabbit.rs +11 -0
  837. oxcrypto-0.1.0/src/stream/rc4.rs +8 -0
  838. oxcrypto-0.1.0/src/stream/salsa20.rs +15 -0
  839. oxcrypto-0.1.0/src/stream/template.rs +307 -0
  840. oxcrypto-0.1.0/src/threshold/frost.rs +608 -0
  841. oxcrypto-0.1.0/src/threshold/mod.rs +15 -0
  842. oxcrypto-0.1.0/src/universal_hash/ghash.rs +19 -0
  843. oxcrypto-0.1.0/src/universal_hash/mod.rs +15 -0
  844. oxcrypto-0.1.0/src/universal_hash/poly1305.rs +17 -0
  845. oxcrypto-0.1.0/src/universal_hash/polyval.rs +19 -0
  846. oxcrypto-0.1.0/src/universal_hash/template.rs +65 -0
  847. oxcrypto-0.1.0/src/vrf/ecvrf.rs +154 -0
  848. oxcrypto-0.1.0/src/vrf/mod.rs +12 -0
  849. oxcrypto-0.1.0/src/xof/ascon_xof128.rs +24 -0
  850. oxcrypto-0.1.0/src/xof/bash_prg_hash.rs +25 -0
  851. oxcrypto-0.1.0/src/xof/cshake.rs +12 -0
  852. oxcrypto-0.1.0/src/xof/k12.rs +13 -0
  853. oxcrypto-0.1.0/src/xof/mod.rs +26 -0
  854. oxcrypto-0.1.0/src/xof/shake.rs +11 -0
  855. oxcrypto-0.1.0/src/xof/template.rs +218 -0
  856. oxcrypto-0.1.0/src/xof/tuple_hash.rs +78 -0
  857. oxcrypto-0.1.0/src/xof/turboshake.rs +38 -0
  858. oxcrypto-0.1.0/tests/aead/__init__.py +0 -0
  859. oxcrypto-0.1.0/tests/aead/support.py +65 -0
  860. oxcrypto-0.1.0/tests/aead/test_aes_gcm.py +16 -0
  861. oxcrypto-0.1.0/tests/aead/test_aes_gcm_siv.py +16 -0
  862. oxcrypto-0.1.0/tests/aead/test_api.py +145 -0
  863. oxcrypto-0.1.0/tests/aead/test_ascon_aead128.py +16 -0
  864. oxcrypto-0.1.0/tests/aead/test_belt_dwp.py +15 -0
  865. oxcrypto-0.1.0/tests/aead/test_chacha20poly1305.py +32 -0
  866. oxcrypto-0.1.0/tests/aead/test_deoxys.py +24 -0
  867. oxcrypto-0.1.0/tests/aead/test_stream.py +102 -0
  868. oxcrypto-0.1.0/tests/aead/test_xaes_256_gcm.py +16 -0
  869. oxcrypto-0.1.0/tests/aead/test_xoodyak.py +25 -0
  870. oxcrypto-0.1.0/tests/age/__init__.py +0 -0
  871. oxcrypto-0.1.0/tests/age/test_x25519.py +134 -0
  872. oxcrypto-0.1.0/tests/cipher/__init__.py +0 -0
  873. oxcrypto-0.1.0/tests/cipher/test_block_ciphers.py +103 -0
  874. oxcrypto-0.1.0/tests/cipher/test_integer_options.py +17 -0
  875. oxcrypto-0.1.0/tests/cipher/test_modes.py +230 -0
  876. oxcrypto-0.1.0/tests/cose/test_cose.py +184 -0
  877. oxcrypto-0.1.0/tests/data/aead/aes_gcm.json +2172 -0
  878. oxcrypto-0.1.0/tests/data/aead/aes_gcm_siv.json +2227 -0
  879. oxcrypto-0.1.0/tests/data/aead/ascon_aead128.json +2777 -0
  880. oxcrypto-0.1.0/tests/data/aead/belt_dwp.json +21 -0
  881. oxcrypto-0.1.0/tests/data/aead/chacha20_poly1305.json +3481 -0
  882. oxcrypto-0.1.0/tests/data/aead/deoxys_i_128.json +69 -0
  883. oxcrypto-0.1.0/tests/data/aead/deoxys_i_256.json +69 -0
  884. oxcrypto-0.1.0/tests/data/aead/deoxys_ii_128.json +69 -0
  885. oxcrypto-0.1.0/tests/data/aead/deoxys_ii_256.json +69 -0
  886. oxcrypto-0.1.0/tests/data/aead/xaes_256_gcm.json +21 -0
  887. oxcrypto-0.1.0/tests/data/aead/xchacha20_poly1305.json +3371 -0
  888. oxcrypto-0.1.0/tests/data/aead/xoodyak.json +8717 -0
  889. oxcrypto-0.1.0/tests/data/age/cctv_x25519.json +1044 -0
  890. oxcrypto-0.1.0/tests/data/cipher/block_ciphers.json +802 -0
  891. oxcrypto-0.1.0/tests/data/cipher/modes.json +592 -0
  892. oxcrypto-0.1.0/tests/data/cose/LICENSE +24 -0
  893. oxcrypto-0.1.0/tests/data/cose/examples.json +845 -0
  894. oxcrypto-0.1.0/tests/data/encoding/base16.json +116 -0
  895. oxcrypto-0.1.0/tests/data/encoding/base32.json +188 -0
  896. oxcrypto-0.1.0/tests/data/encoding/base64.json +566 -0
  897. oxcrypto-0.1.0/tests/data/encoding/pem.json +20 -0
  898. oxcrypto-0.1.0/tests/data/encryption/rsa.json +2645 -0
  899. oxcrypto-0.1.0/tests/data/exchange/ecdh_cavp.json +1 -0
  900. oxcrypto-0.1.0/tests/data/exchange/ecdh_openssl_brainpool_t1.json +42 -0
  901. oxcrypto-0.1.0/tests/data/exchange/ecdh_wycheproof.json +1 -0
  902. oxcrypto-0.1.0/tests/data/exchange/rfc7748.json +53 -0
  903. oxcrypto-0.1.0/tests/data/exchange/wycheproof_x25519.json +6001 -0
  904. oxcrypto-0.1.0/tests/data/exchange/wycheproof_x25519_asn.json +6208 -0
  905. oxcrypto-0.1.0/tests/data/exchange/wycheproof_x25519_pem.json +6001 -0
  906. oxcrypto-0.1.0/tests/data/exchange/wycheproof_x448.json +5893 -0
  907. oxcrypto-0.1.0/tests/data/exchange/wycheproof_x448_asn.json +6098 -0
  908. oxcrypto-0.1.0/tests/data/exchange/wycheproof_x448_pem.json +5893 -0
  909. oxcrypto-0.1.0/tests/data/hash/ascon_hash256.json +122 -0
  910. oxcrypto-0.1.0/tests/data/hash/bao.json +3390 -0
  911. oxcrypto-0.1.0/tests/data/hash/bash_hash.json +52 -0
  912. oxcrypto-0.1.0/tests/data/hash/belt_hash.json +17 -0
  913. oxcrypto-0.1.0/tests/data/hash/blake2.json +733 -0
  914. oxcrypto-0.1.0/tests/data/hash/blake3.json +877 -0
  915. oxcrypto-0.1.0/tests/data/hash/fsb.json +77 -0
  916. oxcrypto-0.1.0/tests/data/hash/gost94.json +103 -0
  917. oxcrypto-0.1.0/tests/data/hash/groestl.json +442 -0
  918. oxcrypto-0.1.0/tests/data/hash/jh.json +482 -0
  919. oxcrypto-0.1.0/tests/data/hash/keccak.json +77 -0
  920. oxcrypto-0.1.0/tests/data/hash/kupyna.json +73 -0
  921. oxcrypto-0.1.0/tests/data/hash/md2.json +17 -0
  922. oxcrypto-0.1.0/tests/data/hash/md4.json +47 -0
  923. oxcrypto-0.1.0/tests/data/hash/md5.json +32 -0
  924. oxcrypto-0.1.0/tests/data/hash/ripemd.json +152 -0
  925. oxcrypto-0.1.0/tests/data/hash/sha1.json +22 -0
  926. oxcrypto-0.1.0/tests/data/hash/sha1_checked.json +36 -0
  927. oxcrypto-0.1.0/tests/data/hash/sha2_nist.json +50 -0
  928. oxcrypto-0.1.0/tests/data/hash/sha3_nist.json +42 -0
  929. oxcrypto-0.1.0/tests/data/hash/shabal.json +752 -0
  930. oxcrypto-0.1.0/tests/data/hash/skein.json +297 -0
  931. oxcrypto-0.1.0/tests/data/hash/sm3.json +27 -0
  932. oxcrypto-0.1.0/tests/data/hash/streebog.json +72 -0
  933. oxcrypto-0.1.0/tests/data/hash/tiger.json +72 -0
  934. oxcrypto-0.1.0/tests/data/hash/whirlpool.json +92 -0
  935. oxcrypto-0.1.0/tests/data/hazmat/ascon.json +20 -0
  936. oxcrypto-0.1.0/tests/data/hazmat/bash_f.json +7 -0
  937. oxcrypto-0.1.0/tests/data/hazmat/hash_to_curve.json +1 -0
  938. oxcrypto-0.1.0/tests/data/hazmat/keccak.json +50 -0
  939. oxcrypto-0.1.0/tests/data/hazmat/rfc9496.json +161 -0
  940. oxcrypto-0.1.0/tests/data/hd/bip32.json +175 -0
  941. oxcrypto-0.1.0/tests/data/hd/bip39.json +1462 -0
  942. oxcrypto-0.1.0/tests/data/hd/bip39_japanese.json +170 -0
  943. oxcrypto-0.1.0/tests/data/hpke/pq.json +640 -0
  944. oxcrypto-0.1.0/tests/data/hpke/rfc9180.json +4298 -0
  945. oxcrypto-0.1.0/tests/data/jose/rfc.json +114 -0
  946. oxcrypto-0.1.0/tests/data/kdf/ansi_x963_kdf_acvp.json +674 -0
  947. oxcrypto-0.1.0/tests/data/kdf/bake_kdf.json +36 -0
  948. oxcrypto-0.1.0/tests/data/kdf/hkdf_rfc5869.json +65 -0
  949. oxcrypto-0.1.0/tests/data/kdf/hkdf_streebog.json +14 -0
  950. oxcrypto-0.1.0/tests/data/kdf/hkdf_wycheproof.json +3392 -0
  951. oxcrypto-0.1.0/tests/data/kdf/kbkdf_nist.json +6118 -0
  952. oxcrypto-0.1.0/tests/data/kdf/one_step_kdf_acvp.json +212 -0
  953. oxcrypto-0.1.0/tests/data/kem/dhkem.json +38 -0
  954. oxcrypto-0.1.0/tests/data/kem/frodo_kem.json +86 -0
  955. oxcrypto-0.1.0/tests/data/kem/hqc_kem.json +26 -0
  956. oxcrypto-0.1.0/tests/data/kem/ml_kem.json +56 -0
  957. oxcrypto-0.1.0/tests/data/kem/ml_kem_acvp.txt +38 -0
  958. oxcrypto-0.1.0/tests/data/kem/ml_kem_key_check.json +182 -0
  959. oxcrypto-0.1.0/tests/data/kem/sntrup_kem.json +16 -0
  960. oxcrypto-0.1.0/tests/data/kem/x_wing.json +26 -0
  961. oxcrypto-0.1.0/tests/data/keywrap/aes_kw.json +142 -0
  962. oxcrypto-0.1.0/tests/data/keywrap/belt_kwp.json +16 -0
  963. oxcrypto-0.1.0/tests/data/mac/cbc_mac.json +772 -0
  964. oxcrypto-0.1.0/tests/data/mac/cmac.json +1577 -0
  965. oxcrypto-0.1.0/tests/data/mac/hmac.json +1164 -0
  966. oxcrypto-0.1.0/tests/data/mac/pmac.json +149 -0
  967. oxcrypto-0.1.0/tests/data/mac/retail_mac.json +772 -0
  968. oxcrypto-0.1.0/tests/data/nacl/vectors.json +29 -0
  969. oxcrypto-0.1.0/tests/data/oprf/rfc9497.json +762 -0
  970. oxcrypto-0.1.0/tests/data/otp/hotp.json +46 -0
  971. oxcrypto-0.1.0/tests/data/otp/totp.json +113 -0
  972. oxcrypto-0.1.0/tests/data/pake/opaque_rfc9807.json +125 -0
  973. oxcrypto-0.1.0/tests/data/paseto/LICENSE +16 -0
  974. oxcrypto-0.1.0/tests/data/paseto/v3.json +183 -0
  975. oxcrypto-0.1.0/tests/data/paseto/v4.json +187 -0
  976. oxcrypto-0.1.0/tests/data/password/argon2_reference.json +11 -0
  977. oxcrypto-0.1.0/tests/data/password/argon2_rfc9106.txt +9 -0
  978. oxcrypto-0.1.0/tests/data/password/balloon.json +26 -0
  979. oxcrypto-0.1.0/tests/data/password/bcrypt.json +74 -0
  980. oxcrypto-0.1.0/tests/data/password/bcrypt_pbkdf.json +13 -0
  981. oxcrypto-0.1.0/tests/data/password/legacy_crypt.json +122 -0
  982. oxcrypto-0.1.0/tests/data/password/pbkdf2.json +123 -0
  983. oxcrypto-0.1.0/tests/data/password/scrypt.json +15 -0
  984. oxcrypto-0.1.0/tests/data/password/sha_crypt.json +14 -0
  985. oxcrypto-0.1.0/tests/data/password/yescrypt.json +43 -0
  986. oxcrypto-0.1.0/tests/data/pki/BadSignedCACRL.crl +0 -0
  987. oxcrypto-0.1.0/tests/data/pki/BadSignedCACert.crt +0 -0
  988. oxcrypto-0.1.0/tests/data/pki/GoodCACRL.crl +0 -0
  989. oxcrypto-0.1.0/tests/data/pki/GoodCACert.crt +0 -0
  990. oxcrypto-0.1.0/tests/data/pki/InvalidCASignatureTest2EE.crt +0 -0
  991. oxcrypto-0.1.0/tests/data/pki/InvalidEESignatureTest3EE.crt +0 -0
  992. oxcrypto-0.1.0/tests/data/pki/InvalidEEnotAfterDateTest6EE.crt +0 -0
  993. oxcrypto-0.1.0/tests/data/pki/InvalidRevokedEETest3EE.crt +0 -0
  994. oxcrypto-0.1.0/tests/data/pki/SignedValidSignaturesTest1.content +3 -0
  995. oxcrypto-0.1.0/tests/data/pki/SignedValidSignaturesTest1.p7s +0 -0
  996. oxcrypto-0.1.0/tests/data/pki/TrustAnchorRootCRL.crl +0 -0
  997. oxcrypto-0.1.0/tests/data/pki/TrustAnchorRootCertificate.crt +0 -0
  998. oxcrypto-0.1.0/tests/data/pki/ValidCertificatePathTest1EE.crt +0 -0
  999. oxcrypto-0.1.0/tests/data/pki/openssl_signed_data.der +0 -0
  1000. oxcrypto-0.1.0/tests/data/pki/rsa2048-csr.pem +19 -0
  1001. oxcrypto-0.1.0/tests/data/random/chacha.json +170 -0
  1002. oxcrypto-0.1.0/tests/data/signature/bip340.json +1 -0
  1003. oxcrypto-0.1.0/tests/data/signature/blind_rsa.json +39 -0
  1004. oxcrypto-0.1.0/tests/data/signature/bls.json +614 -0
  1005. oxcrypto-0.1.0/tests/data/signature/dsa.json +3775 -0
  1006. oxcrypto-0.1.0/tests/data/signature/ecdsa_cavp_sigver.json +1 -0
  1007. oxcrypto-0.1.0/tests/data/signature/ecdsa_openssl_brainpool_t1.json +68 -0
  1008. oxcrypto-0.1.0/tests/data/signature/ecdsa_wycheproof.json +1 -0
  1009. oxcrypto-0.1.0/tests/data/signature/ml_dsa.json +441 -0
  1010. oxcrypto-0.1.0/tests/data/signature/rfc8032.json +170 -0
  1011. oxcrypto-0.1.0/tests/data/signature/rsa.json +6346 -0
  1012. oxcrypto-0.1.0/tests/data/signature/slh_dsa.json +320 -0
  1013. oxcrypto-0.1.0/tests/data/signature/sr25519.json +24 -0
  1014. oxcrypto-0.1.0/tests/data/signature/wycheproof_ed25519.json +3219 -0
  1015. oxcrypto-0.1.0/tests/data/signature/wycheproof_ed448.json +1029 -0
  1016. oxcrypto-0.1.0/tests/data/ssh/openssh.json +90 -0
  1017. oxcrypto-0.1.0/tests/data/stream/chacha20.json +250 -0
  1018. oxcrypto-0.1.0/tests/data/stream/hc_256.json +26 -0
  1019. oxcrypto-0.1.0/tests/data/stream/rabbit.json +50 -0
  1020. oxcrypto-0.1.0/tests/data/stream/rc4.json +2018 -0
  1021. oxcrypto-0.1.0/tests/data/stream/salsa20.json +890 -0
  1022. oxcrypto-0.1.0/tests/data/threshold/frost.json +20 -0
  1023. oxcrypto-0.1.0/tests/data/universal_hash/universal_hash.json +128 -0
  1024. oxcrypto-0.1.0/tests/data/vrf/ecvrf_ristretto255_sha512.json +10 -0
  1025. oxcrypto-0.1.0/tests/data/xof/ascon_cxof128.json +110 -0
  1026. oxcrypto-0.1.0/tests/data/xof/ascon_xof128.json +9 -0
  1027. oxcrypto-0.1.0/tests/data/xof/bash_prg_hash.json +56 -0
  1028. oxcrypto-0.1.0/tests/data/xof/cshake.json +20 -0
  1029. oxcrypto-0.1.0/tests/data/xof/k12.json +16 -0
  1030. oxcrypto-0.1.0/tests/data/xof/shake_nist.json +32 -0
  1031. oxcrypto-0.1.0/tests/data/xof/tuple_hash.json +126 -0
  1032. oxcrypto-0.1.0/tests/data/xof/turboshake.json +124 -0
  1033. oxcrypto-0.1.0/tests/encoding/__init__.py +0 -0
  1034. oxcrypto-0.1.0/tests/encoding/test_pem.py +70 -0
  1035. oxcrypto-0.1.0/tests/encoding/test_rfc4648.py +73 -0
  1036. oxcrypto-0.1.0/tests/encryption/__init__.py +0 -0
  1037. oxcrypto-0.1.0/tests/encryption/test_integer_options.py +15 -0
  1038. oxcrypto-0.1.0/tests/encryption/test_rsa.py +145 -0
  1039. oxcrypto-0.1.0/tests/exchange/__init__.py +0 -0
  1040. oxcrypto-0.1.0/tests/exchange/keys.py +74 -0
  1041. oxcrypto-0.1.0/tests/exchange/test_bign.py +91 -0
  1042. oxcrypto-0.1.0/tests/exchange/test_ecdh.py +146 -0
  1043. oxcrypto-0.1.0/tests/exchange/test_x25519.py +120 -0
  1044. oxcrypto-0.1.0/tests/exchange/test_x448.py +125 -0
  1045. oxcrypto-0.1.0/tests/hash/__init__.py +0 -0
  1046. oxcrypto-0.1.0/tests/hash/test_ascon_hash256.py +20 -0
  1047. oxcrypto-0.1.0/tests/hash/test_bao.py +156 -0
  1048. oxcrypto-0.1.0/tests/hash/test_bash_hash.py +20 -0
  1049. oxcrypto-0.1.0/tests/hash/test_belt_hash.py +20 -0
  1050. oxcrypto-0.1.0/tests/hash/test_blake2.py +75 -0
  1051. oxcrypto-0.1.0/tests/hash/test_blake3.py +67 -0
  1052. oxcrypto-0.1.0/tests/hash/test_fsb.py +20 -0
  1053. oxcrypto-0.1.0/tests/hash/test_gost94.py +20 -0
  1054. oxcrypto-0.1.0/tests/hash/test_groestl.py +50 -0
  1055. oxcrypto-0.1.0/tests/hash/test_hasher.py +90 -0
  1056. oxcrypto-0.1.0/tests/hash/test_integer_options.py +48 -0
  1057. oxcrypto-0.1.0/tests/hash/test_jh.py +20 -0
  1058. oxcrypto-0.1.0/tests/hash/test_keccak.py +27 -0
  1059. oxcrypto-0.1.0/tests/hash/test_kupyna.py +49 -0
  1060. oxcrypto-0.1.0/tests/hash/test_md2.py +20 -0
  1061. oxcrypto-0.1.0/tests/hash/test_md4.py +20 -0
  1062. oxcrypto-0.1.0/tests/hash/test_md5.py +20 -0
  1063. oxcrypto-0.1.0/tests/hash/test_ripemd.py +20 -0
  1064. oxcrypto-0.1.0/tests/hash/test_sha1.py +20 -0
  1065. oxcrypto-0.1.0/tests/hash/test_sha1_checked.py +33 -0
  1066. oxcrypto-0.1.0/tests/hash/test_sha2.py +42 -0
  1067. oxcrypto-0.1.0/tests/hash/test_sha3.py +21 -0
  1068. oxcrypto-0.1.0/tests/hash/test_shabal.py +20 -0
  1069. oxcrypto-0.1.0/tests/hash/test_skein.py +25 -0
  1070. oxcrypto-0.1.0/tests/hash/test_sm3.py +20 -0
  1071. oxcrypto-0.1.0/tests/hash/test_streebog.py +20 -0
  1072. oxcrypto-0.1.0/tests/hash/test_tiger.py +20 -0
  1073. oxcrypto-0.1.0/tests/hash/test_whirlpool.py +20 -0
  1074. oxcrypto-0.1.0/tests/hazmat/__init__.py +0 -0
  1075. oxcrypto-0.1.0/tests/hazmat/test_group.py +95 -0
  1076. oxcrypto-0.1.0/tests/hazmat/test_hash_to_curve.py +44 -0
  1077. oxcrypto-0.1.0/tests/hazmat/test_integer_options.py +18 -0
  1078. oxcrypto-0.1.0/tests/hazmat/test_permutation.py +103 -0
  1079. oxcrypto-0.1.0/tests/hd/__init__.py +0 -0
  1080. oxcrypto-0.1.0/tests/hd/test_bip32.py +149 -0
  1081. oxcrypto-0.1.0/tests/hd/test_bip39.py +103 -0
  1082. oxcrypto-0.1.0/tests/hpke/__init__.py +0 -0
  1083. oxcrypto-0.1.0/tests/hpke/test_hpke.py +315 -0
  1084. oxcrypto-0.1.0/tests/hpke/test_integer_options.py +27 -0
  1085. oxcrypto-0.1.0/tests/jose/test_jose.py +261 -0
  1086. oxcrypto-0.1.0/tests/kdf/test_bake_kdf.py +85 -0
  1087. oxcrypto-0.1.0/tests/kdf/test_digest_kdfs.py +96 -0
  1088. oxcrypto-0.1.0/tests/kdf/test_hkdf.py +124 -0
  1089. oxcrypto-0.1.0/tests/kdf/test_kbkdf.py +214 -0
  1090. oxcrypto-0.1.0/tests/kdf/test_kdf_integer_options.py +41 -0
  1091. oxcrypto-0.1.0/tests/kem/__init__.py +0 -0
  1092. oxcrypto-0.1.0/tests/kem/test_dhkem.py +35 -0
  1093. oxcrypto-0.1.0/tests/kem/test_frodo_kem.py +35 -0
  1094. oxcrypto-0.1.0/tests/kem/test_hqc_kem.py +24 -0
  1095. oxcrypto-0.1.0/tests/kem/test_ml_kem.py +49 -0
  1096. oxcrypto-0.1.0/tests/kem/test_sntrup_kem.py +29 -0
  1097. oxcrypto-0.1.0/tests/kem/test_x_wing.py +24 -0
  1098. oxcrypto-0.1.0/tests/kem/vectors.py +98 -0
  1099. oxcrypto-0.1.0/tests/keywrap/__init__.py +0 -0
  1100. oxcrypto-0.1.0/tests/keywrap/test_aes_kw.py +72 -0
  1101. oxcrypto-0.1.0/tests/keywrap/test_belt_kwp.py +49 -0
  1102. oxcrypto-0.1.0/tests/mac/__init__.py +0 -0
  1103. oxcrypto-0.1.0/tests/mac/test_contract.py +131 -0
  1104. oxcrypto-0.1.0/tests/mac/test_vectors.py +55 -0
  1105. oxcrypto-0.1.0/tests/ml_kem.rs +106 -0
  1106. oxcrypto-0.1.0/tests/nacl/__init__.py +0 -0
  1107. oxcrypto-0.1.0/tests/nacl/test_crypto_box.py +85 -0
  1108. oxcrypto-0.1.0/tests/nacl/test_crypto_secretbox.py +60 -0
  1109. oxcrypto-0.1.0/tests/nacl/vectors.py +42 -0
  1110. oxcrypto-0.1.0/tests/oprf/__init__.py +0 -0
  1111. oxcrypto-0.1.0/tests/oprf/test_oprf.py +17 -0
  1112. oxcrypto-0.1.0/tests/oprf/test_poprf.py +36 -0
  1113. oxcrypto-0.1.0/tests/oprf/test_voprf.py +20 -0
  1114. oxcrypto-0.1.0/tests/oprf/vectors.py +210 -0
  1115. oxcrypto-0.1.0/tests/otp/__init__.py +0 -0
  1116. oxcrypto-0.1.0/tests/otp/test_hotp.py +102 -0
  1117. oxcrypto-0.1.0/tests/otp/test_integer_options.py +26 -0
  1118. oxcrypto-0.1.0/tests/otp/test_totp.py +75 -0
  1119. oxcrypto-0.1.0/tests/pake/__init__.py +0 -0
  1120. oxcrypto-0.1.0/tests/pake/test_opaque.py +384 -0
  1121. oxcrypto-0.1.0/tests/paseto/test_paseto.py +117 -0
  1122. oxcrypto-0.1.0/tests/password/__init__.py +0 -0
  1123. oxcrypto-0.1.0/tests/password/test_argon2.py +121 -0
  1124. oxcrypto-0.1.0/tests/password/test_balloon.py +83 -0
  1125. oxcrypto-0.1.0/tests/password/test_bcrypt.py +73 -0
  1126. oxcrypto-0.1.0/tests/password/test_bcrypt_pbkdf.py +21 -0
  1127. oxcrypto-0.1.0/tests/password/test_integer_options.py +68 -0
  1128. oxcrypto-0.1.0/tests/password/test_legacy_crypt.py +54 -0
  1129. oxcrypto-0.1.0/tests/password/test_password_auth.py +90 -0
  1130. oxcrypto-0.1.0/tests/password/test_pbkdf2.py +58 -0
  1131. oxcrypto-0.1.0/tests/password/test_scrypt.py +72 -0
  1132. oxcrypto-0.1.0/tests/password/test_sha_crypt.py +42 -0
  1133. oxcrypto-0.1.0/tests/password/test_yescrypt.py +76 -0
  1134. oxcrypto-0.1.0/tests/pki/__init__.py +0 -0
  1135. oxcrypto-0.1.0/tests/pki/conftest.py +58 -0
  1136. oxcrypto-0.1.0/tests/pki/test_cms.py +85 -0
  1137. oxcrypto-0.1.0/tests/pki/test_path.py +114 -0
  1138. oxcrypto-0.1.0/tests/pki/test_x509.py +172 -0
  1139. oxcrypto-0.1.0/tests/random/test_chacha.py +107 -0
  1140. oxcrypto-0.1.0/tests/random/test_getrandom.py +22 -0
  1141. oxcrypto-0.1.0/tests/random/test_random_integer_options.py +17 -0
  1142. oxcrypto-0.1.0/tests/secret_sharing/__init__.py +0 -0
  1143. oxcrypto-0.1.0/tests/secret_sharing/test_integer_options.py +24 -0
  1144. oxcrypto-0.1.0/tests/secret_sharing/test_vsss.py +123 -0
  1145. oxcrypto-0.1.0/tests/signature/__init__.py +0 -0
  1146. oxcrypto-0.1.0/tests/signature/keys.py +92 -0
  1147. oxcrypto-0.1.0/tests/signature/test_blind_rsa.py +157 -0
  1148. oxcrypto-0.1.0/tests/signature/test_bls.py +206 -0
  1149. oxcrypto-0.1.0/tests/signature/test_dsa.py +267 -0
  1150. oxcrypto-0.1.0/tests/signature/test_ecdsa.py +299 -0
  1151. oxcrypto-0.1.0/tests/signature/test_ed25519.py +128 -0
  1152. oxcrypto-0.1.0/tests/signature/test_ed448.py +124 -0
  1153. oxcrypto-0.1.0/tests/signature/test_fn_dsa.py +91 -0
  1154. oxcrypto-0.1.0/tests/signature/test_integer_options.py +52 -0
  1155. oxcrypto-0.1.0/tests/signature/test_ml_dsa.py +189 -0
  1156. oxcrypto-0.1.0/tests/signature/test_pbes2.py +133 -0
  1157. oxcrypto-0.1.0/tests/signature/test_rsa.py +295 -0
  1158. oxcrypto-0.1.0/tests/signature/test_schnorr.py +72 -0
  1159. oxcrypto-0.1.0/tests/signature/test_slh_dsa.py +143 -0
  1160. oxcrypto-0.1.0/tests/signature/test_sr25519.py +100 -0
  1161. oxcrypto-0.1.0/tests/signature/test_xmss.py +133 -0
  1162. oxcrypto-0.1.0/tests/ssh/__init__.py +0 -0
  1163. oxcrypto-0.1.0/tests/ssh/test_integer_options.py +31 -0
  1164. oxcrypto-0.1.0/tests/ssh/test_openssh.py +307 -0
  1165. oxcrypto-0.1.0/tests/ssh/test_sshsig.py +115 -0
  1166. oxcrypto-0.1.0/tests/stream/__init__.py +0 -0
  1167. oxcrypto-0.1.0/tests/stream/test_chacha20.py +48 -0
  1168. oxcrypto-0.1.0/tests/stream/test_hc_256.py +17 -0
  1169. oxcrypto-0.1.0/tests/stream/test_integer_options.py +27 -0
  1170. oxcrypto-0.1.0/tests/stream/test_rabbit.py +23 -0
  1171. oxcrypto-0.1.0/tests/stream/test_rc4.py +34 -0
  1172. oxcrypto-0.1.0/tests/stream/test_salsa20.py +42 -0
  1173. oxcrypto-0.1.0/tests/stream/vectors.py +139 -0
  1174. oxcrypto-0.1.0/tests/test_errors.py +17 -0
  1175. oxcrypto-0.1.0/tests/threshold/__init__.py +0 -0
  1176. oxcrypto-0.1.0/tests/threshold/test_frost.py +217 -0
  1177. oxcrypto-0.1.0/tests/threshold/test_integer_options.py +29 -0
  1178. oxcrypto-0.1.0/tests/universal_hash/__init__.py +0 -0
  1179. oxcrypto-0.1.0/tests/universal_hash/test_vectors.py +63 -0
  1180. oxcrypto-0.1.0/tests/vrf/__init__.py +0 -0
  1181. oxcrypto-0.1.0/tests/vrf/test_ecvrf.py +81 -0
  1182. oxcrypto-0.1.0/tests/xof/__init__.py +0 -0
  1183. oxcrypto-0.1.0/tests/xof/test_ascon_xof128.py +64 -0
  1184. oxcrypto-0.1.0/tests/xof/test_bash_prg_hash.py +24 -0
  1185. oxcrypto-0.1.0/tests/xof/test_cshake.py +24 -0
  1186. oxcrypto-0.1.0/tests/xof/test_incremental.py +106 -0
  1187. oxcrypto-0.1.0/tests/xof/test_integer_options.py +31 -0
  1188. oxcrypto-0.1.0/tests/xof/test_k12.py +24 -0
  1189. oxcrypto-0.1.0/tests/xof/test_shake.py +49 -0
  1190. oxcrypto-0.1.0/tests/xof/test_tuple_hash.py +59 -0
  1191. oxcrypto-0.1.0/tests/xof/test_turboshake.py +39 -0
  1192. oxcrypto-0.1.0/uv.lock +133 -0
@@ -0,0 +1,20 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: uv
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ commit-message:
8
+ prefix: "build"
9
+ - package-ecosystem: cargo
10
+ directory: /
11
+ schedule:
12
+ interval: weekly
13
+ commit-message:
14
+ prefix: "build"
15
+ - package-ecosystem: github-actions
16
+ directory: /
17
+ schedule:
18
+ interval: weekly
19
+ commit-message:
20
+ prefix: "ci"
@@ -0,0 +1,102 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ permissions:
6
+ contents: read
7
+
8
+ jobs:
9
+ docs:
10
+ runs-on: ubuntu-latest
11
+ defaults:
12
+ run:
13
+ working-directory: docs
14
+ steps:
15
+ - uses: actions/checkout@v7
16
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
17
+ with:
18
+ version: "0.13.6"
19
+ python-version: "3.14"
20
+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
21
+ with:
22
+ bun-version: "1.4.4"
23
+ - run: bun install --frozen-lockfile
24
+ - run: bun run build
25
+ env:
26
+ NEXT_PUBLIC_BASE_PATH: /${{ github.event.repository.name }}
27
+ - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
28
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
29
+ with:
30
+ path: docs/out
31
+
32
+ deploy-docs:
33
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
34
+ needs: docs
35
+ runs-on: ubuntu-latest
36
+ concurrency:
37
+ group: github-pages
38
+ cancel-in-progress: false
39
+ permissions:
40
+ pages: write
41
+ id-token: write
42
+ environment:
43
+ name: github-pages
44
+ url: ${{ steps.deployment.outputs.page_url }}
45
+ steps:
46
+ - uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
47
+ id: deployment
48
+
49
+ lint:
50
+ runs-on: ubuntu-latest
51
+ steps:
52
+ - uses: actions/checkout@v7
53
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
54
+ with:
55
+ version: "0.13.6"
56
+ python-version: "3.14"
57
+ - run: uv python install
58
+ - run: uv run --locked --only-group dev ruff check .
59
+ - run: uv run --locked --only-group dev ruff format --check .
60
+ - run: rustup toolchain install stable --profile minimal --component rustfmt,clippy
61
+ - run: cargo +stable fmt --check
62
+ - run: cargo +stable clippy --locked --all-targets -- -D warnings
63
+
64
+ licenses:
65
+ runs-on: ubuntu-latest
66
+ steps:
67
+ - uses: actions/checkout@v7
68
+ - uses: taiki-e/install-action@fe3acb53a98b62c772db35de75ce0e4595e7ca8c # v2.90.8
69
+ with:
70
+ tool: cargo-deny@0.22.0,cargo-about@0.9.3
71
+ - run: cargo deny --locked check
72
+ - run: cargo about generate --locked --fail about.hbs -o THIRD_PARTY_LICENSES.md
73
+ - run: git diff --ignore-cr-at-eol --exit-code THIRD_PARTY_LICENSES.md
74
+ - name: license texts are the unmodified templates
75
+ run: |
76
+ sha256sum -c - <<'EOF'
77
+ b05785f9f18e6716bab63424b11454513b9943a222595b70411009202fc592b5 LICENSE-MIT
78
+ cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE-APACHE
79
+ EOF
80
+
81
+ test:
82
+ runs-on: ubuntu-latest
83
+ strategy:
84
+ fail-fast: false
85
+ matrix:
86
+ include:
87
+ - python: "3.11"
88
+ rust: "1.88.0"
89
+ - python: "3.15"
90
+ rust: stable
91
+ env:
92
+ RUSTUP_TOOLCHAIN: ${{ matrix.rust }}
93
+ steps:
94
+ - uses: actions/checkout@v7
95
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
96
+ with:
97
+ version: "0.13.6"
98
+ python-version: ${{ matrix.python }}
99
+ - run: rustup toolchain install "$RUSTUP_TOOLCHAIN" --profile minimal
100
+ - run: uv lock --check
101
+ - run: uv build --wheel
102
+ - run: uv run --locked --isolated --only-group test --with dist/*.whl pytest -n 2 tests
@@ -0,0 +1,193 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v[0-9]+.[0-9]+.[0-9]+"
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: release-${{ github.ref }}
14
+ cancel-in-progress: false
15
+
16
+ env:
17
+ RUSTUP_TOOLCHAIN: "1.88.0"
18
+ CARGO_TERM_COLOR: always
19
+
20
+ jobs:
21
+ sdist:
22
+ runs-on: ubuntu-24.04
23
+ steps:
24
+ - uses: actions/checkout@v7
25
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
26
+ with:
27
+ version: "0.13.6"
28
+ python-version: "3.14"
29
+ - name: Check release version
30
+ if: github.ref_type == 'tag'
31
+ run: |
32
+ version=$(uv run --no-project python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["package"]["version"])')
33
+ test "$GITHUB_REF_NAME" = "v$version"
34
+ - run: rustup toolchain install 1.88.0 --profile minimal
35
+ - run: uv lock --check
36
+ - run: uv build --sdist --out-dir dist
37
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
38
+ with:
39
+ name: raw-sdist
40
+ path: dist/*.tar.gz
41
+ if-no-files-found: error
42
+
43
+ wheels:
44
+ needs: sdist
45
+ name: Wheels / ${{ matrix.platform.target }}
46
+ runs-on: ${{ matrix.platform.runner }}
47
+ strategy:
48
+ fail-fast: false
49
+ matrix:
50
+ platform:
51
+ - runner: ubuntu-24.04
52
+ target: x86_64-unknown-linux-gnu
53
+ arch: x64
54
+ manylinux: "2_28"
55
+ - runner: ubuntu-24.04-arm
56
+ target: aarch64-unknown-linux-gnu
57
+ arch: arm64
58
+ manylinux: "2_28"
59
+ - runner: windows-2025
60
+ target: x86_64-pc-windows-msvc
61
+ arch: x64
62
+ manylinux: "off"
63
+ - runner: windows-11-arm
64
+ target: aarch64-pc-windows-msvc
65
+ arch: arm64
66
+ manylinux: "off"
67
+ - runner: macos-15-intel
68
+ target: x86_64-apple-darwin
69
+ arch: x64
70
+ manylinux: "off"
71
+ - runner: macos-15
72
+ target: aarch64-apple-darwin
73
+ arch: arm64
74
+ manylinux: "off"
75
+ steps:
76
+ - uses: actions/checkout@v7
77
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
78
+ with:
79
+ version: "0.13.6"
80
+ - uses: actions/setup-python@v6
81
+ id: py11
82
+ with:
83
+ python-version: "3.11"
84
+ architecture: ${{ matrix.platform.arch }}
85
+ - uses: actions/setup-python@v6
86
+ id: py12
87
+ with:
88
+ python-version: "3.12"
89
+ architecture: ${{ matrix.platform.arch }}
90
+ - uses: actions/setup-python@v6
91
+ id: py13
92
+ with:
93
+ python-version: "3.13"
94
+ architecture: ${{ matrix.platform.arch }}
95
+ - uses: actions/setup-python@v6
96
+ id: py14
97
+ with:
98
+ python-version: "3.14"
99
+ architecture: ${{ matrix.platform.arch }}
100
+ - uses: actions/setup-python@v6
101
+ id: py15
102
+ with:
103
+ python-version: "3.15"
104
+ architecture: ${{ matrix.platform.arch }}
105
+ - name: Build manylinux wheels
106
+ if: matrix.platform.manylinux != 'off'
107
+ uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
108
+ with:
109
+ maturin-version: v1.13.3
110
+ rust-toolchain: "1.88.0"
111
+ target: ${{ matrix.platform.target }}
112
+ manylinux: ${{ matrix.platform.manylinux }}
113
+ args: >-
114
+ --release --locked --compatibility pypi --out dist
115
+ -i python3.11 python3.12 python3.13 python3.14 python3.15
116
+ - name: Build native wheels
117
+ if: matrix.platform.manylinux == 'off'
118
+ shell: bash
119
+ env:
120
+ WHEEL_TARGET: ${{ matrix.platform.target }}
121
+ PY311: ${{ steps.py11.outputs.python-path }}
122
+ PY312: ${{ steps.py12.outputs.python-path }}
123
+ PY313: ${{ steps.py13.outputs.python-path }}
124
+ PY314: ${{ steps.py14.outputs.python-path }}
125
+ PY315: ${{ steps.py15.outputs.python-path }}
126
+ run: |
127
+ rustup toolchain install 1.88.0 --profile minimal
128
+ rustup target add "$WHEEL_TARGET"
129
+ uvx --from maturin==1.13.3 maturin build \
130
+ --release --locked --compatibility pypi --out dist --target "$WHEEL_TARGET" \
131
+ -i "$PY311" "$PY312" "$PY313" "$PY314" "$PY315"
132
+ - name: Install and smoke-test wheels
133
+ shell: bash
134
+ env:
135
+ PY311: ${{ steps.py11.outputs.python-path }}
136
+ PY312: ${{ steps.py12.outputs.python-path }}
137
+ PY313: ${{ steps.py13.outputs.python-path }}
138
+ PY314: ${{ steps.py14.outputs.python-path }}
139
+ PY315: ${{ steps.py15.outputs.python-path }}
140
+ run: |
141
+ shopt -s nullglob
142
+ for minor in 11 12 13 14 15; do
143
+ interpreter="PY3$minor"
144
+ wheels=(dist/*-cp3"$minor"-*.whl)
145
+ test "${#wheels[@]}" -eq 1
146
+ uv run --no-project --isolated --python "${!interpreter}" --with "${wheels[0]}" \
147
+ python -c 'from oxcrypto.hash.sha2 import SHA2; assert len(SHA2.SHA256.digest(b"oxcrypto")) == 32'
148
+ done
149
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
150
+ with:
151
+ name: raw-wheels-${{ matrix.platform.target }}
152
+ path: dist/*.whl
153
+ if-no-files-found: error
154
+
155
+ distributions:
156
+ needs: [sdist, wheels]
157
+ runs-on: ubuntu-24.04
158
+ steps:
159
+ - uses: actions/checkout@v7
160
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
161
+ with:
162
+ version: "0.13.6"
163
+ python-version: "3.14"
164
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
165
+ with:
166
+ pattern: raw-*
167
+ merge-multiple: true
168
+ path: dist
169
+ - run: rustup toolchain install 1.88.0 --profile minimal
170
+ - run: uv run --no-project scripts/licenses.py finalize dist
171
+ - run: uv run --no-project scripts/licenses.py check dist
172
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
173
+ with:
174
+ name: distributions
175
+ path: dist/
176
+ if-no-files-found: error
177
+
178
+ publish:
179
+ if: github.ref_type == 'tag'
180
+ needs: distributions
181
+ runs-on: ubuntu-24.04
182
+ environment: pypi
183
+ permissions:
184
+ id-token: write
185
+ steps:
186
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
187
+ with:
188
+ version: "0.13.6"
189
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
190
+ with:
191
+ name: distributions
192
+ path: dist
193
+ - run: uv publish --trusted-publishing always
@@ -0,0 +1,9 @@
1
+ /target/
2
+ /node_modules/
3
+ /.venv/
4
+ __pycache__/
5
+ *.so
6
+ *.pyd
7
+
8
+ # CodeGraph local index
9
+ .codegraph/
@@ -0,0 +1 @@
1
+ bun --bun run commitlint --edit "$1"
@@ -0,0 +1 @@
1
+ bun --bun run lint-staged
@@ -0,0 +1,126 @@
1
+ # Contributing
2
+
3
+ oxcrypto exposes established Rust implementations, mainly RustCrypto, through
4
+ one consistent Python API. These contracts apply to every algorithm family.
5
+
6
+ ## Commits and branches
7
+
8
+ - One logical change per commit, in [Conventional Commits](https://www.conventionalcommits.org)
9
+ form (`feat:`, `fix:`, `test:`, `docs:`, `build:`, `ci:`, `chore:`). The
10
+ `commit-msg` hook enforces this; run `bun install --frozen-lockfile` once.
11
+ - One pull request per feature or fix.
12
+
13
+ ## Choosing an implementation
14
+
15
+ - Use a maintained upstream crate. Cryptographic algorithms are not
16
+ implemented in this repository.
17
+ - Each algorithm's docs page names the standard and its status (FIPS, NIST SP,
18
+ RFC, draft or none), the crate and its version, its maturity and any known
19
+ limitations.
20
+ - Pin pre-release crates to an exact version (`=0.x.y-rc.z`). Algorithms that
21
+ are drafts or not standardized are documented as **experimental**.
22
+ - Every dependency must build with Rust 1.88 (`cargo +1.88.0 clippy`) and pass
23
+ `cargo deny --locked check`. Regenerate `THIRD_PARTY_LICENSES.md` with
24
+ `cargo about generate --locked --fail about.hbs -o THIRD_PARTY_LICENSES.md`.
25
+ - Dependencies used only for testing, such as `libcrux-*` for differential
26
+ tests, go in `[dev-dependencies]` and are never linked into wheels.
27
+
28
+ ## Layout
29
+
30
+ Each family has `src/<family>/mod.rs` with a `register()` function called from
31
+ `src/lib.rs`, one Rust file per upstream crate, `python/oxcrypto/<family>/`
32
+ with a `.py` re-export and a `.pyi` stub per algorithm, tests in
33
+ `tests/<family>/` with vectors in `tests/data/<family>/`, and one MDX page per
34
+ algorithm in `docs/content/docs/<family>/`. Shared code within a family goes in
35
+ a `template.rs` or `support.rs`, as in `src/hash/` and `src/password/`.
36
+
37
+ ## API contracts
38
+
39
+ ### Selectors and functions
40
+
41
+ - An algorithm is a frozen `pyclass` enum with `SCREAMING_SNAKE_CASE` variants,
42
+ for example `SHA2.SHA256` or `AES.AES256`. Operations are methods on the
43
+ variant.
44
+ - Inputs are positional-only `bytes`; options are keyword-only. Outputs are
45
+ `bytes` unless a richer type is necessary.
46
+ - Invalid parameters raise `ValueError`, wrong types raise `TypeError`.
47
+ - Release the GIL with `py.detach` for work that is expensive or proportional
48
+ to large inputs.
49
+
50
+ ### Verification
51
+
52
+ - Failed MAC or AEAD authentication raises `oxcrypto.InvalidTag`, a
53
+ `ValueError` subclass, and never returns partial plaintext.
54
+ - `verify` methods for signatures and password hashes return `bool`.
55
+ - Compare secrets inside Rust with `subtle::ConstantTimeEq` or the upstream
56
+ crate's own verification. Python code uses `hmac.compare_digest`.
57
+
58
+ ### Randomness and keys
59
+
60
+ - Keys, nonces and salts generated by oxcrypto come from the operating system
61
+ CSPRNG (`getrandom`). Seeded or deterministic generation exists only where a
62
+ standard requires it and is documented as such.
63
+ - Asymmetric algorithms use `<SELECTOR>.generate() -> PrivateKey`,
64
+ `PrivateKey.public_key() -> PublicKey`, and `<SELECTOR>.load_*` functions.
65
+ Keys are concrete per-family classes (for example `Ed25519PrivateKey`), with
66
+ no shared base class.
67
+ - Serialization uses `to_bytes()`/`from_bytes()` for raw encodings and
68
+ `to_der`/`to_pem` with a keyword-only `format` (`"pkcs8"`, `"spki"`,
69
+ `"sec1"`, `"pkcs1"`) where the encoding exists. PKCS#8 export accepts an
70
+ optional keyword-only `password` (PBES2).
71
+ - Secret material is zeroized on drop (`zeroize`), never appears in `repr`,
72
+ and private keys do not support pickling or `copy`. Equality uses
73
+ constant-time comparison.
74
+ - Zeroization covers everything Rust owns: internal state, expanded keys and
75
+ round keys, and intermediate buffers, not only the original key. Check the
76
+ crate source, not just its `zeroize` feature.
77
+ - Zeroization stops at the Python boundary. Python `bytes` passed in or
78
+ returned (keys, passwords, plaintext, derived keys) are immutable and are
79
+ not wiped, and Python may copy them. Temporary copies that upstream code
80
+ makes on the stack during a call are documented as a limitation.
81
+
82
+ ### Stateful objects
83
+
84
+ Stateful algorithms are exposed as explicit objects instead of hidden global
85
+ state:
86
+
87
+ - **Incremental hashers, MACs and XOF readers:** `<SELECTOR>.new(...)` returns
88
+ an object with `update(data)`, `copy()`, `digest()`/`finalize()` and
89
+ `reset()` (XOF readers: `read(n)`). `copy()` forks the state.
90
+ - **Ciphers with a position** (stream ciphers, CTR): `seek(offset)` and
91
+ `position`; `copy()` is not offered because forking keystream invites reuse.
92
+ - **Single-use objects** (AEAD streams, KEM decapsulation contexts, protocol
93
+ rounds) raise `ValueError` when used after they finish.
94
+ - **Stateful signatures (LMS, XMSS):** the private key advances its index
95
+ before returning a signature, exposes `remaining`, and raises `ValueError`
96
+ when exhausted. Callers must persist the key with `to_bytes()` before
97
+ using a signature. Keys cannot be copied.
98
+ - **DRBGs:** expose `generate(n)`, `reseed(entropy)` and enforce the
99
+ standard's reseed interval.
100
+ - **Multi-round protocols** (PAKE, OPRF, FROST, Noise): each round returns
101
+ the next typed state object and consumes the previous one.
102
+ - Objects are safe to share between threads (an internal `Mutex`) but not
103
+ intended for concurrent use. Serialized state is offered only where the
104
+ upstream crate supports it.
105
+
106
+ ## Tests and documentation
107
+
108
+ - Known-answer tests use official vectors (NIST CAVP/ACVP, RFC appendices,
109
+ Wycheproof, or the upstream crate's vectors) stored as JSON, with the source
110
+ noted at the top of the test module.
111
+ - Cover invalid parameters, wrong types, failed verification, round trips for
112
+ every serialization format, and the state rules above.
113
+ - Update the `.pyi` stub, the family index page, and `README.md` with each new
114
+ algorithm.
115
+
116
+ ## Checks
117
+
118
+ ```sh
119
+ uv run --locked --only-group dev ruff check .
120
+ uv run --locked --only-group dev ruff format --check .
121
+ cargo fmt --check
122
+ cargo clippy --locked --all-targets -- -D warnings
123
+ cargo +1.88.0 clippy --locked --all-targets -- -D warnings
124
+ cargo deny --locked check
125
+ uv run --locked --group test pytest -n 4 tests
126
+ ```