From 965dbbe2301c667b51e310b503bd25cfa5a3bac3 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 7 Jul 2014 15:15:05 -0500 Subject: change some nomenclature --- cryptography/exceptions.py | 2 +- cryptography/hazmat/backends/multibackend.py | 4 ++-- tests/hazmat/backends/test_multibackend.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cryptography/exceptions.py b/cryptography/exceptions.py index 3ccfaf51..c14763f7 100644 --- a/cryptography/exceptions.py +++ b/cryptography/exceptions.py @@ -22,7 +22,7 @@ class _Reasons(object): UNSUPPORTED_MGF = object() UNSUPPORTED_PUBLIC_KEY_ALGORITHM = object() UNSUPPORTED_ELLIPTIC_CURVE = object() - UNSUPPORTED_KEY_FORMAT = object() + UNSUPPORTED_SERIALIZATION = object() class UnsupportedAlgorithm(Exception): diff --git a/cryptography/hazmat/backends/multibackend.py b/cryptography/hazmat/backends/multibackend.py index c06d2431..6182f5cf 100644 --- a/cryptography/hazmat/backends/multibackend.py +++ b/cryptography/hazmat/backends/multibackend.py @@ -312,6 +312,6 @@ class MultiBackend(object): continue raise UnsupportedAlgorithm( - "This backend does not support this key format.", - _Reasons.UNSUPPORTED_KEY_FORMAT + "This backend does not support this key serialization.", + _Reasons.UNSUPPORTED_SERIALIZATION ) diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py index 19795634..3be8371f 100644 --- a/tests/hazmat/backends/test_multibackend.py +++ b/tests/hazmat/backends/test_multibackend.py @@ -484,5 +484,5 @@ class TestMultiBackend(object): backend.load_pkcs8_pem_private_key(b"keydata", None) backend = MultiBackend([]) - with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_KEY_FORMAT): + with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_SERIALIZATION): backend.load_pkcs8_pem_private_key(b"keydata", None) -- cgit v1.2.3