aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat/backends')
-rw-r--r--tests/hazmat/backends/test_multibackend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py
index 7ffc4236..ea08e17b 100644
--- a/tests/hazmat/backends/test_multibackend.py
+++ b/tests/hazmat/backends/test_multibackend.py
@@ -185,7 +185,7 @@ class DummyEllipticCurveBackend(object):
self.elliptic_curve_supported(curve)
)
- def derive_elliptic_curve_public_point(self, private_value, curve):
+ def derive_elliptic_curve_private_key(self, private_value, curve):
if not self.elliptic_curve_supported(curve):
raise UnsupportedAlgorithm(_Reasons.UNSUPPORTED_ELLIPTIC_CURVE)
@@ -515,9 +515,9 @@ class TestMultiBackend(object):
)
with pytest.raises(UnsupportedAlgorithm):
- backend.derive_elliptic_curve_public_point(123, DummyCurve())
+ backend.derive_elliptic_curve_private_key(123, DummyCurve())
- assert backend.derive_elliptic_curve_public_point(
+ assert backend.derive_elliptic_curve_private_key(
123, ec.SECT283K1()) is None
def test_pem_serialization_backend(self):