From 4af6560860cf3d704e39679a56f917b505bfd800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Sz=C3=A9pk=C3=BAti?= Date: Tue, 8 Dec 2020 11:10:21 +0100 Subject: [PATCH] Improve documentation in test_psa_constant_names.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bence Szépkúti --- tests/scripts/test_psa_constant_names.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/scripts/test_psa_constant_names.py b/tests/scripts/test_psa_constant_names.py index c7011a784..bead60cd8 100755 --- a/tests/scripts/test_psa_constant_names.py +++ b/tests/scripts/test_psa_constant_names.py @@ -94,8 +94,12 @@ class Inputs: self.dh_groups = set(['0xff']) self.key_types = set(['0xffff']) self.key_usage_flags = set(['0x80000000']) - # Hard-coded value for unknown algorithms - self.hash_algorithms = set(['0x020000fe']) + # Hard-coded values for unknown algorithms + # + # These have to have values that are correct for their respective + # PSA_ALG_IS_xxx macros, but are also not currently assigned and are + # not likely to be assigned in the near future. + self.hash_algorithms = set(['0x020000fe']) # 0x020000ff is PSA_ALG_ANY_HASH self.mac_algorithms = set(['0x0300ffff']) self.ka_algorithms = set(['0x09fc0000']) self.kdf_algorithms = set(['0x080000ff'])