Skip to content
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

fix signature of EllipticCurvePublicKey.verify() #5808

Merged
merged 1 commit into from
Feb 10, 2021
Merged

Conversation

wamserma
Copy link
Contributor

The signature change was introduced in #5729 but is inconsistent with respect to related methods, breaks backward compatibility and compatibility with the OpenSSL backend (and maybe other backends) when named arguments are used.
The issue is present for all versions >= 3.4.

The signature change was introduced in pyca#5729 but is inconsistent with respect to related methods, breaks backward compatibility and compatibility with the OpenSSL backend (and maybe other backends) when named arguments are used.
@wamserma
Copy link
Contributor Author

To clarify: It does not break functionality per se, but is confusing (for mypy and users) as interfaces definitions do not match anymore and one still has to use the parameter name used by the backend (signature_algorithm).

@alex alex merged commit 395384e into pyca:master Feb 10, 2021
@reaperhulk
Copy link
Member

@alex was this updated in docs or did we not change it? IIRC there were several other places names were changed as well. Should we revert that?

@reaperhulk
Copy link
Member

Those changes may not propagate to the backends though. If not they can stay

@alex
Copy link
Member

alex commented Feb 10, 2021 via email

@wamserma wamserma deleted the patch-1 branch February 10, 2021 15:20
reaperhulk pushed a commit to reaperhulk/cryptography that referenced this pull request Feb 13, 2021
The signature change was introduced in pyca#5729 but is inconsistent with respect to related methods, breaks backward compatibility and compatibility with the OpenSSL backend (and maybe other backends) when named arguments are used.
alex added a commit that referenced this pull request Feb 13, 2021
* Bump pyo3 and lower MSRV (#5823)

* fix signature of EllipticCurvePublicKey.verify() (#5808)

The signature change was introduced in #5729 but is inconsistent with respect to related methods, breaks backward compatibility and compatibility with the OpenSSL backend (and maybe other backends) when named arguments are used.

* Name: update get_attributes_for_oid return type (#5809)

`List` gives more power to the caller.

Note that `RelativeDistinguishedName`, the same function returns a `List`.

Is there a reason this was `Iterable` only for `Name`? If we don't want to
promise `List`, `Sequence` is another alternative.

* Start typing a bunch of stuff from x509 extensions (#5812)

* part 2 of typing x509 extensions (#5815)

* 3.4.5 changelog and version bump

* spelling

* fix a false positive from the latest clippy (#5813)

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Co-authored-by: Markus Wamser <wamserma@users.noreply.github.com>
Co-authored-by: Dan Halperin <dhalperi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants