ojarva / python-sshpubkeys

OpenSSH public key parser for Python
BSD 3-Clause "New" or "Revised" License
101 stars 42 forks source link

support PyCryptodome sizing functions #33

Closed majuscule closed 6 years ago

majuscule commented 7 years ago

first try stdlib Crypto _{R,D}SAObj.size(), then fall back to the PyCryptodome size_in_bites() method.

helpful standalone, and also necessary for PR https://github.com/ojarva/python-sshpubkeys/pull/32. alternatively, the project can move to a tox testing framework and support both libraries side by side.

note that this will also need support here: sshpubkeys/keys.py#L305, but DSA sizing is currently unsupported by PyCryptodome. I have added support in PR https://github.com/Legrandin/pycryptodome/pull/94, and will submit a new PR here if merged and released.

ojarva commented 6 years ago

Project has been migrated to cryptography, so I'll close this PR.