Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04960a2

Browse files
committed
Issue 27744: AES-CBC and DRBG need Kernel 3.19+
1 parent 942889a commit 04960a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_socket.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5372,6 +5372,7 @@ def test_hmac_sha1(self):
53725372
op.sendall(b"what do ya want for nothing?")
53735373
self.assertEqual(op.recv(512), expected)
53745374

5375+
@support.requires_linux_version(3, 19)
53755376
def test_aes_cbc(self):
53765377
key = bytes.fromhex('06a9214036b8a15b512e03d534120006')
53775378
iv = bytes.fromhex('3dafba429d9eb430b422da802c9fac41')
@@ -5476,6 +5477,7 @@ def test_aead_aes_gcm(self):
54765477
res = op.recv(len(msg))
54775478
self.assertEqual(plain, res[assoclen:-taglen])
54785479

5480+
@support.requires_linux_version(3, 19)
54795481
def test_drbg_pr_sha256(self):
54805482
# deterministic random bit generator, prediction resistance, sha256
54815483
with self.create_alg('rng', 'drbg_pr_sha256') as algo:

0 commit comments

Comments
 (0)