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.
- oxcrypto-0.1.0/.github/dependabot.yml +20 -0
- oxcrypto-0.1.0/.github/workflows/ci.yml +102 -0
- oxcrypto-0.1.0/.github/workflows/release.yml +193 -0
- oxcrypto-0.1.0/.gitignore +9 -0
- oxcrypto-0.1.0/.husky/commit-msg +1 -0
- oxcrypto-0.1.0/.husky/pre-commit +1 -0
- oxcrypto-0.1.0/CONTRIBUTING.md +126 -0
- oxcrypto-0.1.0/Cargo.lock +5134 -0
- oxcrypto-0.1.0/Cargo.toml +208 -0
- oxcrypto-0.1.0/LICENSE-APACHE +202 -0
- oxcrypto-0.1.0/LICENSE-MIT +18 -0
- oxcrypto-0.1.0/PKG-INFO +138 -0
- oxcrypto-0.1.0/README.md +125 -0
- oxcrypto-0.1.0/THIRD_PARTY_LICENSES.md +6893 -0
- oxcrypto-0.1.0/about.hbs +19 -0
- oxcrypto-0.1.0/about.toml +21 -0
- oxcrypto-0.1.0/bun.lock +168 -0
- oxcrypto-0.1.0/commitlint.config.mjs +3 -0
- oxcrypto-0.1.0/deny.toml +28 -0
- oxcrypto-0.1.0/docs/.gitignore +28 -0
- oxcrypto-0.1.0/docs/README.md +14 -0
- oxcrypto-0.1.0/docs/app/(home)/layout.tsx +6 -0
- oxcrypto-0.1.0/docs/app/(home)/page.tsx +15 -0
- oxcrypto-0.1.0/docs/app/api/search/route.ts +9 -0
- oxcrypto-0.1.0/docs/app/docs/[[...slug]]/page.tsx +65 -0
- oxcrypto-0.1.0/docs/app/docs/layout.tsx +11 -0
- oxcrypto-0.1.0/docs/app/global.css +23 -0
- oxcrypto-0.1.0/docs/app/layout.tsx +12 -0
- oxcrypto-0.1.0/docs/app/llms-full.txt/route.ts +7 -0
- oxcrypto-0.1.0/docs/app/llms.mdx/[...path]/route.ts +20 -0
- oxcrypto-0.1.0/docs/app/llms.txt/route.ts +7 -0
- oxcrypto-0.1.0/docs/bun.lock +907 -0
- oxcrypto-0.1.0/docs/components/mdx.tsx +15 -0
- oxcrypto-0.1.0/docs/components/provider.tsx +8 -0
- oxcrypto-0.1.0/docs/components/search.tsx +36 -0
- oxcrypto-0.1.0/docs/content/docs/aead/aes_gcm.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/aead/aes_gcm_siv.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/aead/ascon_aead128.mdx +30 -0
- oxcrypto-0.1.0/docs/content/docs/aead/belt_dwp.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/aead/chacha20poly1305.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/aead/deoxys.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/aead/index.mdx +63 -0
- oxcrypto-0.1.0/docs/content/docs/aead/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/aead/stream.mdx +39 -0
- oxcrypto-0.1.0/docs/content/docs/aead/xaes_256_gcm.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/aead/xoodyak.mdx +31 -0
- oxcrypto-0.1.0/docs/content/docs/age/index.mdx +13 -0
- oxcrypto-0.1.0/docs/content/docs/age/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/age/x25519.mdx +61 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/blowfish.mdx +25 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/cast5.mdx +25 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/des.mdx +25 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/idea.mdx +25 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/meta.json +4 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/rc2.mdx +25 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/(legacy)/xtea.mdx +25 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/aes.mdx +22 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/aria.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/belt_block.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/belt_ctr.mdx +17 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/camellia.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/cast6.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/cbc.mdx +25 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/cfb.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/cfb8.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/ctr.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/gift.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/hazmat.mdx +19 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/ige.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/index.mdx +33 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/kuznyechik.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/magma.mdx +26 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/meta.json +10 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/ofb.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/pcbc.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/rc5.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/serpent.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/sm4.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/speck.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/threefish.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cipher/twofish.mdx +24 -0
- oxcrypto-0.1.0/docs/content/docs/cose/encrypt.mdx +28 -0
- oxcrypto-0.1.0/docs/content/docs/cose/index.mdx +54 -0
- oxcrypto-0.1.0/docs/content/docs/cose/key.mdx +26 -0
- oxcrypto-0.1.0/docs/content/docs/cose/mac.mdx +25 -0
- oxcrypto-0.1.0/docs/content/docs/cose/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/cose/sign.mdx +34 -0
- oxcrypto-0.1.0/docs/content/docs/encoding/base16.mdx +23 -0
- oxcrypto-0.1.0/docs/content/docs/encoding/base32.mdx +23 -0
- oxcrypto-0.1.0/docs/content/docs/encoding/base64.mdx +36 -0
- oxcrypto-0.1.0/docs/content/docs/encoding/index.mdx +17 -0
- oxcrypto-0.1.0/docs/content/docs/encoding/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/encoding/pem.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/encryption/index.mdx +28 -0
- oxcrypto-0.1.0/docs/content/docs/encryption/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/encryption/rsa.mdx +58 -0
- oxcrypto-0.1.0/docs/content/docs/exchange/bign.mdx +51 -0
- oxcrypto-0.1.0/docs/content/docs/exchange/ecdh.mdx +45 -0
- oxcrypto-0.1.0/docs/content/docs/exchange/index.mdx +44 -0
- oxcrypto-0.1.0/docs/content/docs/exchange/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/exchange/x25519.mdx +58 -0
- oxcrypto-0.1.0/docs/content/docs/exchange/x448.mdx +50 -0
- oxcrypto-0.1.0/docs/content/docs/hashes/(legacy)/meta.json +4 -0
- oxcrypto-0.1.0/docs/content/docs/hashes/(protocol)/meta.json +3 -0
- oxcrypto-0.1.0/docs/content/docs/hashes/index.mdx +79 -0
- oxcrypto-0.1.0/docs/content/docs/hashes/meta.json +9 -0
- oxcrypto-0.1.0/docs/content/docs/hazmat/ascon.mdx +23 -0
- oxcrypto-0.1.0/docs/content/docs/hazmat/bash_f.mdx +22 -0
- oxcrypto-0.1.0/docs/content/docs/hazmat/decaf448.mdx +41 -0
- oxcrypto-0.1.0/docs/content/docs/hazmat/hash_to_curve.mdx +37 -0
- oxcrypto-0.1.0/docs/content/docs/hazmat/index.mdx +37 -0
- oxcrypto-0.1.0/docs/content/docs/hazmat/keccak.mdx +31 -0
- oxcrypto-0.1.0/docs/content/docs/hazmat/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/hazmat/ristretto255.mdx +42 -0
- oxcrypto-0.1.0/docs/content/docs/hd/bip32.mdx +72 -0
- oxcrypto-0.1.0/docs/content/docs/hd/bip39.mdx +63 -0
- oxcrypto-0.1.0/docs/content/docs/hd/index.mdx +73 -0
- oxcrypto-0.1.0/docs/content/docs/hd/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/hpke/index.mdx +126 -0
- oxcrypto-0.1.0/docs/content/docs/hpke/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/index.mdx +83 -0
- oxcrypto-0.1.0/docs/content/docs/jose/index.mdx +61 -0
- oxcrypto-0.1.0/docs/content/docs/jose/jwe.mdx +63 -0
- oxcrypto-0.1.0/docs/content/docs/jose/jwk.mdx +44 -0
- oxcrypto-0.1.0/docs/content/docs/jose/jws.mdx +41 -0
- oxcrypto-0.1.0/docs/content/docs/jose/jwt.mdx +32 -0
- oxcrypto-0.1.0/docs/content/docs/jose/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/kdf/ansi_x963_kdf.mdx +25 -0
- oxcrypto-0.1.0/docs/content/docs/kdf/bake_kdf.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/kdf/hkdf.mdx +33 -0
- oxcrypto-0.1.0/docs/content/docs/kdf/index.mdx +30 -0
- oxcrypto-0.1.0/docs/content/docs/kdf/kbkdf.mdx +54 -0
- oxcrypto-0.1.0/docs/content/docs/kdf/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/kdf/one_step_kdf.mdx +27 -0
- oxcrypto-0.1.0/docs/content/docs/kem/dhkem.mdx +43 -0
- oxcrypto-0.1.0/docs/content/docs/kem/frodo_kem.mdx +54 -0
- oxcrypto-0.1.0/docs/content/docs/kem/hqc_kem.mdx +44 -0
- oxcrypto-0.1.0/docs/content/docs/kem/index.mdx +72 -0
- oxcrypto-0.1.0/docs/content/docs/kem/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/kem/ml_kem.mdx +46 -0
- oxcrypto-0.1.0/docs/content/docs/kem/sntrup_kem.mdx +43 -0
- oxcrypto-0.1.0/docs/content/docs/kem/x_wing.mdx +40 -0
- oxcrypto-0.1.0/docs/content/docs/keywrap/aes_kw.mdx +22 -0
- oxcrypto-0.1.0/docs/content/docs/keywrap/belt_kwp.mdx +17 -0
- oxcrypto-0.1.0/docs/content/docs/keywrap/index.mdx +11 -0
- oxcrypto-0.1.0/docs/content/docs/keywrap/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/mac/cbc_mac.mdx +19 -0
- oxcrypto-0.1.0/docs/content/docs/mac/cmac.mdx +21 -0
- oxcrypto-0.1.0/docs/content/docs/mac/hmac.mdx +18 -0
- oxcrypto-0.1.0/docs/content/docs/mac/index.mdx +66 -0
- oxcrypto-0.1.0/docs/content/docs/mac/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/mac/pmac.mdx +15 -0
- oxcrypto-0.1.0/docs/content/docs/mac/retail_mac.mdx +21 -0
- oxcrypto-0.1.0/docs/content/docs/meta.json +3 -0
- oxcrypto-0.1.0/docs/content/docs/nacl/crypto_box.mdx +40 -0
- oxcrypto-0.1.0/docs/content/docs/nacl/crypto_secretbox.mdx +30 -0
- oxcrypto-0.1.0/docs/content/docs/nacl/index.mdx +54 -0
- oxcrypto-0.1.0/docs/content/docs/nacl/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/oprf/index.mdx +87 -0
- oxcrypto-0.1.0/docs/content/docs/oprf/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/oprf/oprf.mdx +20 -0
- oxcrypto-0.1.0/docs/content/docs/oprf/poprf.mdx +19 -0
- oxcrypto-0.1.0/docs/content/docs/oprf/voprf.mdx +20 -0
- oxcrypto-0.1.0/docs/content/docs/otp/hotp.mdx +33 -0
- oxcrypto-0.1.0/docs/content/docs/otp/index.mdx +75 -0
- oxcrypto-0.1.0/docs/content/docs/otp/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/otp/totp.mdx +35 -0
- oxcrypto-0.1.0/docs/content/docs/pake/index.mdx +16 -0
- oxcrypto-0.1.0/docs/content/docs/pake/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/pake/opaque.mdx +92 -0
- oxcrypto-0.1.0/docs/content/docs/paseto/index.mdx +57 -0
- oxcrypto-0.1.0/docs/content/docs/paseto/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/paseto/v3.mdx +21 -0
- oxcrypto-0.1.0/docs/content/docs/paseto/v4.mdx +20 -0
- oxcrypto-0.1.0/docs/content/docs/password/argon2.mdx +46 -0
- oxcrypto-0.1.0/docs/content/docs/password/balloon.mdx +40 -0
- oxcrypto-0.1.0/docs/content/docs/password/bcrypt.mdx +46 -0
- oxcrypto-0.1.0/docs/content/docs/password/bcrypt_pbkdf.mdx +15 -0
- oxcrypto-0.1.0/docs/content/docs/password/index.mdx +43 -0
- oxcrypto-0.1.0/docs/content/docs/password/legacy_crypt.mdx +36 -0
- oxcrypto-0.1.0/docs/content/docs/password/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/password/password_auth.mdx +35 -0
- oxcrypto-0.1.0/docs/content/docs/password/pbkdf2.mdx +44 -0
- oxcrypto-0.1.0/docs/content/docs/password/scrypt.mdx +30 -0
- oxcrypto-0.1.0/docs/content/docs/password/sha_crypt.mdx +27 -0
- oxcrypto-0.1.0/docs/content/docs/password/yescrypt.mdx +36 -0
- oxcrypto-0.1.0/docs/content/docs/pki/cms.mdx +45 -0
- oxcrypto-0.1.0/docs/content/docs/pki/index.mdx +38 -0
- oxcrypto-0.1.0/docs/content/docs/pki/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/pki/path.mdx +49 -0
- oxcrypto-0.1.0/docs/content/docs/pki/x509.mdx +89 -0
- oxcrypto-0.1.0/docs/content/docs/random/chacha.mdx +43 -0
- oxcrypto-0.1.0/docs/content/docs/random/getrandom.mdx +18 -0
- oxcrypto-0.1.0/docs/content/docs/random/index.mdx +27 -0
- oxcrypto-0.1.0/docs/content/docs/random/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/secret_sharing/feldman.mdx +35 -0
- oxcrypto-0.1.0/docs/content/docs/secret_sharing/index.mdx +51 -0
- oxcrypto-0.1.0/docs/content/docs/secret_sharing/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/secret_sharing/pedersen.mdx +39 -0
- oxcrypto-0.1.0/docs/content/docs/secret_sharing/shamir.mdx +26 -0
- oxcrypto-0.1.0/docs/content/docs/signature/blind_rsa.mdx +90 -0
- oxcrypto-0.1.0/docs/content/docs/signature/bls.mdx +73 -0
- oxcrypto-0.1.0/docs/content/docs/signature/dsa.mdx +48 -0
- oxcrypto-0.1.0/docs/content/docs/signature/ecdsa.mdx +88 -0
- oxcrypto-0.1.0/docs/content/docs/signature/ed25519.mdx +68 -0
- oxcrypto-0.1.0/docs/content/docs/signature/ed448.mdx +52 -0
- oxcrypto-0.1.0/docs/content/docs/signature/fn_dsa.mdx +36 -0
- oxcrypto-0.1.0/docs/content/docs/signature/index.mdx +103 -0
- oxcrypto-0.1.0/docs/content/docs/signature/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/signature/ml_dsa.mdx +32 -0
- oxcrypto-0.1.0/docs/content/docs/signature/rsa.mdx +51 -0
- oxcrypto-0.1.0/docs/content/docs/signature/schnorr.mdx +35 -0
- oxcrypto-0.1.0/docs/content/docs/signature/slh_dsa.mdx +32 -0
- oxcrypto-0.1.0/docs/content/docs/signature/sr25519.mdx +57 -0
- oxcrypto-0.1.0/docs/content/docs/signature/xmss.mdx +64 -0
- oxcrypto-0.1.0/docs/content/docs/ssh/authorized_keys.mdx +22 -0
- oxcrypto-0.1.0/docs/content/docs/ssh/certificate.mdx +45 -0
- oxcrypto-0.1.0/docs/content/docs/ssh/index.mdx +71 -0
- oxcrypto-0.1.0/docs/content/docs/ssh/known_hosts.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/ssh/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/ssh/openssh.mdx +43 -0
- oxcrypto-0.1.0/docs/content/docs/ssh/sshsig.mdx +29 -0
- oxcrypto-0.1.0/docs/content/docs/stream/chacha20.mdx +33 -0
- oxcrypto-0.1.0/docs/content/docs/stream/hc_256.mdx +18 -0
- oxcrypto-0.1.0/docs/content/docs/stream/index.mdx +45 -0
- oxcrypto-0.1.0/docs/content/docs/stream/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/stream/rabbit.mdx +17 -0
- oxcrypto-0.1.0/docs/content/docs/stream/rc4.mdx +18 -0
- oxcrypto-0.1.0/docs/content/docs/stream/salsa20.mdx +26 -0
- oxcrypto-0.1.0/docs/content/docs/threshold/frost.mdx +114 -0
- oxcrypto-0.1.0/docs/content/docs/threshold/index.mdx +43 -0
- oxcrypto-0.1.0/docs/content/docs/threshold/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/universal_hash/ghash.mdx +16 -0
- oxcrypto-0.1.0/docs/content/docs/universal_hash/index.mdx +34 -0
- oxcrypto-0.1.0/docs/content/docs/universal_hash/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/universal_hash/poly1305.mdx +15 -0
- oxcrypto-0.1.0/docs/content/docs/universal_hash/polyval.mdx +14 -0
- oxcrypto-0.1.0/docs/content/docs/vrf/ecvrf.mdx +19 -0
- oxcrypto-0.1.0/docs/content/docs/vrf/index.mdx +50 -0
- oxcrypto-0.1.0/docs/content/docs/vrf/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/xof/ascon_xof128.mdx +20 -0
- oxcrypto-0.1.0/docs/content/docs/xof/bash_prg_hash.mdx +13 -0
- oxcrypto-0.1.0/docs/content/docs/xof/cshake.mdx +13 -0
- oxcrypto-0.1.0/docs/content/docs/xof/index.mdx +42 -0
- oxcrypto-0.1.0/docs/content/docs/xof/k12.mdx +13 -0
- oxcrypto-0.1.0/docs/content/docs/xof/meta.json +5 -0
- oxcrypto-0.1.0/docs/content/docs/xof/shake.mdx +14 -0
- oxcrypto-0.1.0/docs/content/docs/xof/tuple_hash.mdx +31 -0
- oxcrypto-0.1.0/docs/content/docs/xof/turboshake.mdx +22 -0
- oxcrypto-0.1.0/docs/lib/cn.ts +1 -0
- oxcrypto-0.1.0/docs/lib/layout.shared.tsx +12 -0
- oxcrypto-0.1.0/docs/lib/remark-alerts.ts +43 -0
- oxcrypto-0.1.0/docs/lib/shared.ts +8 -0
- oxcrypto-0.1.0/docs/lib/source.ts +40 -0
- oxcrypto-0.1.0/docs/next.config.mjs +13 -0
- oxcrypto-0.1.0/docs/package.json +33 -0
- oxcrypto-0.1.0/docs/postcss.config.mjs +7 -0
- oxcrypto-0.1.0/docs/scripts/generate_hash_reference.py +145 -0
- oxcrypto-0.1.0/docs/tsconfig.json +34 -0
- oxcrypto-0.1.0/lint-staged.config.mjs +7 -0
- oxcrypto-0.1.0/package.json +13 -0
- oxcrypto-0.1.0/pyproject.toml +34 -0
- oxcrypto-0.1.0/python/oxcrypto/__init__.py +5 -0
- oxcrypto-0.1.0/python/oxcrypto/__init__.pyi +1 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/aes_gcm.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/aes_gcm.pyi +73 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/aes_gcm_siv.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/aes_gcm_siv.pyi +72 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/ascon_aead128.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/ascon_aead128.pyi +71 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/belt_dwp.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/belt_dwp.pyi +71 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/chacha20poly1305.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/chacha20poly1305.pyi +76 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/deoxys.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/deoxys.pyi +74 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/stream.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/stream.pyi +19 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/xaes_256_gcm.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/xaes_256_gcm.pyi +71 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/xoodyak.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/aead/xoodyak.pyi +71 -0
- oxcrypto-0.1.0/python/oxcrypto/age/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/age/x25519.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/age/x25519.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/__init__.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/__init__.pyi +65 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/aes.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/aes.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/aria.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/aria.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/belt_block.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/belt_block.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/belt_ctr.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/belt_ctr.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/blowfish.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/blowfish.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/camellia.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/camellia.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cast5.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cast5.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cast6.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cast6.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cbc.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cbc.pyi +34 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cfb.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cfb.pyi +20 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cfb8.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/cfb8.pyi +20 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/ctr.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/ctr.pyi +25 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/des.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/des.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/gift.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/gift.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/hazmat.py +12 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/hazmat.pyi +23 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/idea.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/idea.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/ige.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/ige.pyi +34 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/kuznyechik.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/kuznyechik.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/magma.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/magma.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/ofb.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/ofb.pyi +20 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/pcbc.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/pcbc.pyi +34 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/rc2.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/rc2.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/rc5.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/rc5.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/serpent.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/serpent.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/sm4.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/sm4.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/speck.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/speck.pyi +20 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/threefish.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/threefish.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/twofish.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/twofish.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/xtea.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cipher/xtea.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/cose/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/cose/encrypt.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cose/encrypt.pyi +23 -0
- oxcrypto-0.1.0/python/oxcrypto/cose/key.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cose/key.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/cose/mac.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/cose/mac.pyi +26 -0
- oxcrypto-0.1.0/python/oxcrypto/cose/sign.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/cose/sign.pyi +55 -0
- oxcrypto-0.1.0/python/oxcrypto/encoding/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/encoding/base16.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/encoding/base16.pyi +10 -0
- oxcrypto-0.1.0/python/oxcrypto/encoding/base32.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/encoding/base32.pyi +11 -0
- oxcrypto-0.1.0/python/oxcrypto/encoding/base64.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/encoding/base64.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/encoding/pem.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/encoding/pem.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/encryption/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/encryption/rsa.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/encryption/rsa.pyi +67 -0
- oxcrypto-0.1.0/python/oxcrypto/exchange/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/exchange/bign.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/exchange/bign.pyi +46 -0
- oxcrypto-0.1.0/python/oxcrypto/exchange/ecdh.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/exchange/ecdh.pyi +60 -0
- oxcrypto-0.1.0/python/oxcrypto/exchange/x25519.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/exchange/x25519.pyi +39 -0
- oxcrypto-0.1.0/python/oxcrypto/exchange/x448.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/exchange/x448.pyi +39 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/__init__.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/__init__.pyi +18 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/ascon_hash256.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/ascon_hash256.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/bao.py +21 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/bao.pyi +27 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/bash_hash.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/bash_hash.pyi +14 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/belt_hash.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/belt_hash.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/blake2.py +12 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/blake2.pyi +45 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/blake3.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/blake3.pyi +34 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/fsb.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/fsb.pyi +16 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/gost94.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/gost94.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/groestl.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/groestl.pyi +18 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/jh.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/jh.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/keccak.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/keccak.pyi +16 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/kupyna.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/kupyna.pyi +18 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/md2.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/md2.pyi +14 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/md4.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/md4.pyi +14 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/md5.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/md5.pyi +14 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/ripemd.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/ripemd.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sha1.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sha1.pyi +14 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sha1_checked.py +11 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sha1_checked.pyi +25 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sha2.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sha2.pyi +17 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sha3.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sha3.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/shabal.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/shabal.pyi +16 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/skein.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/skein.pyi +26 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sm3.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/sm3.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/streebog.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/streebog.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/tiger.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/tiger.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/whirlpool.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hash/whirlpool.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/curve/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/curve/hash_to_curve.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/curve/hash_to_curve.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/group/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/group/decaf448.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/group/decaf448.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/group/ristretto255.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/group/ristretto255.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/ascon.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/ascon.pyi +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/bash_f.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/bash_f.pyi +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/keccak.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/hazmat/permutation/keccak.pyi +10 -0
- oxcrypto-0.1.0/python/oxcrypto/hd/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/hd/bip32.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/hd/bip32.pyi +53 -0
- oxcrypto-0.1.0/python/oxcrypto/hd/bip39.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/hd/bip39.pyi +28 -0
- oxcrypto-0.1.0/python/oxcrypto/hpke/__init__.py +23 -0
- oxcrypto-0.1.0/python/oxcrypto/hpke/__init__.pyi +139 -0
- oxcrypto-0.1.0/python/oxcrypto/jose/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/jose/jwe.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/jose/jwe.pyi +57 -0
- oxcrypto-0.1.0/python/oxcrypto/jose/jwk.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/jose/jwk.pyi +17 -0
- oxcrypto-0.1.0/python/oxcrypto/jose/jws.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/jose/jws.pyi +44 -0
- oxcrypto-0.1.0/python/oxcrypto/jose/jwt.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/jose/jwt.pyi +25 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/ansi_x963_kdf.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/ansi_x963_kdf.pyi +19 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/bake_kdf.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/bake_kdf.pyi +17 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/hkdf.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/hkdf.pyi +89 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/kbkdf.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/kbkdf.pyi +58 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/one_step_kdf.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/kdf/one_step_kdf.pyi +19 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/dhkem.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/dhkem.pyi +28 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/frodo_kem.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/frodo_kem.pyi +39 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/hqc_kem.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/hqc_kem.pyi +30 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/ml_kem.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/ml_kem.pyi +30 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/sntrup_kem.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/sntrup_kem.pyi +33 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/x_wing.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/kem/x_wing.pyi +28 -0
- oxcrypto-0.1.0/python/oxcrypto/keywrap/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/keywrap/aes_kw.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/keywrap/aes_kw.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/keywrap/belt_kwp.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/keywrap/belt_kwp.pyi +10 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/__init__.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/__init__.pyi +9 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/cbc_mac.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/cbc_mac.pyi +54 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/cmac.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/cmac.pyi +50 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/hmac.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/hmac.pyi +61 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/pmac.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/pmac.pyi +50 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/retail_mac.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/mac/retail_mac.pyi +54 -0
- oxcrypto-0.1.0/python/oxcrypto/nacl/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/nacl/crypto_box.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/nacl/crypto_box.pyi +39 -0
- oxcrypto-0.1.0/python/oxcrypto/nacl/crypto_secretbox.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/nacl/crypto_secretbox.pyi +9 -0
- oxcrypto-0.1.0/python/oxcrypto/oprf/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/oprf/oprf.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/oprf/oprf.pyi +30 -0
- oxcrypto-0.1.0/python/oxcrypto/oprf/poprf.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/oprf/poprf.pyi +49 -0
- oxcrypto-0.1.0/python/oxcrypto/oprf/voprf.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/oprf/voprf.pyi +41 -0
- oxcrypto-0.1.0/python/oxcrypto/otp/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/otp/hotp.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/otp/hotp.pyi +29 -0
- oxcrypto-0.1.0/python/oxcrypto/otp/totp.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/otp/totp.pyi +39 -0
- oxcrypto-0.1.0/python/oxcrypto/pake/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/pake/opaque.py +11 -0
- oxcrypto-0.1.0/python/oxcrypto/pake/opaque.pyi +76 -0
- oxcrypto-0.1.0/python/oxcrypto/paseto/__init__.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/paseto/__init__.pyi +41 -0
- oxcrypto-0.1.0/python/oxcrypto/password/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/password/argon2.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/password/argon2.pyi +35 -0
- oxcrypto-0.1.0/python/oxcrypto/password/balloon.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/password/balloon.pyi +33 -0
- oxcrypto-0.1.0/python/oxcrypto/password/bcrypt.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/password/bcrypt.pyi +10 -0
- oxcrypto-0.1.0/python/oxcrypto/password/bcrypt_pbkdf.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/password/bcrypt_pbkdf.pyi +9 -0
- oxcrypto-0.1.0/python/oxcrypto/password/legacy_crypt.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/password/legacy_crypt.pyi +9 -0
- oxcrypto-0.1.0/python/oxcrypto/password/password_auth.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/password/password_auth.pyi +9 -0
- oxcrypto-0.1.0/python/oxcrypto/password/pbkdf2.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/password/pbkdf2.pyi +21 -0
- oxcrypto-0.1.0/python/oxcrypto/password/scrypt.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/password/scrypt.pyi +19 -0
- oxcrypto-0.1.0/python/oxcrypto/password/sha_crypt.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/password/sha_crypt.pyi +9 -0
- oxcrypto-0.1.0/python/oxcrypto/password/yescrypt.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/password/yescrypt.pyi +27 -0
- oxcrypto-0.1.0/python/oxcrypto/pki/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/pki/cms.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/pki/cms.pyi +31 -0
- oxcrypto-0.1.0/python/oxcrypto/pki/path.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/pki/path.pyi +21 -0
- oxcrypto-0.1.0/python/oxcrypto/pki/x509.py +15 -0
- oxcrypto-0.1.0/python/oxcrypto/pki/x509.pyi +125 -0
- oxcrypto-0.1.0/python/oxcrypto/py.typed +0 -0
- oxcrypto-0.1.0/python/oxcrypto/random/__init__.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/random/__init__.pyi +3 -0
- oxcrypto-0.1.0/python/oxcrypto/random/chacha.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/random/chacha.pyi +16 -0
- oxcrypto-0.1.0/python/oxcrypto/secret_sharing/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/secret_sharing/feldman.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/secret_sharing/feldman.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/secret_sharing/pedersen.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/secret_sharing/pedersen.pyi +14 -0
- oxcrypto-0.1.0/python/oxcrypto/secret_sharing/shamir.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/secret_sharing/shamir.pyi +10 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/blind_rsa.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/blind_rsa.pyi +42 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/bls.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/bls.pyi +38 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/dsa.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/dsa.pyi +67 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/ecdsa.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/ecdsa.pyi +107 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/ed25519.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/ed25519.pyi +43 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/ed448.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/ed448.pyi +43 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/fn_dsa.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/fn_dsa.pyi +45 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/ml_dsa.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/ml_dsa.pyi +46 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/rsa.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/rsa.pyi +117 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/schnorr.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/schnorr.pyi +24 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/slh_dsa.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/slh_dsa.pyi +55 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/sr25519.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/sr25519.pyi +26 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/xmss.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/signature/xmss.pyi +69 -0
- oxcrypto-0.1.0/python/oxcrypto/ssh/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/ssh/openssh.py +10 -0
- oxcrypto-0.1.0/python/oxcrypto/ssh/openssh.pyi +110 -0
- oxcrypto-0.1.0/python/oxcrypto/ssh/sshsig.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/ssh/sshsig.pyi +29 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/chacha20.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/chacha20.pyi +23 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/hc_256.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/hc_256.pyi +14 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/rabbit.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/rabbit.pyi +15 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/rc4.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/rc4.pyi +14 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/salsa20.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/stream/salsa20.pyi +22 -0
- oxcrypto-0.1.0/python/oxcrypto/threshold/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/threshold/frost.py +19 -0
- oxcrypto-0.1.0/python/oxcrypto/threshold/frost.pyi +69 -0
- oxcrypto-0.1.0/python/oxcrypto/universal_hash/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/universal_hash/ghash.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/universal_hash/ghash.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/universal_hash/poly1305.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/universal_hash/poly1305.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/universal_hash/polyval.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/universal_hash/polyval.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/vrf/__init__.py +1 -0
- oxcrypto-0.1.0/python/oxcrypto/vrf/ecvrf.py +9 -0
- oxcrypto-0.1.0/python/oxcrypto/vrf/ecvrf.pyi +26 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/__init__.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/__init__.pyi +12 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/ascon_xof128.py +8 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/ascon_xof128.pyi +24 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/bash_prg_hash.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/bash_prg_hash.pyi +19 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/cshake.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/cshake.pyi +31 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/k12.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/k12.pyi +17 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/shake.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/shake.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/tuple_hash.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/tuple_hash.pyi +13 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/turboshake.py +7 -0
- oxcrypto-0.1.0/python/oxcrypto/xof/turboshake.pyi +22 -0
- oxcrypto-0.1.0/scripts/licenses.py +205 -0
- oxcrypto-0.1.0/src/aead/aes_gcm.rs +10 -0
- oxcrypto-0.1.0/src/aead/aes_gcm_siv.rs +9 -0
- oxcrypto-0.1.0/src/aead/ascon_aead128.rs +9 -0
- oxcrypto-0.1.0/src/aead/belt_dwp.rs +8 -0
- oxcrypto-0.1.0/src/aead/chacha20poly1305.rs +20 -0
- oxcrypto-0.1.0/src/aead/deoxys.rs +15 -0
- oxcrypto-0.1.0/src/aead/mod.rs +35 -0
- oxcrypto-0.1.0/src/aead/stream.rs +177 -0
- oxcrypto-0.1.0/src/aead/template.rs +438 -0
- oxcrypto-0.1.0/src/aead/xaes_256_gcm.rs +10 -0
- oxcrypto-0.1.0/src/aead/xoodyak.rs +94 -0
- oxcrypto-0.1.0/src/age/mod.rs +10 -0
- oxcrypto-0.1.0/src/age/x25519.rs +155 -0
- oxcrypto-0.1.0/src/cipher/aes.rs +10 -0
- oxcrypto-0.1.0/src/cipher/aria.rs +10 -0
- oxcrypto-0.1.0/src/cipher/belt_block.rs +8 -0
- oxcrypto-0.1.0/src/cipher/belt_ctr.rs +56 -0
- oxcrypto-0.1.0/src/cipher/block.rs +222 -0
- oxcrypto-0.1.0/src/cipher/blowfish.rs +8 -0
- oxcrypto-0.1.0/src/cipher/camellia.rs +10 -0
- oxcrypto-0.1.0/src/cipher/cast5.rs +8 -0
- oxcrypto-0.1.0/src/cipher/cast6.rs +8 -0
- oxcrypto-0.1.0/src/cipher/cbc.rs +6 -0
- oxcrypto-0.1.0/src/cipher/cfb.rs +6 -0
- oxcrypto-0.1.0/src/cipher/cfb8.rs +6 -0
- oxcrypto-0.1.0/src/cipher/context.rs +637 -0
- oxcrypto-0.1.0/src/cipher/ctr.rs +73 -0
- oxcrypto-0.1.0/src/cipher/des.rs +12 -0
- oxcrypto-0.1.0/src/cipher/ecb.rs +63 -0
- oxcrypto-0.1.0/src/cipher/gift.rs +8 -0
- oxcrypto-0.1.0/src/cipher/hazmat.rs +67 -0
- oxcrypto-0.1.0/src/cipher/idea.rs +8 -0
- oxcrypto-0.1.0/src/cipher/ige.rs +6 -0
- oxcrypto-0.1.0/src/cipher/kuznyechik.rs +8 -0
- oxcrypto-0.1.0/src/cipher/magma.rs +12 -0
- oxcrypto-0.1.0/src/cipher/mod.rs +74 -0
- oxcrypto-0.1.0/src/cipher/ofb.rs +6 -0
- oxcrypto-0.1.0/src/cipher/pcbc.rs +6 -0
- oxcrypto-0.1.0/src/cipher/rc2.rs +8 -0
- oxcrypto-0.1.0/src/cipher/rc5.rs +12 -0
- oxcrypto-0.1.0/src/cipher/serpent.rs +8 -0
- oxcrypto-0.1.0/src/cipher/sm4.rs +8 -0
- oxcrypto-0.1.0/src/cipher/speck.rs +17 -0
- oxcrypto-0.1.0/src/cipher/threefish.rs +10 -0
- oxcrypto-0.1.0/src/cipher/twofish.rs +8 -0
- oxcrypto-0.1.0/src/cipher/xtea.rs +8 -0
- oxcrypto-0.1.0/src/cose/mod.rs +752 -0
- oxcrypto-0.1.0/src/encoding/base16.rs +49 -0
- oxcrypto-0.1.0/src/encoding/base32.rs +13 -0
- oxcrypto-0.1.0/src/encoding/base64.rs +23 -0
- oxcrypto-0.1.0/src/encoding/mod.rs +17 -0
- oxcrypto-0.1.0/src/encoding/pem.rs +54 -0
- oxcrypto-0.1.0/src/encoding/template.rs +93 -0
- oxcrypto-0.1.0/src/encryption/mod.rs +10 -0
- oxcrypto-0.1.0/src/encryption/rsa.rs +136 -0
- oxcrypto-0.1.0/src/errors.rs +14 -0
- oxcrypto-0.1.0/src/exchange/bign.rs +246 -0
- oxcrypto-0.1.0/src/exchange/ecdh.rs +316 -0
- oxcrypto-0.1.0/src/exchange/mod.rs +24 -0
- oxcrypto-0.1.0/src/exchange/x25519.rs +213 -0
- oxcrypto-0.1.0/src/exchange/x448.rs +213 -0
- oxcrypto-0.1.0/src/hash/ascon_hash256.rs +8 -0
- oxcrypto-0.1.0/src/hash/bao.rs +209 -0
- oxcrypto-0.1.0/src/hash/bash_hash.rs +10 -0
- oxcrypto-0.1.0/src/hash/belt_hash.rs +8 -0
- oxcrypto-0.1.0/src/hash/blake2.rs +177 -0
- oxcrypto-0.1.0/src/hash/blake3.rs +69 -0
- oxcrypto-0.1.0/src/hash/fsb.rs +12 -0
- oxcrypto-0.1.0/src/hash/gost94.rs +11 -0
- oxcrypto-0.1.0/src/hash/groestl.rs +44 -0
- oxcrypto-0.1.0/src/hash/jh.rs +11 -0
- oxcrypto-0.1.0/src/hash/keccak.rs +14 -0
- oxcrypto-0.1.0/src/hash/kupyna.rs +44 -0
- oxcrypto-0.1.0/src/hash/md2.rs +8 -0
- oxcrypto-0.1.0/src/hash/md4.rs +8 -0
- oxcrypto-0.1.0/src/hash/md5.rs +8 -0
- oxcrypto-0.1.0/src/hash/mod.rs +64 -0
- oxcrypto-0.1.0/src/hash/ripemd.rs +11 -0
- oxcrypto-0.1.0/src/hash/sha1.rs +8 -0
- oxcrypto-0.1.0/src/hash/sha1_checked.rs +30 -0
- oxcrypto-0.1.0/src/hash/sha2.rs +15 -0
- oxcrypto-0.1.0/src/hash/sha3.rs +13 -0
- oxcrypto-0.1.0/src/hash/shabal.rs +12 -0
- oxcrypto-0.1.0/src/hash/skein.rs +24 -0
- oxcrypto-0.1.0/src/hash/sm3.rs +8 -0
- oxcrypto-0.1.0/src/hash/streebog.rs +9 -0
- oxcrypto-0.1.0/src/hash/template.rs +482 -0
- oxcrypto-0.1.0/src/hash/tiger.rs +9 -0
- oxcrypto-0.1.0/src/hash/whirlpool.rs +8 -0
- oxcrypto-0.1.0/src/hazmat/ascon.rs +34 -0
- oxcrypto-0.1.0/src/hazmat/bash_f.rs +27 -0
- oxcrypto-0.1.0/src/hazmat/decaf448.rs +106 -0
- oxcrypto-0.1.0/src/hazmat/hash_to_curve.rs +106 -0
- oxcrypto-0.1.0/src/hazmat/keccak.rs +64 -0
- oxcrypto-0.1.0/src/hazmat/mod.rs +21 -0
- oxcrypto-0.1.0/src/hazmat/ristretto255.rs +108 -0
- oxcrypto-0.1.0/src/hazmat/template.rs +78 -0
- oxcrypto-0.1.0/src/hd/bip32.rs +279 -0
- oxcrypto-0.1.0/src/hd/bip39.rs +212 -0
- oxcrypto-0.1.0/src/hd/mod.rs +15 -0
- oxcrypto-0.1.0/src/hpke/keys.rs +140 -0
- oxcrypto-0.1.0/src/hpke/mod.rs +231 -0
- oxcrypto-0.1.0/src/hpke/suite.rs +451 -0
- oxcrypto-0.1.0/src/int.rs +64 -0
- oxcrypto-0.1.0/src/jose/jwe.rs +734 -0
- oxcrypto-0.1.0/src/jose/jwk.rs +605 -0
- oxcrypto-0.1.0/src/jose/jws.rs +152 -0
- oxcrypto-0.1.0/src/jose/jwt.rs +124 -0
- oxcrypto-0.1.0/src/jose/mod.rs +117 -0
- oxcrypto-0.1.0/src/jose/sig.rs +285 -0
- oxcrypto-0.1.0/src/kdf/ansi_x963_kdf.rs +18 -0
- oxcrypto-0.1.0/src/kdf/bake_kdf.rs +83 -0
- oxcrypto-0.1.0/src/kdf/hkdf.rs +183 -0
- oxcrypto-0.1.0/src/kdf/kbkdf.rs +272 -0
- oxcrypto-0.1.0/src/kdf/mod.rs +20 -0
- oxcrypto-0.1.0/src/kdf/one_step_kdf.rs +18 -0
- oxcrypto-0.1.0/src/kdf/support.rs +71 -0
- oxcrypto-0.1.0/src/kem/dhkem.rs +87 -0
- oxcrypto-0.1.0/src/kem/frodo_kem.rs +90 -0
- oxcrypto-0.1.0/src/kem/hqc_kem.rs +14 -0
- oxcrypto-0.1.0/src/kem/ml_kem.rs +13 -0
- oxcrypto-0.1.0/src/kem/mod.rs +33 -0
- oxcrypto-0.1.0/src/kem/sntrup_kem.rs +20 -0
- oxcrypto-0.1.0/src/kem/template.rs +314 -0
- oxcrypto-0.1.0/src/kem/x_wing.rs +13 -0
- oxcrypto-0.1.0/src/keywrap/aes_kw.rs +119 -0
- oxcrypto-0.1.0/src/keywrap/belt_kwp.rs +67 -0
- oxcrypto-0.1.0/src/keywrap/mod.rs +12 -0
- oxcrypto-0.1.0/src/lib.rs +73 -0
- oxcrypto-0.1.0/src/mac/cbc_mac.rs +52 -0
- oxcrypto-0.1.0/src/mac/cmac.rs +48 -0
- oxcrypto-0.1.0/src/mac/hmac.rs +59 -0
- oxcrypto-0.1.0/src/mac/mod.rs +20 -0
- oxcrypto-0.1.0/src/mac/pmac.rs +48 -0
- oxcrypto-0.1.0/src/mac/retail_mac.rs +52 -0
- oxcrypto-0.1.0/src/mac/template.rs +255 -0
- oxcrypto-0.1.0/src/nacl/crypto_box.rs +157 -0
- oxcrypto-0.1.0/src/nacl/crypto_secretbox.rs +94 -0
- oxcrypto-0.1.0/src/nacl/mod.rs +15 -0
- oxcrypto-0.1.0/src/nacl/support.rs +80 -0
- oxcrypto-0.1.0/src/oprf/base.rs +117 -0
- oxcrypto-0.1.0/src/oprf/mod.rs +23 -0
- oxcrypto-0.1.0/src/oprf/poprf.rs +180 -0
- oxcrypto-0.1.0/src/oprf/template.rs +500 -0
- oxcrypto-0.1.0/src/oprf/voprf.rs +173 -0
- oxcrypto-0.1.0/src/otp/mod.rs +11 -0
- oxcrypto-0.1.0/src/otp/totp.rs +194 -0
- oxcrypto-0.1.0/src/pake/mod.rs +14 -0
- oxcrypto-0.1.0/src/pake/opaque.rs +561 -0
- oxcrypto-0.1.0/src/paseto/mod.rs +345 -0
- oxcrypto-0.1.0/src/password/argon2.rs +270 -0
- oxcrypto-0.1.0/src/password/balloon.rs +127 -0
- oxcrypto-0.1.0/src/password/bcrypt.rs +58 -0
- oxcrypto-0.1.0/src/password/bcrypt_pbkdf.rs +35 -0
- oxcrypto-0.1.0/src/password/legacy_crypt.rs +45 -0
- oxcrypto-0.1.0/src/password/mod.rs +30 -0
- oxcrypto-0.1.0/src/password/password_auth.rs +48 -0
- oxcrypto-0.1.0/src/password/pbkdf2.rs +120 -0
- oxcrypto-0.1.0/src/password/scrypt.rs +84 -0
- oxcrypto-0.1.0/src/password/sha_crypt.rs +51 -0
- oxcrypto-0.1.0/src/password/support.rs +49 -0
- oxcrypto-0.1.0/src/password/yescrypt.rs +76 -0
- oxcrypto-0.1.0/src/pki/cms.rs +213 -0
- oxcrypto-0.1.0/src/pki/keys.rs +512 -0
- oxcrypto-0.1.0/src/pki/mod.rs +18 -0
- oxcrypto-0.1.0/src/pki/path.rs +275 -0
- oxcrypto-0.1.0/src/pki/x509.rs +640 -0
- oxcrypto-0.1.0/src/random/chacha20.rs +95 -0
- oxcrypto-0.1.0/src/random/getrandom.rs +17 -0
- oxcrypto-0.1.0/src/random/mod.rs +13 -0
- oxcrypto-0.1.0/src/secret_sharing/mod.rs +21 -0
- oxcrypto-0.1.0/src/secret_sharing/shamir.rs +45 -0
- oxcrypto-0.1.0/src/secret_sharing/vss.rs +327 -0
- oxcrypto-0.1.0/src/signature/blind_rsa.rs +416 -0
- oxcrypto-0.1.0/src/signature/bls.rs +305 -0
- oxcrypto-0.1.0/src/signature/dsa.rs +343 -0
- oxcrypto-0.1.0/src/signature/ecdsa.rs +480 -0
- oxcrypto-0.1.0/src/signature/ed25519.rs +278 -0
- oxcrypto-0.1.0/src/signature/ed448.rs +272 -0
- oxcrypto-0.1.0/src/signature/fn_dsa.rs +170 -0
- oxcrypto-0.1.0/src/signature/ml_dsa.rs +177 -0
- oxcrypto-0.1.0/src/signature/mod.rs +64 -0
- oxcrypto-0.1.0/src/signature/pkcs8.rs +206 -0
- oxcrypto-0.1.0/src/signature/rsa.rs +485 -0
- oxcrypto-0.1.0/src/signature/schnorr.rs +145 -0
- oxcrypto-0.1.0/src/signature/slh_dsa.rs +157 -0
- oxcrypto-0.1.0/src/signature/sr25519.rs +138 -0
- oxcrypto-0.1.0/src/signature/support.rs +228 -0
- oxcrypto-0.1.0/src/signature/template.rs +727 -0
- oxcrypto-0.1.0/src/signature/xmss.rs +302 -0
- oxcrypto-0.1.0/src/ssh/convert.rs +329 -0
- oxcrypto-0.1.0/src/ssh/mod.rs +15 -0
- oxcrypto-0.1.0/src/ssh/openssh.rs +410 -0
- oxcrypto-0.1.0/src/ssh/sshsig.rs +75 -0
- oxcrypto-0.1.0/src/stream/chacha20.rs +17 -0
- oxcrypto-0.1.0/src/stream/hc_256.rs +8 -0
- oxcrypto-0.1.0/src/stream/mod.rs +24 -0
- oxcrypto-0.1.0/src/stream/rabbit.rs +11 -0
- oxcrypto-0.1.0/src/stream/rc4.rs +8 -0
- oxcrypto-0.1.0/src/stream/salsa20.rs +15 -0
- oxcrypto-0.1.0/src/stream/template.rs +307 -0
- oxcrypto-0.1.0/src/threshold/frost.rs +608 -0
- oxcrypto-0.1.0/src/threshold/mod.rs +15 -0
- oxcrypto-0.1.0/src/universal_hash/ghash.rs +19 -0
- oxcrypto-0.1.0/src/universal_hash/mod.rs +15 -0
- oxcrypto-0.1.0/src/universal_hash/poly1305.rs +17 -0
- oxcrypto-0.1.0/src/universal_hash/polyval.rs +19 -0
- oxcrypto-0.1.0/src/universal_hash/template.rs +65 -0
- oxcrypto-0.1.0/src/vrf/ecvrf.rs +154 -0
- oxcrypto-0.1.0/src/vrf/mod.rs +12 -0
- oxcrypto-0.1.0/src/xof/ascon_xof128.rs +24 -0
- oxcrypto-0.1.0/src/xof/bash_prg_hash.rs +25 -0
- oxcrypto-0.1.0/src/xof/cshake.rs +12 -0
- oxcrypto-0.1.0/src/xof/k12.rs +13 -0
- oxcrypto-0.1.0/src/xof/mod.rs +26 -0
- oxcrypto-0.1.0/src/xof/shake.rs +11 -0
- oxcrypto-0.1.0/src/xof/template.rs +218 -0
- oxcrypto-0.1.0/src/xof/tuple_hash.rs +78 -0
- oxcrypto-0.1.0/src/xof/turboshake.rs +38 -0
- oxcrypto-0.1.0/tests/aead/__init__.py +0 -0
- oxcrypto-0.1.0/tests/aead/support.py +65 -0
- oxcrypto-0.1.0/tests/aead/test_aes_gcm.py +16 -0
- oxcrypto-0.1.0/tests/aead/test_aes_gcm_siv.py +16 -0
- oxcrypto-0.1.0/tests/aead/test_api.py +145 -0
- oxcrypto-0.1.0/tests/aead/test_ascon_aead128.py +16 -0
- oxcrypto-0.1.0/tests/aead/test_belt_dwp.py +15 -0
- oxcrypto-0.1.0/tests/aead/test_chacha20poly1305.py +32 -0
- oxcrypto-0.1.0/tests/aead/test_deoxys.py +24 -0
- oxcrypto-0.1.0/tests/aead/test_stream.py +102 -0
- oxcrypto-0.1.0/tests/aead/test_xaes_256_gcm.py +16 -0
- oxcrypto-0.1.0/tests/aead/test_xoodyak.py +25 -0
- oxcrypto-0.1.0/tests/age/__init__.py +0 -0
- oxcrypto-0.1.0/tests/age/test_x25519.py +134 -0
- oxcrypto-0.1.0/tests/cipher/__init__.py +0 -0
- oxcrypto-0.1.0/tests/cipher/test_block_ciphers.py +103 -0
- oxcrypto-0.1.0/tests/cipher/test_integer_options.py +17 -0
- oxcrypto-0.1.0/tests/cipher/test_modes.py +230 -0
- oxcrypto-0.1.0/tests/cose/test_cose.py +184 -0
- oxcrypto-0.1.0/tests/data/aead/aes_gcm.json +2172 -0
- oxcrypto-0.1.0/tests/data/aead/aes_gcm_siv.json +2227 -0
- oxcrypto-0.1.0/tests/data/aead/ascon_aead128.json +2777 -0
- oxcrypto-0.1.0/tests/data/aead/belt_dwp.json +21 -0
- oxcrypto-0.1.0/tests/data/aead/chacha20_poly1305.json +3481 -0
- oxcrypto-0.1.0/tests/data/aead/deoxys_i_128.json +69 -0
- oxcrypto-0.1.0/tests/data/aead/deoxys_i_256.json +69 -0
- oxcrypto-0.1.0/tests/data/aead/deoxys_ii_128.json +69 -0
- oxcrypto-0.1.0/tests/data/aead/deoxys_ii_256.json +69 -0
- oxcrypto-0.1.0/tests/data/aead/xaes_256_gcm.json +21 -0
- oxcrypto-0.1.0/tests/data/aead/xchacha20_poly1305.json +3371 -0
- oxcrypto-0.1.0/tests/data/aead/xoodyak.json +8717 -0
- oxcrypto-0.1.0/tests/data/age/cctv_x25519.json +1044 -0
- oxcrypto-0.1.0/tests/data/cipher/block_ciphers.json +802 -0
- oxcrypto-0.1.0/tests/data/cipher/modes.json +592 -0
- oxcrypto-0.1.0/tests/data/cose/LICENSE +24 -0
- oxcrypto-0.1.0/tests/data/cose/examples.json +845 -0
- oxcrypto-0.1.0/tests/data/encoding/base16.json +116 -0
- oxcrypto-0.1.0/tests/data/encoding/base32.json +188 -0
- oxcrypto-0.1.0/tests/data/encoding/base64.json +566 -0
- oxcrypto-0.1.0/tests/data/encoding/pem.json +20 -0
- oxcrypto-0.1.0/tests/data/encryption/rsa.json +2645 -0
- oxcrypto-0.1.0/tests/data/exchange/ecdh_cavp.json +1 -0
- oxcrypto-0.1.0/tests/data/exchange/ecdh_openssl_brainpool_t1.json +42 -0
- oxcrypto-0.1.0/tests/data/exchange/ecdh_wycheproof.json +1 -0
- oxcrypto-0.1.0/tests/data/exchange/rfc7748.json +53 -0
- oxcrypto-0.1.0/tests/data/exchange/wycheproof_x25519.json +6001 -0
- oxcrypto-0.1.0/tests/data/exchange/wycheproof_x25519_asn.json +6208 -0
- oxcrypto-0.1.0/tests/data/exchange/wycheproof_x25519_pem.json +6001 -0
- oxcrypto-0.1.0/tests/data/exchange/wycheproof_x448.json +5893 -0
- oxcrypto-0.1.0/tests/data/exchange/wycheproof_x448_asn.json +6098 -0
- oxcrypto-0.1.0/tests/data/exchange/wycheproof_x448_pem.json +5893 -0
- oxcrypto-0.1.0/tests/data/hash/ascon_hash256.json +122 -0
- oxcrypto-0.1.0/tests/data/hash/bao.json +3390 -0
- oxcrypto-0.1.0/tests/data/hash/bash_hash.json +52 -0
- oxcrypto-0.1.0/tests/data/hash/belt_hash.json +17 -0
- oxcrypto-0.1.0/tests/data/hash/blake2.json +733 -0
- oxcrypto-0.1.0/tests/data/hash/blake3.json +877 -0
- oxcrypto-0.1.0/tests/data/hash/fsb.json +77 -0
- oxcrypto-0.1.0/tests/data/hash/gost94.json +103 -0
- oxcrypto-0.1.0/tests/data/hash/groestl.json +442 -0
- oxcrypto-0.1.0/tests/data/hash/jh.json +482 -0
- oxcrypto-0.1.0/tests/data/hash/keccak.json +77 -0
- oxcrypto-0.1.0/tests/data/hash/kupyna.json +73 -0
- oxcrypto-0.1.0/tests/data/hash/md2.json +17 -0
- oxcrypto-0.1.0/tests/data/hash/md4.json +47 -0
- oxcrypto-0.1.0/tests/data/hash/md5.json +32 -0
- oxcrypto-0.1.0/tests/data/hash/ripemd.json +152 -0
- oxcrypto-0.1.0/tests/data/hash/sha1.json +22 -0
- oxcrypto-0.1.0/tests/data/hash/sha1_checked.json +36 -0
- oxcrypto-0.1.0/tests/data/hash/sha2_nist.json +50 -0
- oxcrypto-0.1.0/tests/data/hash/sha3_nist.json +42 -0
- oxcrypto-0.1.0/tests/data/hash/shabal.json +752 -0
- oxcrypto-0.1.0/tests/data/hash/skein.json +297 -0
- oxcrypto-0.1.0/tests/data/hash/sm3.json +27 -0
- oxcrypto-0.1.0/tests/data/hash/streebog.json +72 -0
- oxcrypto-0.1.0/tests/data/hash/tiger.json +72 -0
- oxcrypto-0.1.0/tests/data/hash/whirlpool.json +92 -0
- oxcrypto-0.1.0/tests/data/hazmat/ascon.json +20 -0
- oxcrypto-0.1.0/tests/data/hazmat/bash_f.json +7 -0
- oxcrypto-0.1.0/tests/data/hazmat/hash_to_curve.json +1 -0
- oxcrypto-0.1.0/tests/data/hazmat/keccak.json +50 -0
- oxcrypto-0.1.0/tests/data/hazmat/rfc9496.json +161 -0
- oxcrypto-0.1.0/tests/data/hd/bip32.json +175 -0
- oxcrypto-0.1.0/tests/data/hd/bip39.json +1462 -0
- oxcrypto-0.1.0/tests/data/hd/bip39_japanese.json +170 -0
- oxcrypto-0.1.0/tests/data/hpke/pq.json +640 -0
- oxcrypto-0.1.0/tests/data/hpke/rfc9180.json +4298 -0
- oxcrypto-0.1.0/tests/data/jose/rfc.json +114 -0
- oxcrypto-0.1.0/tests/data/kdf/ansi_x963_kdf_acvp.json +674 -0
- oxcrypto-0.1.0/tests/data/kdf/bake_kdf.json +36 -0
- oxcrypto-0.1.0/tests/data/kdf/hkdf_rfc5869.json +65 -0
- oxcrypto-0.1.0/tests/data/kdf/hkdf_streebog.json +14 -0
- oxcrypto-0.1.0/tests/data/kdf/hkdf_wycheproof.json +3392 -0
- oxcrypto-0.1.0/tests/data/kdf/kbkdf_nist.json +6118 -0
- oxcrypto-0.1.0/tests/data/kdf/one_step_kdf_acvp.json +212 -0
- oxcrypto-0.1.0/tests/data/kem/dhkem.json +38 -0
- oxcrypto-0.1.0/tests/data/kem/frodo_kem.json +86 -0
- oxcrypto-0.1.0/tests/data/kem/hqc_kem.json +26 -0
- oxcrypto-0.1.0/tests/data/kem/ml_kem.json +56 -0
- oxcrypto-0.1.0/tests/data/kem/ml_kem_acvp.txt +38 -0
- oxcrypto-0.1.0/tests/data/kem/ml_kem_key_check.json +182 -0
- oxcrypto-0.1.0/tests/data/kem/sntrup_kem.json +16 -0
- oxcrypto-0.1.0/tests/data/kem/x_wing.json +26 -0
- oxcrypto-0.1.0/tests/data/keywrap/aes_kw.json +142 -0
- oxcrypto-0.1.0/tests/data/keywrap/belt_kwp.json +16 -0
- oxcrypto-0.1.0/tests/data/mac/cbc_mac.json +772 -0
- oxcrypto-0.1.0/tests/data/mac/cmac.json +1577 -0
- oxcrypto-0.1.0/tests/data/mac/hmac.json +1164 -0
- oxcrypto-0.1.0/tests/data/mac/pmac.json +149 -0
- oxcrypto-0.1.0/tests/data/mac/retail_mac.json +772 -0
- oxcrypto-0.1.0/tests/data/nacl/vectors.json +29 -0
- oxcrypto-0.1.0/tests/data/oprf/rfc9497.json +762 -0
- oxcrypto-0.1.0/tests/data/otp/hotp.json +46 -0
- oxcrypto-0.1.0/tests/data/otp/totp.json +113 -0
- oxcrypto-0.1.0/tests/data/pake/opaque_rfc9807.json +125 -0
- oxcrypto-0.1.0/tests/data/paseto/LICENSE +16 -0
- oxcrypto-0.1.0/tests/data/paseto/v3.json +183 -0
- oxcrypto-0.1.0/tests/data/paseto/v4.json +187 -0
- oxcrypto-0.1.0/tests/data/password/argon2_reference.json +11 -0
- oxcrypto-0.1.0/tests/data/password/argon2_rfc9106.txt +9 -0
- oxcrypto-0.1.0/tests/data/password/balloon.json +26 -0
- oxcrypto-0.1.0/tests/data/password/bcrypt.json +74 -0
- oxcrypto-0.1.0/tests/data/password/bcrypt_pbkdf.json +13 -0
- oxcrypto-0.1.0/tests/data/password/legacy_crypt.json +122 -0
- oxcrypto-0.1.0/tests/data/password/pbkdf2.json +123 -0
- oxcrypto-0.1.0/tests/data/password/scrypt.json +15 -0
- oxcrypto-0.1.0/tests/data/password/sha_crypt.json +14 -0
- oxcrypto-0.1.0/tests/data/password/yescrypt.json +43 -0
- oxcrypto-0.1.0/tests/data/pki/BadSignedCACRL.crl +0 -0
- oxcrypto-0.1.0/tests/data/pki/BadSignedCACert.crt +0 -0
- oxcrypto-0.1.0/tests/data/pki/GoodCACRL.crl +0 -0
- oxcrypto-0.1.0/tests/data/pki/GoodCACert.crt +0 -0
- oxcrypto-0.1.0/tests/data/pki/InvalidCASignatureTest2EE.crt +0 -0
- oxcrypto-0.1.0/tests/data/pki/InvalidEESignatureTest3EE.crt +0 -0
- oxcrypto-0.1.0/tests/data/pki/InvalidEEnotAfterDateTest6EE.crt +0 -0
- oxcrypto-0.1.0/tests/data/pki/InvalidRevokedEETest3EE.crt +0 -0
- oxcrypto-0.1.0/tests/data/pki/SignedValidSignaturesTest1.content +3 -0
- oxcrypto-0.1.0/tests/data/pki/SignedValidSignaturesTest1.p7s +0 -0
- oxcrypto-0.1.0/tests/data/pki/TrustAnchorRootCRL.crl +0 -0
- oxcrypto-0.1.0/tests/data/pki/TrustAnchorRootCertificate.crt +0 -0
- oxcrypto-0.1.0/tests/data/pki/ValidCertificatePathTest1EE.crt +0 -0
- oxcrypto-0.1.0/tests/data/pki/openssl_signed_data.der +0 -0
- oxcrypto-0.1.0/tests/data/pki/rsa2048-csr.pem +19 -0
- oxcrypto-0.1.0/tests/data/random/chacha.json +170 -0
- oxcrypto-0.1.0/tests/data/signature/bip340.json +1 -0
- oxcrypto-0.1.0/tests/data/signature/blind_rsa.json +39 -0
- oxcrypto-0.1.0/tests/data/signature/bls.json +614 -0
- oxcrypto-0.1.0/tests/data/signature/dsa.json +3775 -0
- oxcrypto-0.1.0/tests/data/signature/ecdsa_cavp_sigver.json +1 -0
- oxcrypto-0.1.0/tests/data/signature/ecdsa_openssl_brainpool_t1.json +68 -0
- oxcrypto-0.1.0/tests/data/signature/ecdsa_wycheproof.json +1 -0
- oxcrypto-0.1.0/tests/data/signature/ml_dsa.json +441 -0
- oxcrypto-0.1.0/tests/data/signature/rfc8032.json +170 -0
- oxcrypto-0.1.0/tests/data/signature/rsa.json +6346 -0
- oxcrypto-0.1.0/tests/data/signature/slh_dsa.json +320 -0
- oxcrypto-0.1.0/tests/data/signature/sr25519.json +24 -0
- oxcrypto-0.1.0/tests/data/signature/wycheproof_ed25519.json +3219 -0
- oxcrypto-0.1.0/tests/data/signature/wycheproof_ed448.json +1029 -0
- oxcrypto-0.1.0/tests/data/ssh/openssh.json +90 -0
- oxcrypto-0.1.0/tests/data/stream/chacha20.json +250 -0
- oxcrypto-0.1.0/tests/data/stream/hc_256.json +26 -0
- oxcrypto-0.1.0/tests/data/stream/rabbit.json +50 -0
- oxcrypto-0.1.0/tests/data/stream/rc4.json +2018 -0
- oxcrypto-0.1.0/tests/data/stream/salsa20.json +890 -0
- oxcrypto-0.1.0/tests/data/threshold/frost.json +20 -0
- oxcrypto-0.1.0/tests/data/universal_hash/universal_hash.json +128 -0
- oxcrypto-0.1.0/tests/data/vrf/ecvrf_ristretto255_sha512.json +10 -0
- oxcrypto-0.1.0/tests/data/xof/ascon_cxof128.json +110 -0
- oxcrypto-0.1.0/tests/data/xof/ascon_xof128.json +9 -0
- oxcrypto-0.1.0/tests/data/xof/bash_prg_hash.json +56 -0
- oxcrypto-0.1.0/tests/data/xof/cshake.json +20 -0
- oxcrypto-0.1.0/tests/data/xof/k12.json +16 -0
- oxcrypto-0.1.0/tests/data/xof/shake_nist.json +32 -0
- oxcrypto-0.1.0/tests/data/xof/tuple_hash.json +126 -0
- oxcrypto-0.1.0/tests/data/xof/turboshake.json +124 -0
- oxcrypto-0.1.0/tests/encoding/__init__.py +0 -0
- oxcrypto-0.1.0/tests/encoding/test_pem.py +70 -0
- oxcrypto-0.1.0/tests/encoding/test_rfc4648.py +73 -0
- oxcrypto-0.1.0/tests/encryption/__init__.py +0 -0
- oxcrypto-0.1.0/tests/encryption/test_integer_options.py +15 -0
- oxcrypto-0.1.0/tests/encryption/test_rsa.py +145 -0
- oxcrypto-0.1.0/tests/exchange/__init__.py +0 -0
- oxcrypto-0.1.0/tests/exchange/keys.py +74 -0
- oxcrypto-0.1.0/tests/exchange/test_bign.py +91 -0
- oxcrypto-0.1.0/tests/exchange/test_ecdh.py +146 -0
- oxcrypto-0.1.0/tests/exchange/test_x25519.py +120 -0
- oxcrypto-0.1.0/tests/exchange/test_x448.py +125 -0
- oxcrypto-0.1.0/tests/hash/__init__.py +0 -0
- oxcrypto-0.1.0/tests/hash/test_ascon_hash256.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_bao.py +156 -0
- oxcrypto-0.1.0/tests/hash/test_bash_hash.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_belt_hash.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_blake2.py +75 -0
- oxcrypto-0.1.0/tests/hash/test_blake3.py +67 -0
- oxcrypto-0.1.0/tests/hash/test_fsb.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_gost94.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_groestl.py +50 -0
- oxcrypto-0.1.0/tests/hash/test_hasher.py +90 -0
- oxcrypto-0.1.0/tests/hash/test_integer_options.py +48 -0
- oxcrypto-0.1.0/tests/hash/test_jh.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_keccak.py +27 -0
- oxcrypto-0.1.0/tests/hash/test_kupyna.py +49 -0
- oxcrypto-0.1.0/tests/hash/test_md2.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_md4.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_md5.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_ripemd.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_sha1.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_sha1_checked.py +33 -0
- oxcrypto-0.1.0/tests/hash/test_sha2.py +42 -0
- oxcrypto-0.1.0/tests/hash/test_sha3.py +21 -0
- oxcrypto-0.1.0/tests/hash/test_shabal.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_skein.py +25 -0
- oxcrypto-0.1.0/tests/hash/test_sm3.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_streebog.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_tiger.py +20 -0
- oxcrypto-0.1.0/tests/hash/test_whirlpool.py +20 -0
- oxcrypto-0.1.0/tests/hazmat/__init__.py +0 -0
- oxcrypto-0.1.0/tests/hazmat/test_group.py +95 -0
- oxcrypto-0.1.0/tests/hazmat/test_hash_to_curve.py +44 -0
- oxcrypto-0.1.0/tests/hazmat/test_integer_options.py +18 -0
- oxcrypto-0.1.0/tests/hazmat/test_permutation.py +103 -0
- oxcrypto-0.1.0/tests/hd/__init__.py +0 -0
- oxcrypto-0.1.0/tests/hd/test_bip32.py +149 -0
- oxcrypto-0.1.0/tests/hd/test_bip39.py +103 -0
- oxcrypto-0.1.0/tests/hpke/__init__.py +0 -0
- oxcrypto-0.1.0/tests/hpke/test_hpke.py +315 -0
- oxcrypto-0.1.0/tests/hpke/test_integer_options.py +27 -0
- oxcrypto-0.1.0/tests/jose/test_jose.py +261 -0
- oxcrypto-0.1.0/tests/kdf/test_bake_kdf.py +85 -0
- oxcrypto-0.1.0/tests/kdf/test_digest_kdfs.py +96 -0
- oxcrypto-0.1.0/tests/kdf/test_hkdf.py +124 -0
- oxcrypto-0.1.0/tests/kdf/test_kbkdf.py +214 -0
- oxcrypto-0.1.0/tests/kdf/test_kdf_integer_options.py +41 -0
- oxcrypto-0.1.0/tests/kem/__init__.py +0 -0
- oxcrypto-0.1.0/tests/kem/test_dhkem.py +35 -0
- oxcrypto-0.1.0/tests/kem/test_frodo_kem.py +35 -0
- oxcrypto-0.1.0/tests/kem/test_hqc_kem.py +24 -0
- oxcrypto-0.1.0/tests/kem/test_ml_kem.py +49 -0
- oxcrypto-0.1.0/tests/kem/test_sntrup_kem.py +29 -0
- oxcrypto-0.1.0/tests/kem/test_x_wing.py +24 -0
- oxcrypto-0.1.0/tests/kem/vectors.py +98 -0
- oxcrypto-0.1.0/tests/keywrap/__init__.py +0 -0
- oxcrypto-0.1.0/tests/keywrap/test_aes_kw.py +72 -0
- oxcrypto-0.1.0/tests/keywrap/test_belt_kwp.py +49 -0
- oxcrypto-0.1.0/tests/mac/__init__.py +0 -0
- oxcrypto-0.1.0/tests/mac/test_contract.py +131 -0
- oxcrypto-0.1.0/tests/mac/test_vectors.py +55 -0
- oxcrypto-0.1.0/tests/ml_kem.rs +106 -0
- oxcrypto-0.1.0/tests/nacl/__init__.py +0 -0
- oxcrypto-0.1.0/tests/nacl/test_crypto_box.py +85 -0
- oxcrypto-0.1.0/tests/nacl/test_crypto_secretbox.py +60 -0
- oxcrypto-0.1.0/tests/nacl/vectors.py +42 -0
- oxcrypto-0.1.0/tests/oprf/__init__.py +0 -0
- oxcrypto-0.1.0/tests/oprf/test_oprf.py +17 -0
- oxcrypto-0.1.0/tests/oprf/test_poprf.py +36 -0
- oxcrypto-0.1.0/tests/oprf/test_voprf.py +20 -0
- oxcrypto-0.1.0/tests/oprf/vectors.py +210 -0
- oxcrypto-0.1.0/tests/otp/__init__.py +0 -0
- oxcrypto-0.1.0/tests/otp/test_hotp.py +102 -0
- oxcrypto-0.1.0/tests/otp/test_integer_options.py +26 -0
- oxcrypto-0.1.0/tests/otp/test_totp.py +75 -0
- oxcrypto-0.1.0/tests/pake/__init__.py +0 -0
- oxcrypto-0.1.0/tests/pake/test_opaque.py +384 -0
- oxcrypto-0.1.0/tests/paseto/test_paseto.py +117 -0
- oxcrypto-0.1.0/tests/password/__init__.py +0 -0
- oxcrypto-0.1.0/tests/password/test_argon2.py +121 -0
- oxcrypto-0.1.0/tests/password/test_balloon.py +83 -0
- oxcrypto-0.1.0/tests/password/test_bcrypt.py +73 -0
- oxcrypto-0.1.0/tests/password/test_bcrypt_pbkdf.py +21 -0
- oxcrypto-0.1.0/tests/password/test_integer_options.py +68 -0
- oxcrypto-0.1.0/tests/password/test_legacy_crypt.py +54 -0
- oxcrypto-0.1.0/tests/password/test_password_auth.py +90 -0
- oxcrypto-0.1.0/tests/password/test_pbkdf2.py +58 -0
- oxcrypto-0.1.0/tests/password/test_scrypt.py +72 -0
- oxcrypto-0.1.0/tests/password/test_sha_crypt.py +42 -0
- oxcrypto-0.1.0/tests/password/test_yescrypt.py +76 -0
- oxcrypto-0.1.0/tests/pki/__init__.py +0 -0
- oxcrypto-0.1.0/tests/pki/conftest.py +58 -0
- oxcrypto-0.1.0/tests/pki/test_cms.py +85 -0
- oxcrypto-0.1.0/tests/pki/test_path.py +114 -0
- oxcrypto-0.1.0/tests/pki/test_x509.py +172 -0
- oxcrypto-0.1.0/tests/random/test_chacha.py +107 -0
- oxcrypto-0.1.0/tests/random/test_getrandom.py +22 -0
- oxcrypto-0.1.0/tests/random/test_random_integer_options.py +17 -0
- oxcrypto-0.1.0/tests/secret_sharing/__init__.py +0 -0
- oxcrypto-0.1.0/tests/secret_sharing/test_integer_options.py +24 -0
- oxcrypto-0.1.0/tests/secret_sharing/test_vsss.py +123 -0
- oxcrypto-0.1.0/tests/signature/__init__.py +0 -0
- oxcrypto-0.1.0/tests/signature/keys.py +92 -0
- oxcrypto-0.1.0/tests/signature/test_blind_rsa.py +157 -0
- oxcrypto-0.1.0/tests/signature/test_bls.py +206 -0
- oxcrypto-0.1.0/tests/signature/test_dsa.py +267 -0
- oxcrypto-0.1.0/tests/signature/test_ecdsa.py +299 -0
- oxcrypto-0.1.0/tests/signature/test_ed25519.py +128 -0
- oxcrypto-0.1.0/tests/signature/test_ed448.py +124 -0
- oxcrypto-0.1.0/tests/signature/test_fn_dsa.py +91 -0
- oxcrypto-0.1.0/tests/signature/test_integer_options.py +52 -0
- oxcrypto-0.1.0/tests/signature/test_ml_dsa.py +189 -0
- oxcrypto-0.1.0/tests/signature/test_pbes2.py +133 -0
- oxcrypto-0.1.0/tests/signature/test_rsa.py +295 -0
- oxcrypto-0.1.0/tests/signature/test_schnorr.py +72 -0
- oxcrypto-0.1.0/tests/signature/test_slh_dsa.py +143 -0
- oxcrypto-0.1.0/tests/signature/test_sr25519.py +100 -0
- oxcrypto-0.1.0/tests/signature/test_xmss.py +133 -0
- oxcrypto-0.1.0/tests/ssh/__init__.py +0 -0
- oxcrypto-0.1.0/tests/ssh/test_integer_options.py +31 -0
- oxcrypto-0.1.0/tests/ssh/test_openssh.py +307 -0
- oxcrypto-0.1.0/tests/ssh/test_sshsig.py +115 -0
- oxcrypto-0.1.0/tests/stream/__init__.py +0 -0
- oxcrypto-0.1.0/tests/stream/test_chacha20.py +48 -0
- oxcrypto-0.1.0/tests/stream/test_hc_256.py +17 -0
- oxcrypto-0.1.0/tests/stream/test_integer_options.py +27 -0
- oxcrypto-0.1.0/tests/stream/test_rabbit.py +23 -0
- oxcrypto-0.1.0/tests/stream/test_rc4.py +34 -0
- oxcrypto-0.1.0/tests/stream/test_salsa20.py +42 -0
- oxcrypto-0.1.0/tests/stream/vectors.py +139 -0
- oxcrypto-0.1.0/tests/test_errors.py +17 -0
- oxcrypto-0.1.0/tests/threshold/__init__.py +0 -0
- oxcrypto-0.1.0/tests/threshold/test_frost.py +217 -0
- oxcrypto-0.1.0/tests/threshold/test_integer_options.py +29 -0
- oxcrypto-0.1.0/tests/universal_hash/__init__.py +0 -0
- oxcrypto-0.1.0/tests/universal_hash/test_vectors.py +63 -0
- oxcrypto-0.1.0/tests/vrf/__init__.py +0 -0
- oxcrypto-0.1.0/tests/vrf/test_ecvrf.py +81 -0
- oxcrypto-0.1.0/tests/xof/__init__.py +0 -0
- oxcrypto-0.1.0/tests/xof/test_ascon_xof128.py +64 -0
- oxcrypto-0.1.0/tests/xof/test_bash_prg_hash.py +24 -0
- oxcrypto-0.1.0/tests/xof/test_cshake.py +24 -0
- oxcrypto-0.1.0/tests/xof/test_incremental.py +106 -0
- oxcrypto-0.1.0/tests/xof/test_integer_options.py +31 -0
- oxcrypto-0.1.0/tests/xof/test_k12.py +24 -0
- oxcrypto-0.1.0/tests/xof/test_shake.py +49 -0
- oxcrypto-0.1.0/tests/xof/test_tuple_hash.py +59 -0
- oxcrypto-0.1.0/tests/xof/test_turboshake.py +39 -0
- 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 @@
|
|
|
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
|
+
```
|