PSA PAKE: add to PSA constant name test
Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
8005e8a167
commit
8603fb09fe
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,7 @@ class PSAMacroEnumerator:
|
||||||
self.mac_algorithms = set() #type: Set[str]
|
self.mac_algorithms = set() #type: Set[str]
|
||||||
self.ka_algorithms = set() #type: Set[str]
|
self.ka_algorithms = set() #type: Set[str]
|
||||||
self.kdf_algorithms = set() #type: Set[str]
|
self.kdf_algorithms = set() #type: Set[str]
|
||||||
|
self.pake_algorithms = set() #type: Set[str]
|
||||||
self.aead_algorithms = set() #type: Set[str]
|
self.aead_algorithms = set() #type: Set[str]
|
||||||
# macro name -> list of argument names
|
# macro name -> list of argument names
|
||||||
self.argspecs = {} #type: Dict[str, List[str]]
|
self.argspecs = {} #type: Dict[str, List[str]]
|
||||||
|
@ -364,6 +365,7 @@ enumerate
|
||||||
'asymmetric_signature_algorithm': [],
|
'asymmetric_signature_algorithm': [],
|
||||||
'asymmetric_signature_wildcard': [self.algorithms],
|
'asymmetric_signature_wildcard': [self.algorithms],
|
||||||
'asymmetric_encryption_algorithm': [],
|
'asymmetric_encryption_algorithm': [],
|
||||||
|
'pake_algorithm': [self.pake_algorithms],
|
||||||
'other_algorithm': [],
|
'other_algorithm': [],
|
||||||
} #type: Dict[str, List[Set[str]]]
|
} #type: Dict[str, List[Set[str]]]
|
||||||
self.arguments_for['mac_length'] += ['1', '63']
|
self.arguments_for['mac_length'] += ['1', '63']
|
||||||
|
@ -389,6 +391,7 @@ enumerate
|
||||||
self.mac_algorithms.add('0x03007fff')
|
self.mac_algorithms.add('0x03007fff')
|
||||||
self.ka_algorithms.add('0x09fc0000')
|
self.ka_algorithms.add('0x09fc0000')
|
||||||
self.kdf_algorithms.add('0x080000ff')
|
self.kdf_algorithms.add('0x080000ff')
|
||||||
|
self.pake_algorithms.add('0x0a0000ff')
|
||||||
# For AEAD algorithms, the only variability is over the tag length,
|
# For AEAD algorithms, the only variability is over the tag length,
|
||||||
# and this only applies to known algorithms, so don't test an
|
# and this only applies to known algorithms, so don't test an
|
||||||
# unknown algorithm.
|
# unknown algorithm.
|
||||||
|
|
Loading…
Reference in a new issue