Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 19 of 19) sorted by relevance

/openthread-latest/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dcrypto_knowledge.py292 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)
[all …]
Dc_wrapper_generator.py419 expr = var
426 expr = '*({})'.format(expr)
430 expr = '({}) {}'.format(cast_to, expr)
435 return '{}={}'.format(var, fmt), [expr]
Dc_build_helper.py49 for expr in expressions:
51 .format(printf_format, cast_to, expr))
Dcrypto_data_tests.py36 [crypto_knowledge.Algorithm(expr)
37 for expr in info.constructors.generate_expressions(base_algorithms)]
Dpsa_information.py84 for expr in expressions:
85 used.update(re.findall(r'PSA_(?:ALG|ECC_FAMILY|DH_FAMILY|KEY_TYPE)_\w+', expr))
Dmacro_collector.py492 def generate_undeclared_names(self, expr: str) -> Iterable[str]:
493 for name in re.findall(self._macro_identifier_re, expr):
/openthread-latest/third_party/mbedtls/repo/tests/scripts/
Dtest_psa_constant_names.py61 def normalize(expr: str) -> str:
66 return re.sub(NORMALIZE_STRIP_RE, '', expr)
73 def is_simplifiable(expr: str) -> bool:
80 if ALG_TRUNCATED_TO_SELF_RE.match(expr):
94 expressions = sorted(expr
95 for expr in inputs.generate_expressions(names)
96 if not is_simplifiable(expr))
127 for expr, value, output in zip(expressions, values, outputs):
130 if normalize(expr) != normalize(output):
132 expression=expr,
Dgenerate_psa_tests.py363 for expr in self.constructors.generate_expressions(algorithms):
364 alg = crypto_knowledge.Algorithm(expr)
/openthread-latest/third_party/mbedtls/repo/tests/include/test/
Dpsa_crypto_helpers.h146 const char *expr);
172 #define RECORD_STATUS(string, expr) \ argument
173 mbedtls_test_record_status((expr), string, __FILE__, __LINE__, #expr)
Dpsa_helpers.h22 #define PSA_ASSERT(expr) TEST_EQUAL((expr), PSA_SUCCESS) argument
/openthread-latest/third_party/mbedtls/repo/programs/hash/
Dmd_hmac_demo.c72 #define CHK(expr) \ argument
75 ret = (expr); \
81 #expr); \
/openthread-latest/third_party/mbedtls/repo/programs/psa/
Dhmac_demo.c74 #define PSA_CHECK(expr) \ argument
77 status = (expr); \
83 #expr); \
Daead_demo.c97 #define PSA_CHECK(expr) \ argument
100 status = (expr); \
106 #expr); \
Dkey_ladder_demo.c71 #define SYS_CHECK(expr) \ argument
74 if (!(expr)) \
76 perror( #expr); \
84 #define PSA_CHECK(expr) \ argument
87 status = (expr); \
93 #expr); \
/openthread-latest/third_party/mbedtls/repo/programs/cipher/
Dcipher_aead_demo.c94 #define CHK(expr) \ argument
97 ret = (expr); \
103 #expr); \
/openthread-latest/third_party/mbedtls/repo/library/
Dcommon.h363 #define MBEDTLS_STATIC_ASSERT(expr, msg) static_assert(expr, msg); argument
365 #define MBEDTLS_STATIC_ASSERT(expr, msg) argument
/openthread-latest/third_party/mbedtls/repo/tests/src/
Dpsa_crypto_helpers.c110 const char *expr) in mbedtls_test_record_status() argument
120 fprintf(log, "%d:%s:%s:%d:%s\n", (int) status, func, file, line, expr); in mbedtls_test_record_status()
/openthread-latest/
D.clang-tidy20 readability-simplify-boolean-expr,
/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto_se_driver_hal.function72 * Run the code \p expr. If this returns \p expected_status,
81 #define PSA_ASSERT_VIA_DRIVER(expr, expected_status) \
83 psa_status_t PSA_ASSERT_VIA_DRIVER_status = (expr); \
88 mbedtls_test_fail( #expr, __LINE__, __FILE__); \
653 #define SMOKE_ASSERT(expr) \
654 TEST_ASSERT(is_status_smoke_free(expr))