@@ -5378,7 +5378,9 @@ def test_hmac_sha1(self):
53785378 op .sendall (b"what do ya want for nothing?" )
53795379 self .assertEqual (op .recv (512 ), expected )
53805380
5381- @support .requires_linux_version (3 , 19 )
5381+ # Although it should work with 3.19 and newer the test blocks on
5382+ # Ubuntu 15.10 with Kernel 4.2.0-19.
5383+ @support .requires_linux_version (4 , 3 )
53825384 def test_aes_cbc (self ):
53835385 key = bytes .fromhex ('06a9214036b8a15b512e03d534120006' )
53845386 iv = bytes .fromhex ('3dafba429d9eb430b422da802c9fac41' )
@@ -5419,7 +5421,7 @@ def test_aes_cbc(self):
54195421 self .assertEqual (len (dec ), msglen * multiplier )
54205422 self .assertEqual (dec , msg * multiplier )
54215423
5422- @support .requires_linux_version (3 , 19 )
5424+ @support .requires_linux_version (4 , 3 ) # see test_aes_cbc
54235425 def test_aead_aes_gcm (self ):
54245426 key = bytes .fromhex ('c939cc13397c1d37de6ae0e1cb7c423c' )
54255427 iv = bytes .fromhex ('b3d8cc017cbb89b39e0f67e2' )
@@ -5483,7 +5485,7 @@ def test_aead_aes_gcm(self):
54835485 res = op .recv (len (msg ))
54845486 self .assertEqual (plain , res [assoclen :- taglen ])
54855487
5486- @support .requires_linux_version (3 , 19 )
5488+ @support .requires_linux_version (4 , 3 ) # see test_aes_cbc
54875489 def test_drbg_pr_sha256 (self ):
54885490 # deterministic random bit generator, prediction resistance, sha256
54895491 with self .create_alg ('rng' , 'drbg_pr_sha256' ) as algo :
0 commit comments