mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 13:35:41 +01:00
Fix the collection of ECC curves and DH groups
PSA_ECC_CURVE_xxx and PSA_DH_GROUP_xxx were not collected from headers, only from test suites.
This commit is contained in:
parent
8c8694c14d
commit
98a710c5b2
@ -89,8 +89,8 @@ class Inputs:
|
|||||||
self.table_by_prefix = {
|
self.table_by_prefix = {
|
||||||
'ERROR': self.statuses,
|
'ERROR': self.statuses,
|
||||||
'ALG': self.algorithms,
|
'ALG': self.algorithms,
|
||||||
'CURVE': self.ecc_curves,
|
'ECC_CURVE': self.ecc_curves,
|
||||||
'GROUP': self.dh_groups,
|
'DH_GROUP': self.dh_groups,
|
||||||
'KEY_TYPE': self.key_types,
|
'KEY_TYPE': self.key_types,
|
||||||
'KEY_USAGE': self.key_usage_flags,
|
'KEY_USAGE': self.key_usage_flags,
|
||||||
}
|
}
|
||||||
@ -183,7 +183,7 @@ class Inputs:
|
|||||||
# Groups: 1=macro name, 2=type, 3=argument list (optional).
|
# Groups: 1=macro name, 2=type, 3=argument list (optional).
|
||||||
_header_line_re = \
|
_header_line_re = \
|
||||||
re.compile(r'#define +' +
|
re.compile(r'#define +' +
|
||||||
r'(PSA_((?:KEY_)?[A-Z]+)_\w+)' +
|
r'(PSA_((?:(?:DH|ECC|KEY)_)?[A-Z]+)_\w+)' +
|
||||||
r'(?:\(([^\n()]*)\))?')
|
r'(?:\(([^\n()]*)\))?')
|
||||||
# Regex of macro names to exclude.
|
# Regex of macro names to exclude.
|
||||||
_excluded_name_re = re.compile(r'_(?:GET|IS|OF)_|_(?:BASE|FLAG|MASK)\Z')
|
_excluded_name_re = re.compile(r'_(?:GET|IS|OF)_|_(?:BASE|FLAG|MASK)\Z')
|
||||||
|
Loading…
Reference in New Issue
Block a user