Abbreviate algorithms in test descriptions

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2021-04-21 10:18:19 +02:00
parent 38ebfec0f1
commit 20f55f6726

View file

@ -360,7 +360,8 @@ class StorageFormat:
# For now, we don't have information on the compatibility of key # For now, we don't have information on the compatibility of key
# types and algorithms. So we just test the encoding of algorithms, # types and algorithms. So we just test the encoding of algorithms,
# and not that operations can be performed with them. # and not that operations can be performed with them.
descr = alg descr = re.sub(r'PSA_ALG_', r'', alg)
descr = re.sub(r',', r', ', re.sub(r' +', r'', descr))
usage = 'PSA_KEY_USAGE_EXPORT' usage = 'PSA_KEY_USAGE_EXPORT'
key1 = StorageKey(version=self.version, key1 = StorageKey(version=self.version,
id=1, lifetime=0x00000001, id=1, lifetime=0x00000001,