[Python-checkins] cpython: Issue 27744: AES-CBC and DRBG need Kernel 3.19+

christian.heimes python-checkins at python.org
Mon Sep 5 18:59:04 EDT 2016


https://hg.python.org/cpython/rev/4ebe3ade6922
changeset:   103086:4ebe3ade6922
user:        Christian Heimes <christian at python.org>
date:        Tue Sep 06 00:58:47 2016 +0200
summary:
  Issue 27744: AES-CBC and DRBG need Kernel 3.19+

files:
  Lib/test/test_socket.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -5372,6 +5372,7 @@
                 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 @@
                 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:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list