Lines Matching refs:expression
18 """Abbreviate the expression, keeping it human-readable.
78 passing an expression of the form 'PSA_KEY_TYPE_xxx(param1, ...)'
102 self.expression = self.name
103 """A C expression whose value is the key type encoding."""
105 self.expression += '(' + ', '.join(self.params) + ')'
120 """Abbreviate the expression, keeping it human-readable.
124 return short_expression(self.expression, level=level)
183 psa_set_key_type(&attributes, `self.expression`);
190 if self.expression in ASYMMETRIC_KEY_DATA:
191 if bits not in ASYMMETRIC_KEY_DATA[self.expression]:
193 .format(bits, self.expression))
194 return ASYMMETRIC_KEY_DATA[self.expression][bits]
197 .format(bits, self.expression))
302 """Return an expression for the "base" of the algorithm.
318 """Return the head of an algorithm expression.
373 """Return the category of the given algorithm expression.
389 """Whether the given algorithm expression is a wildcard.
402 The algorithm must be expressed as a C expression containing only
408 self.expression = re.sub(r'\s+', r'', expr)
409 self.base_expression = self.determine_base(self.expression)
412 self.is_wildcard = self.determine_wildcard(self.expression)
421 m = re.match(r'PSA_ALG_KEY_AGREEMENT\(\w+,\s*(.*)\)\Z', self.expression)
448 """Abbreviate the expression, keeping it human-readable.
452 return short_expression(self.expression, level=level)
510 m = self.TRUNCATED_ALG_RE.match(self.expression)
567 raise AlgorithmNotRecognized(self.expression)