From 17542086ab26a4639f82568c1671e427c4c65f53 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 4 Jan 2019 19:46:31 +0100 Subject: [PATCH] Recognize kdf_alg as KDF algorithm parameter name --- tests/scripts/test_psa_constant_names.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scripts/test_psa_constant_names.py b/tests/scripts/test_psa_constant_names.py index d8f00050f..de0d0146d 100755 --- a/tests/scripts/test_psa_constant_names.py +++ b/tests/scripts/test_psa_constant_names.py @@ -63,6 +63,7 @@ when applicable.''' # Hard-coded value for unknown algorithms self.hash_algorithms = set(['0x010000ff']) self.mac_algorithms = set(['0x02ff00ff']) + self.kdf_algorithms = set(['0x300000ff', '0x310000ff']) # For AEAD algorithms, the only variability is over the tag length, # and this only applies to known algorithms, so don't test an # unknown algorithm. @@ -88,6 +89,7 @@ when applicable.''' Call this after parsing all the inputs.''' self.arguments_for['hash_alg'] = sorted(self.hash_algorithms) self.arguments_for['mac_alg'] = sorted(self.mac_algorithms) + self.arguments_for['kdf_alg'] = sorted(self.kdf_algorithms) self.arguments_for['aead_alg'] = sorted(self.aead_algorithms) self.arguments_for['curve'] = sorted(self.ecc_curves)