Skip to content

refactor: replace PyCryptodome with cryptography - #41

Merged
ZhuoZhuoCrayon merged 4 commits into
mainfrom
codex/replace-pycryptodomex-with-cryptography
Aug 27, 2026
Merged

refactor: replace PyCryptodome with cryptography#41
ZhuoZhuoCrayon merged 4 commits into
mainfrom
codex/replace-pycryptodomex-with-cryptography

Conversation

@ZhuoZhuoCrayon

Copy link
Copy Markdown
Member

Summary

  • replace pycryptodomex with cryptography for RSA and AES
  • preserve existing RSA/AES formats, CFB8 semantics, GCM metadata framing, and public API behavior
  • accept PEM and OpenSSH RSA public keys directly without a compatibility adapter
  • centralize supported symmetric mode sets as cached SymmetricMode class methods

Verification

  • make lint
  • uv run pytest -q (90 passed)
  • uv run --with cryptography==44.0.0 pytest -q (90 passed)
  • uv run --isolated --python 3.14 --all-extras --group dev pytest -q (90 passed)
  • uv build
  • bidirectional RSA-OAEP-SHA256 and AES-CBC/CTR checks against BK-KMS Go and C++ implementations
  • BK-KMS Python branch protocol vectors

@ZhuoZhuoCrayon ZhuoZhuoCrayon self-assigned this Aug 27, 2026
@ZhuoZhuoCrayon ZhuoZhuoCrayon added the enhancement New feature or request label Aug 27, 2026
@ZhuoZhuoCrayon
ZhuoZhuoCrayon merged commit 75218fd into main Aug 27, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant