Closed majuscule closed 6 years ago
first try stdlib Crypto _{R,D}SAObj.size(), then fall back to the PyCryptodome size_in_bites() method.
Crypto _{R,D}SAObj.size()
size_in_bites()
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.
Project has been migrated to cryptography, so I'll close this PR.
cryptography
first try stdlib
Crypto _{R,D}SAObj.size()
, then fall back to the PyCryptodomesize_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.