aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-09-28 15:38:06 +0100
committerAlex Stapleton <alexs@prol.etari.at>2014-09-28 15:38:06 +0100
commit2d2ee522a2bc038b996573d6c0fb6b95a0560041 (patch)
tree1f2df442de25e54df1c0b772591d9562feeddbbf /tests/hazmat/backends
parent9c2227b97ff7b3aabe0f0a957a92c7628c447da1 (diff)
downloadcryptography-2d2ee522a2bc038b996573d6c0fb6b95a0560041.tar.gz
cryptography-2d2ee522a2bc038b996573d6c0fb6b95a0560041.tar.bz2
cryptography-2d2ee522a2bc038b996573d6c0fb6b95a0560041.zip
Move _ec_key_curve_sn to openssl/ec.py
Diffstat (limited to 'tests/hazmat/backends')
-rw-r--r--tests/hazmat/backends/test_openssl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index bfe6040e..b00543fe 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -27,6 +27,7 @@ from cryptography.exceptions import InternalError, _Reasons
from cryptography.hazmat.backends.openssl.backend import (
Backend, backend
)
+from cryptography.hazmat.backends.openssl.ec import _sn_to_elliptic_curve
from cryptography.hazmat.primitives import hashes, interfaces
from cryptography.hazmat.primitives.asymmetric import dsa, ec, padding, rsa
from cryptography.hazmat.primitives.ciphers import Cipher
@@ -509,7 +510,7 @@ class TestOpenSSLEllipticCurve(object):
def test_sn_to_elliptic_curve_not_supported(self):
with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_ELLIPTIC_CURVE):
- backend._sn_to_elliptic_curve(b"fake")
+ _sn_to_elliptic_curve(backend, b"fake")
class TestDeprecatedRSABackendMethods(object):