From de2667f9517a7f3fe9922e3d014798bd52a13488 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 25 Jan 2019 20:31:05 +0000 Subject: [PATCH] cryptsuite: stop failing if hardware AES is unavailable. In the new testSSHCiphers function, I forgot to put in the check for None that I put in all the other functions that try to explicitly instantiate hardware-accelerated AES. --- test/cryptsuite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cryptsuite.py b/test/cryptsuite.py index 4a077857..1a2f18b4 100755 --- a/test/cryptsuite.py +++ b/test/cryptsuite.py @@ -1106,6 +1106,8 @@ class crypt(MyTestBase): for alg, keylen, ivlen, simple_cbc, c in ciphers: cipher = ssh_cipher_new(alg) + if cipher is None: + continue # hardware-accelerated cipher not available ssh_cipher_setkey(cipher, k[:keylen]) if ivlen is not None: