Skip to content

rind-python-v0.2.0

Choose a tag to compare

@moq-bot moq-bot released this 05 Dec 10:02
· 64 commits to main since this release
7851423

x86_64 macOS wheels no longer ship and CI no longer tests Intel Macs. To install pyrind on an Intel Mac, build the source distribution with a Rust toolchain.

pyrind takes the shape rind 0.4 did: pyrind.signature is gone, and pyrind.ecdsa, pyrind.ed25519, and pyrind.rsa each have a KeyPair and a PublicKey, with their algorithms under each module's sign and verify. A public key's constructor takes the algorithm's own encoding, from_spki a SubjectPublicKeyInfo, and to_spki is only on public keys. An RSA public key is bound to no algorithm: verify takes one, and raises KeyRejected for a modulus below its floor, where 0.1 refused the key as it loaded. Every public_key() returns the same object each call. pyrind-cryptography 0.1.1 moves to these calls and keeps pyca/cryptography's API.

pyrind 0.1 pyrind 0.2
signature.EcdsaKeyPair ecdsa.KeyPair
signature.Ed25519KeyPair ed25519.KeyPair
signature.RsaKeyPair rsa.KeyPair
signature.EcdsaSigningAlgorithm ecdsa.SigningAlgorithm
signature.RsaSigningAlgorithm rsa.SigningAlgorithm
signature.VerificationAlgorithm, for ECDSA ecdsa.VerificationAlgorithm
signature.VerificationAlgorithm, for Ed25519 none: ed25519.PublicKey takes no algorithm
signature.RsaVerificationAlgorithm rsa.VerificationAlgorithm
signature.sign.ECDSA_P256_SHA256_ASN1 and the other ECDSA_ ecdsa.sign.P256_SHA256_ASN1 and so on
signature.sign.RSA_PKCS1_SHA256 and the other RSA_ rsa.sign.PKCS1_SHA256 and so on
signature.verify.ECDSA_P256_SHA256_ASN1 and the other ECDSA_ ecdsa.verify.P256_SHA256_ASN1 and so on
signature.verify.ED25519 none
signature.verify.RSA_PKCS1_SHA256 and the other RSA_ rsa.verify.PKCS1_SHA256 and so on
signature.verify.legacy.RSA_PKCS1_1024_SHA1 and the others rsa.verify.legacy.PKCS1_1024_SHA1 and so on
signature.PublicKey(verify.ECDSA_P256_SHA256_ASN1, point) ecdsa.PublicKey(ecdsa.verify.P256_SHA256_ASN1, point), which refuses a SubjectPublicKeyInfo
signature.PublicKey(verify.ED25519, key) ed25519.PublicKey(key), which refuses a SubjectPublicKeyInfo
signature.PublicKey(verify.RSA_PKCS1_SHA256, der), PKCS#1 or SPKI rsa.PublicKey(der), PKCS#1 only, or rsa.PublicKey.from_spki(der)
signature.PublicKey.from_spki(algorithm, der) ecdsa.PublicKey.from_spki(algorithm, der), ed25519.PublicKey.from_spki(der), or rsa.PublicKey.from_spki(der)
signature.PublicKey.from_components(algorithm, n, e) rsa.PublicKey.from_components(n, e)
public_key.verify(message, signature), for RSA public_key.verify(algorithm, message, signature)
an RSA key below the algorithm's floor, refused as it loads refused with KeyRejected by verify
none rsa.PublicKey.modulus_len()
RsaKeyPair.public_key(algorithm) rsa.KeyPair.public_key()
EcdsaKeyPair.to_spki(), Ed25519KeyPair.to_spki(), RsaKeyPair.to_spki() key_pair.public_key().to_spki()
rsa.DecryptingKey.to_spki() decrypting_key.public_key().to_spki()
rsa.EncryptingKey(algorithm, der), PKCS#1 or SPKI rsa.EncryptingKey(algorithm, der), PKCS#1 only, or rsa.EncryptingKey.from_spki(algorithm, der)
key_wrap.AesKek.wrap(key), unwrap(wrapped) wrap_key(key_wrap.Mode.KW, key), unwrap_key(key_wrap.Mode.KW, wrapped)
key_wrap.AesKek.wrap_padded(key), unwrap_padded(wrapped) wrap_key(key_wrap.Mode.KWP, key), unwrap_key(key_wrap.Mode.KWP, wrapped)

Added

  • (vg) re-pin pyca/verified-garbage to 7768cb5e (#1253)
  • (python) [breaking] pyrind takes rind 0.4's shape (#1213)

Fixed

  • (pyrind-cryptography) preserve retries and release GCM buffers (#1395)
  • take upstream changes since the pins (2026-11-28 run) (#1183)
  • (deps) curve25519-dalek 5.1.0 for RUSTSEC-2026-0620 (#1223)

Other

  • rind's x86_64 SSE4.1 ChaCha20-Poly1305 seal and open are structured copies proven constant-time (#1306)
  • rind's x86_64 AVX-512 AES-GCM update kernels are structured copies proven constant-time (#1310)
  • (python) test the sdist on PyPy and free-threaded CPython (#1406)
  • drop x86_64 macOS from CI and release artifacts (#1397)
  • Re-review PRs merged under quest v0.27.0-v0.29.0 (#1309)
  • rind's Lean proofs move to Lean 4.36.0 with its Mathlib and Aeneas (#1298)
  • Speed up Ed25519 verification on Coffee Lake U0 (#1427)
  • aarch64 AES-192-GCM without SHA-3 via pyca/verified-garbage (#1262)
  • X25519 and Ed25519 verification run on AVX-IFMA without AVX-512 (#1231)
  • rind's x86_64 AVX2 AES-GCM update kernels are structured copies proven constant-time (#1275)
  • rind's x86_64 AVX2 ChaCha20-Poly1305 open is a structured copy proven constant-time (#1273)
  • (ed25519) Zen 3 verifies on curve25519-dalek's AVX2 backend (#1248)
  • Clippy forbids accidental panics in rind and non-ring adapters (#1175)
  • ristretto255's variable-base multiplication runs curve25519-dalek's AVX2 formulas (#943)
  • SLH-DSA's SHAKE sets on x86_64 match the SPHINCS+ AVX2 C (#872)
  • Argon2id runs NEON on aarch64, and AVX-512F and SSSE3 on x86_64 (#822)