Lines Matching full:name
82 def __init__(self, name: str, params: Optional[Iterable[str]] = None) -> None:
86 `name` is a string 'PSA_KEY_TYPE_xxx' which is the name of a PSA key
90 in `name` as a string.
93 self.name = name.strip()
94 """The key type macro name (``PSA_KEY_TYPE_xxx``).
97 name of the macro, and the arguments are in `self.params`.
100 if '(' in self.name:
101 m = re.match(r'(\w+)\s*\((.*)\)\Z', self.name)
103 self.name = m.group(1)
111 assert re.match(r'PSA_KEY_TYPE_\w+\Z', self.name)
113 self.expression = self.name
118 m = re.match(r'PSA_KEY_TYPE_(\w+)', self.name)
121 """The key type macro name, with common prefixes and suffixes stripped."""
123 self.private_type = re.sub(r'_PUBLIC_KEY\Z', r'_KEY_PAIR', self.name)
124 """The key type macro name for the corresponding key pair type.
127 `self.name`.
139 return self.name.endswith('_PUBLIC_KEY')
204 if self.name == 'PSA_KEY_TYPE_DES':