Skip to content

fix signature of EllipticCurvePublicKey.verify() - #5808

Merged
alex merged 1 commit into
pyca:masterfrom
wamserma:patch-1
Feb 10, 2021
Merged

alex merged 1 commit into
pyca:masterfrom
wamserma:patch-1

Conversation

@wamserma

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

@alex

alex commented Feb 10, 2021 via email

Copy link
Copy Markdown
Member

@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 <[email protected]>
Co-authored-by: Markus Wamser <[email protected]>
Co-authored-by: Dan Halperin <[email protected]>
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