-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy.copy
broken for Ed25519PublicKey
in 41.0.3 (works in 38.0.4)
#9403
Comments
We've never tested, documented, or intentionally supported using That said, |
I'm assuming that the same is true for Ed448PublicKey, X25519PublicKey, and X448PublicKey objects (and maybe the corresponding PrivateKey objects too?). it'd be great to get them all sorted at once. |
Yup, all across the board, all immutable.
…On Fri, Aug 11, 2023, 11:18 AM dkg ***@***.***> wrote:
I'm assuming that the same is true for Ed448PublicKey, X25519PublicKey,
and X448PublicKey objects (and maybe the corresponding PrivateKey objects
too?). it'd be great to get them all sorted at once.
—
Reply to this email directly, view it on GitHub
<#9403 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBGIRZG27N4WBMWGJODXUZELZANCNFSM6AAAAAA3M67GD4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
These pubkey objects are immutable, as noted in pyca/cryptography#9403, so it should be safe to just assign.
These pubkey objects are immutable, as noted in pyca/cryptography#9403, so it should be safe to just assign.
These pubkey objects are immutable, as noted in pyca/cryptography#9403, so it should be safe to just assign.
they are immutable, so this is trivial
they are immutable, so this is trivial
These pubkey objects are immutable, as noted in pyca/cryptography#9403, so it should be safe to just assign.
These pubkey objects are immutable, as noted in pyca/cryptography#9403, so it should be safe to just assign.
These pubkey objects are immutable, as noted in pyca/cryptography#9403, so it should be safe to just assign.
These pubkey objects are immutable, as noted in pyca/cryptography#9403, so it should be safe to just assign.
These pubkey objects are immutable, as noted in pyca/cryptography#9403, so it should be safe to just assign.
These pubkey objects are immutable, as noted in pyca/cryptography#9403, so it should be safe to just assign.
Using python 3.11, with a venv containing python-cryptography 41.0.3 backed by OpenSSL 3.1.2, an attempt to copy an Ed25519PublicKey object yields this error:
This looks similar to the concerns in #7587.
You should be able to replicate this with:
When i try it with python-cryptography 38.0.4 i do not see this failure. Is
copy.copy
meant to work, or should i be using something like the following instead?The text was updated successfully, but these errors were encountered: