summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2016-09-05 22:58:47 (GMT)
committerChristian Heimes <christian@python.org>2016-09-05 22:58:47 (GMT)
commit04960a21fbe0313a45d17f002c7f953bd6b85b9d (patch)
tree86562ebc488580ea7ce3a864d8f80b2e46c62894
parent942889aae29af129ff1cb38a2dc75b94b97e65e6 (diff)
downloadcpython-04960a21fbe0313a45d17f002c7f953bd6b85b9d.zip
cpython-04960a21fbe0313a45d17f002c7f953bd6b85b9d.tar.gz
cpython-04960a21fbe0313a45d17f002c7f953bd6b85b9d.tar.bz2
Issue 27744: AES-CBC and DRBG need Kernel 3.19+
-rw-r--r--Lib/test/test_socket.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 1ee6237..7183714 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -5372,6 +5372,7 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
op.sendall(b"what do ya want for nothing?")
self.assertEqual(op.recv(512), expected)
+ @support.requires_linux_version(3, 19)
def test_aes_cbc(self):
key = bytes.fromhex('06a9214036b8a15b512e03d534120006')
iv = bytes.fromhex('3dafba429d9eb430b422da802c9fac41')
@@ -5476,6 +5477,7 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
res = op.recv(len(msg))
self.assertEqual(plain, res[assoclen:-taglen])
+ @support.requires_linux_version(3, 19)
def test_drbg_pr_sha256(self):
# deterministic random bit generator, prediction resistance, sha256
with self.create_alg('rng', 'drbg_pr_sha256') as algo: