Home
last modified time | relevance | path

Searched refs:location (Results 1 – 25 of 31) sorted by relevance

12

/mbedtls-latest/library/
Dpsa_crypto_se.c45 psa_key_location_t location; member
59 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION(lifetime); in psa_get_se_driver_entry() local
64 if (location == 0) { in psa_get_se_driver_entry()
68 if (driver_table[i].location == location) { in psa_get_se_driver_entry()
111 if (driver->location > PSA_MAX_SE_LOCATION) { in psa_get_se_driver_its_file_uid()
121 *uid = PSA_CRYPTO_SE_DRIVER_ITS_UID_BASE + driver->location; in psa_get_se_driver_its_file_uid()
170 psa_status_t psa_destroy_se_persistent_data(psa_key_location_t location) in psa_destroy_se_persistent_data() argument
173 if (location > PSA_MAX_SE_LOCATION) { in psa_destroy_se_persistent_data()
176 uid = PSA_CRYPTO_SE_DRIVER_ITS_UID_BASE + location; in psa_destroy_se_persistent_data()
191 if (driver->location != key_location) { in psa_find_se_slot_for_key()
[all …]
Dpsa_crypto_driver_wrappers.h168 psa_key_location_t location = in psa_driver_wrapper_sign_message() local
171 switch( location ) in psa_driver_wrapper_sign_message()
257 psa_key_location_t location = in psa_driver_wrapper_verify_message() local
260 switch( location ) in psa_driver_wrapper_verify_message()
357 psa_key_location_t location = in psa_driver_wrapper_sign_hash() local
360 switch( location ) in psa_driver_wrapper_sign_hash()
476 psa_key_location_t location = in psa_driver_wrapper_verify_hash() local
479 switch( location ) in psa_driver_wrapper_verify_hash()
620 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( in psa_driver_wrapper_sign_hash_start() local
623 switch( location ) in psa_driver_wrapper_sign_hash_start()
[all …]
Dpsa_crypto_driver_wrappers_no_static.c119 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_get_key_buffer_size() local
124 switch( location ) in psa_driver_wrapper_get_key_buffer_size()
165 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( in psa_driver_wrapper_export_public_key() local
188 switch( location ) in psa_driver_wrapper_export_public_key()
277 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); in psa_driver_wrapper_get_builtin_key() local
278 switch( location ) in psa_driver_wrapper_get_builtin_key()
Dpsa_crypto_se.h183 psa_status_t psa_destroy_se_persistent_data(psa_key_location_t location);
/mbedtls-latest/tests/suites/
Dtest_suite_psa_crypto_se_driver_hal.function34 /** The minimum valid location value for a secure element driver. */
37 /** The location and lifetime used for tests that use a single driver. */
598 /* Get the file UID corresponding to the specified location.
602 static psa_storage_uid_t file_uid_for_location(psa_key_location_t location)
604 if (location > PSA_MAX_SE_LOCATION) {
607 return 0xfffffe00 + location;
611 static int check_persistent_data(psa_key_location_t location,
615 psa_storage_uid_t uid = file_uid_for_location(location);
631 /* Check that no persistent data exists for the given location. */
632 static int check_no_persistent_data(psa_key_location_t location)
[all …]
Dtest_suite_psa_crypto_se_driver_hal_mocks.function7 /** The location and lifetime used for tests that use a single driver. */
15 psa_key_location_t location;
83 psa_key_location_t location;
95 for (location = 0; location < PSA_MAX_SE_LOCATION; location++) {
96 psa_destroy_se_persistent_data(location);
116 psa_key_location_t location)
122 mock_init_data.location = location;
288 psa_key_location_t location = location_arg;
300 TEST_EQUAL(psa_register_se_driver(location, &driver),
308 TEST_EQUAL(mock_init_data.location, location);
[all …]
Dtest_suite_psa_crypto_se_driver_hal_mocks.data7 SE init mock test: invalid location (0)
10 SE init mock test: location not supported (INT_MAX)
Dtest_suite_psa_crypto_se_driver_hal.data9 Register SE driver: invalid location (0)
12 Register SE driver: invalid location (local)
Dtest_suite_psa_crypto_slot_management.data146 Create failure: invalid location for a persistent key
150 Create failure: invalid location for a volatile key
Dtest_suite_psa_crypto_metadata.function725 psa_key_location_t location = location_arg;
735 TEST_EQUAL(PSA_KEY_LIFETIME_GET_LOCATION(lifetime), location);
Dtest_suite_alignment.function63 /* Make a 16/32/64 byte read from the aligned location, and copy to expected */
/mbedtls-latest/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.h.jinja124 psa_key_location_t location =
127 switch( location )
198 psa_key_location_t location =
201 switch( location )
285 psa_key_location_t location =
288 switch( location )
389 psa_key_location_t location =
392 switch( location )
519 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION(
522 switch( location )
[all …]
Dpsa_crypto_driver_wrappers_no_static.c.jinja91 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) );
96 switch( location )
139 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION(
162 switch( location )
206 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) );
207 switch( location )
DOS-template-opaque.jinja12 case {{ driver.location }}:
/mbedtls-latest/docs/proposed/
Dpsa-driver-wrappers-codegen-migration-guide.md32location, this path includes the schemas against which the driver schemas will be validated (drive…
Dpsa-driver-interface.md25 … secure enclave, etc. An opaque driver is invoked for the specific [key location](#lifetimes-and-l…
39 [Req.location] Applications can tell which location values correspond to which secure element drive…
79 … of headers is empty. The header files must be present at the specified location relative to a dir…
84 * `"location"` (not permitted for transparent drivers, optional for opaque drivers, integer or stri…
112 …* either the key is transparent (its location is `PSA_KEY_LOCATION_LOCAL_STORAGE`) and the driver …
113 … is opaque (its location is not `PSA_KEY_LOCATION_LOCAL_STORAGE`) and the driver is an opaque driv…
125 If multiple opaque drivers have the same location, the list of driver specifications is invalid.
317 The core decides whether to dispatch a key derivation operation to a driver based on the location a…
595 The core decides whether to dispatch a PAKE operation to a driver based on the location of the prov…
598 1. If the location of the `password` is the local storage
[all …]
Dpsa-driver-developer-guide.md22 …a secure enclave, etc. An opaque driver is invoked for the specific key location that the driver i…
/mbedtls-latest/include/psa/
Dcrypto_se_driver.h126 psa_key_location_t location);
1374 psa_key_location_t location,
Dcrypto_values.h2398 #define PSA_KEY_LIFETIME_FROM_PERSISTENCE_AND_LOCATION(persistence, location) \ argument
2399 ((location) << 8 | (persistence))
/mbedtls-latest/tests/include/test/drivers/
Dkey_management.h34 psa_key_location_t location; member
/mbedtls-latest/docs/
Dpsa-driver-example-and-guide.md20 … secure enclave, etc. An opaque driver is invoked for the specific [key location](https://github.c…
87 Each driver wrapper function contains a `switch` statement which checks the location of the key. If…
89 …ers** Calls to driver entry points go in a separate `case` block corresponding to the key location.
96 ├── switch(location)
/mbedtls-latest/tests/src/drivers/
Dtest_driver_key_management.c277 mbedtls_test_driver_key_management_hooks.location = PSA_KEY_LOCATION_LOCAL_STORAGE; in mbedtls_test_transparent_import_key()
363 mbedtls_test_driver_key_management_hooks.location = PSA_CRYPTO_TEST_DRIVER_LOCATION; in mbedtls_test_opaque_import_key()
/mbedtls-latest/docs/architecture/
Dpsa-storage-resilience.md165 …list contains the API key identifier, the key lifetime (or at least the location), the driver key …
194 …list contains the API key identifier, the key lifetime (or at least the location), and the driver …
307 …re it also contains the secure element's key identifier (as well as the location of the secure ele…
380 * If `id` is in the transaction list and a key exists by that identifier, the key's location is a s…
431 We assume that the key is loaded in a key slot in memory: the core needs to know the key's location
445 … into a key slot in memory (to get its location and the driver key identifier, although we could g…
Dpsa-shared-memory.md138 …t is known for sure that a buffer is not in shared memory. However, the location of the buffer is …
382 …to cause a security issue. Specifically, we must check that each memory location in a shared buffe…
399 Checking that a memory location is not accessed more than once may be achieved by using `mprotect()…
440 …parse the output from the program and from Valgrind and check that each location was accessed exac…
483 * Reads its input multiple times at the same location.
484 * Writes to its output multiple times at the same location.
Dpsa-keystore-design.md90 #### Key identifiers and slot location
92 … slice are calculated from the key identifier. The encoding of the slot location in the volatile k…

12