aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends/test_openssl.py
diff options
context:
space:
mode:
authorChristopher Grebs <cg@webshox.org>2015-09-05 00:06:38 +0200
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-12-27 22:53:23 -0600
commitb6b810a5114fb0d0cdc0550eceab3734afb4dd41 (patch)
treed29a7c329e7c1b15fbf4229d3e31d4aa2f54b614 /tests/hazmat/backends/test_openssl.py
parent525f713629a181e7dbaf3e8a84fc4373dbaeb4e4 (diff)
downloadcryptography-b6b810a5114fb0d0cdc0550eceab3734afb4dd41.tar.gz
cryptography-b6b810a5114fb0d0cdc0550eceab3734afb4dd41.tar.bz2
cryptography-b6b810a5114fb0d0cdc0550eceab3734afb4dd41.zip
Fixed test scenario to use different key.
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r--tests/hazmat/backends/test_openssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index 98023e9d..a551b3fc 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -30,7 +30,7 @@ from cryptography.hazmat.primitives.ciphers.algorithms import AES
from cryptography.hazmat.primitives.ciphers.modes import CBC, CTR, Mode
from ..primitives.fixtures_dsa import DSA_KEY_2048
-from ..primitives.fixtures_rsa import RSA_KEY_2048, RSA_KEY_512
+from ..primitives.fixtures_rsa import RSA_KEY_2048, RSA_KEY_512, RSA_KEY_512_ALT
from ..primitives.test_ec import _skip_curve_unsupported
from ...utils import load_vectors_from_file, raises_unsupported_algorithm
@@ -468,7 +468,7 @@ class TestOpenSSLRSA(object):
)
)
- decrypted = private_key.decrypt(
+ decrypted = RSA_KEY_512_ALT.private_key(backend).decrypt(
ciphertext,
padding.OAEP(
mgf=padding.MGF1(algorithm=hashes.SHA1()),