From 9e1ec093fda3c071e4291a942b90c657945602a7 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 2 Feb 2021 18:17:46 +0000 Subject: [PATCH] testcrypt: fix fake class methods on MACs. I had the wrong function name prefix in the method_prefixes array: the MAC functions all begin with ssh2_mac_* instead of ssh_mac_*. As a result, MAC objects in the Python testcrypt system didn't provide OO-like methods such as m.update() and m.genresult(); instead you had to say ssh2_mac_update(m, ...) and ssh2_mac_genresult(m). --- test/testcrypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testcrypt.py b/test/testcrypt.py index eb3d9938..ba0160f2 100644 --- a/test/testcrypt.py +++ b/test/testcrypt.py @@ -90,7 +90,7 @@ method_prefixes = { 'val_mpoint': 'ecc_montgomery_', 'val_epoint': 'ecc_edwards_', 'val_hash': 'ssh_hash_', - 'val_mac': 'ssh_mac_', + 'val_mac': 'ssh2_mac_', 'val_key': 'ssh_key_', 'val_cipher': 'ssh_cipher_', 'val_dh': 'dh_',