Lines Matching refs:expr
292 def __init__(self, expr: str) -> None:
293 super().__init__('Algorithm not recognized: ' + expr)
294 self.expr = expr
301 def determine_base(expr: str) -> str:
311 r')\((.*),[^,]+\)\Z', expr)
313 expr = m.group(1)
314 return expr
317 def determine_head(expr: str) -> str:
323 m = re.match(r'PSA_ALG_(?:DETERMINISTIC_)?(\w+)', expr)
325 raise AlgorithmNotRecognized(expr)
328 m = re.match(r'PSA_ALG_KEY_AGREEMENT\s*\(\s*PSA_ALG_(\w+)', expr)
330 raise AlgorithmNotRecognized(expr)
372 def determine_category(self, expr: str, head: str) -> AlgorithmCategory:
385 raise AlgorithmNotRecognized(expr)
388 def determine_wildcard(expr) -> bool: argument
393 if re.search(r'\bPSA_ALG_ANY_HASH\b', expr):
395 if re.search(r'_AT_LEAST_', expr):
399 def __init__(self, expr: str) -> None:
408 self.expression = re.sub(r'\s+', r'', expr)