Home
last modified time | relevance | path

Searched refs:usage_flags (Results 1 – 8 of 8) sorted by relevance

/openthread-3.6.0/third_party/mbedtls/repo/tests/src/
Dpsa_crypto_helpers.c118 psa_key_usage_t mbedtls_test_update_key_usage_flags( psa_key_usage_t usage_flags ) in mbedtls_test_update_key_usage_flags() argument
120 psa_key_usage_t updated_usage = usage_flags; in mbedtls_test_update_key_usage_flags()
122 if( usage_flags & PSA_KEY_USAGE_SIGN_HASH ) in mbedtls_test_update_key_usage_flags()
125 if( usage_flags & PSA_KEY_USAGE_VERIFY_HASH ) in mbedtls_test_update_key_usage_flags()
/openthread-3.6.0/third_party/mbedtls/repo/include/psa/
Dcrypto_struct.h394 static inline void psa_extend_key_usage_flags( psa_key_usage_t *usage_flags ) in psa_extend_key_usage_flags() argument
396 if( *usage_flags & PSA_KEY_USAGE_SIGN_HASH ) in psa_extend_key_usage_flags()
397 *usage_flags |= PSA_KEY_USAGE_SIGN_MESSAGE; in psa_extend_key_usage_flags()
399 if( *usage_flags & PSA_KEY_USAGE_VERIFY_HASH ) in psa_extend_key_usage_flags()
400 *usage_flags |= PSA_KEY_USAGE_VERIFY_MESSAGE; in psa_extend_key_usage_flags()
404 psa_key_usage_t usage_flags) in psa_set_key_usage_flags() argument
406 psa_extend_key_usage_flags( &usage_flags ); in psa_set_key_usage_flags()
407 attributes->core.policy.usage = usage_flags; in psa_set_key_usage_flags()
Dcrypto.h241 psa_key_usage_t usage_flags);
/openthread-3.6.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto_attributes.function18 psa_key_usage_t usage_flags = usage_flags_arg;
35 psa_set_key_usage_flags( &attributes, usage_flags );
43 TEST_EQUAL( psa_get_key_usage_flags( &attributes ), usage_flags );
Dtest_suite_psa_crypto_slot_management.function120 psa_key_usage_t usage_flags = usage_arg;
138 psa_set_key_usage_flags( &attributes, usage_flags );
205 psa_key_usage_t usage_flags = usage_arg;
229 psa_set_key_usage_flags( &attributes, usage_flags );
246 mbedtls_test_update_key_usage_flags( usage_flags ) );
266 mbedtls_test_update_key_usage_flags( usage_flags ) );
299 mbedtls_test_update_key_usage_flags( usage_flags ) );
309 if( usage_flags & PSA_KEY_USAGE_EXPORT )
Dtest_suite_psa_crypto.function5406 psa_key_usage_t usage_flags = usage_flags_arg;
5415 if( usage_flags & PSA_KEY_USAGE_EXPORT )
5424 psa_set_key_usage_flags( &attributes, usage_flags );
5482 if( usage_flags & PSA_KEY_USAGE_EXPORT )
5506 mbedtls_test_update_key_usage_flags( usage_flags ) );
5510 if( usage_flags & PSA_KEY_USAGE_EXPORT )
5520 if( ! mbedtls_test_psa_exercise_key( key, usage_flags, alg ) )
/openthread-3.6.0/third_party/mbedtls/repo/tests/scripts/
Dgenerate_psa_tests.py446 usage_flags: List[str],
451 usage = ' | '.join(usage_flags) if usage_flags else '0'
507 usage_flags = 'PSA_KEY_USAGE_EXPORT'
518 usage=usage_flags, alg=alg, alg2=alg2,
609 usage_flags = 'PSA_KEY_USAGE_EXPORT'
610 material_usage_flags = usage_flags + ' | ' + implyer_usage
/openthread-3.6.0/third_party/mbedtls/repo/tests/include/test/
Dpsa_crypto_helpers.h194 psa_key_usage_t mbedtls_test_update_key_usage_flags( psa_key_usage_t usage_flags );