summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarkus Wamser <wamserma@users.noreply.github.com>2021-02-10 16:01:33 +0100
committerGitHub <noreply@github.com>2021-02-10 10:01:33 -0500
commit395384e811e46edebffce04ec84f484882d6a49f (patch)
tree57f389decf37dfa37635e3f31d8f48e00dfca145 /src
parentaef024dc5668028f9f2ac67152a9573beb6606fe (diff)
downloadcryptography-395384e811e46edebffce04ec84f484882d6a49f.tar.gz
fix signature of EllipticCurvePublicKey.verify() (#5808)
The signature change was introduced in https://github.com/pyca/cryptography/pull/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.
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/primitives/asymmetric/ec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/primitives/asymmetric/ec.py b/src/cryptography/hazmat/primitives/asymmetric/ec.py
index 6374305d8..56c5f9a02 100644
--- a/src/cryptography/hazmat/primitives/asymmetric/ec.py
+++ b/src/cryptography/hazmat/primitives/asymmetric/ec.py
@@ -176,7 +176,7 @@ class EllipticCurvePublicKey(metaclass=abc.ABCMeta):
self,
signature: bytes,
data: bytes,
- algorithm: EllipticCurveSignatureAlgorithm,
+ signature_algorithm: EllipticCurveSignatureAlgorithm,
) -> None:
"""
Verifies the signature of the data.