Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 114) sorted by relevance

12345

/lib/mbedtls/external/mbedtls/tests/suites/
A Dtest_suite_psa_crypto_attributes.function33 psa_set_key_id(&attributes, id);
36 psa_set_key_algorithm(&attributes, alg);
37 psa_set_key_type(&attributes, type);
38 psa_set_key_bits(&attributes, bits);
48 psa_reset_key_attributes(&attributes);
79 psa_set_key_id(&attributes, id1);
85 psa_set_key_id(&attributes, id2);
105 psa_set_key_slot_number(&attributes, 0);
115 psa_clear_key_slot_number(&attributes);
120 psa_clear_key_slot_number(&attributes);
[all …]
A Dtest_suite_psa_crypto_persistent_key.function56 psa_set_key_type(&attributes, key_type);
57 psa_set_key_bits(&attributes, key_bits);
132 psa_set_key_id(&attributes, key_id);
163 psa_set_key_id(&attributes, key_id);
187 psa_set_key_id(&attributes, key_id);
212 psa_set_key_id(&attributes, key_id);
213 psa_set_key_type(&attributes, type);
231 psa_reset_key_attributes(&attributes);
248 psa_reset_key_attributes(&attributes);
272 psa_set_key_id(&attributes, key_id);
[all …]
A Dtest_suite_psa_crypto_slot_management.function135 psa_set_key_type(&attributes, type);
141 psa_reset_key_attributes(&attributes);
164 psa_reset_key_attributes(&attributes);
185 psa_reset_key_attributes(&attributes);
222 psa_set_key_id(&attributes, id);
224 psa_set_key_type(&attributes, type);
367 psa_set_key_id(&attributes, id);
458 * PSA key attributes APIs thus accessing to the attributes
461 attributes.id = id;
463 psa_set_key_id(&attributes, id);
[all …]
A Dtest_suite_psa_crypto_se_driver_hal_mocks.function22 psa_key_attributes_t attributes;
30 psa_key_attributes_t attributes;
139 mock_generate_data.attributes = *attributes;
159 mock_import_data.attributes = *attributes;
251 (void) attributes;
348 psa_set_key_id(&attributes, id);
415 psa_set_key_id(&attributes, id);
465 psa_set_key_id(&attributes, id);
531 psa_set_key_id(&attributes, id);
588 psa_set_key_id(&attributes, id);
[all …]
A Dtest_suite_psa_crypto_generate_key.function18 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
27 psa_set_key_type(&attributes, key_type);
28 psa_set_key_bits(&attributes, bits);
29 TEST_EQUAL(psa_generate_key(&attributes, &key_id),
32 // Verify attributes of the created key on success
34 psa_reset_key_attributes(&attributes);
37 TEST_EQUAL(psa_get_key_usage_flags(&attributes), 0);
38 TEST_EQUAL(psa_get_key_algorithm(&attributes), 0);
39 TEST_EQUAL(psa_get_key_type(&attributes), key_type);
40 TEST_EQUAL(psa_get_key_bits(&attributes), bits);
[all …]
A Dtest_suite_psa_crypto_op_fail.function88 psa_set_key_usage_flags(&attributes,
92 PSA_ASSERT(psa_import_key(&attributes,
112 psa_reset_key_attributes(&attributes);
134 psa_set_key_usage_flags(&attributes,
138 PSA_ASSERT(psa_import_key(&attributes,
158 psa_reset_key_attributes(&attributes);
180 psa_set_key_usage_flags(&attributes,
184 PSA_ASSERT(psa_import_key(&attributes,
235 psa_set_key_usage_flags(&attributes,
303 psa_set_key_usage_flags(&attributes,
[all …]
A Dtest_suite_psa_crypto_storage_format.function244 psa_set_key_lifetime(&attributes, lifetime);
245 psa_set_key_id(&attributes, key_id);
246 psa_set_key_type(&attributes, type);
247 psa_set_key_bits(&attributes, bits);
249 psa_set_key_algorithm(&attributes, alg);
260 psa_reset_key_attributes(&attributes);
289 psa_set_key_id(&attributes, key_id);
290 psa_set_key_type(&attributes, type);
291 psa_set_key_bits(&attributes, bits);
293 psa_set_key_algorithm(&attributes, alg);
[all …]
A Dtest_suite_psa_crypto_se_driver_hal.function139 (void) attributes;
160 (void) attributes;
185 (void) attributes;
205 (void) attributes;
413 (void) attributes;
436 (void) attributes;
892 psa_set_key_id(&attributes, id);
950 psa_set_key_bits(&attributes,
955 attributes.id = returned_id;
1024 psa_set_key_id(&attributes, id);
[all …]
A Dtest_suite_psa_crypto_attributes.data1 PSA key attributes structure
5 PSA key attributes: id only
8 PSA key attributes: lifetime=3 only
11 PSA key attributes: id then back to volatile
14 PSA key attributes: id then back to non local volatile
17 PSA key attributes: id then lifetime
20 PSA key attributes: lifetime then id
23 PSA key attributes: non local volatile lifetime then id
26 PSA key attributes: slot number
A Dtest_suite_psa_crypto.function251 psa_set_key_id(&attributes, key_id);
280 psa_reset_key_attributes(&attributes);
1344 psa_key_attributes_t *attributes;
1466 psa_key_attributes_t *attributes;
1568 psa_set_key_type(&attributes, type);
1572 status = psa_import_key(&attributes,
1617 psa_set_key_type(&attributes, type);
1686 psa_set_key_type(&attributes, type);
1748 psa_set_key_type(&attributes, type);
1976 skc.attributes = &attributes;
[all …]
A Dtest_suite_psa_crypto_driver_wrappers.function517 psa_set_key_type(&attributes,
521 psa_import_key(&attributes,
591 psa_import_key(&attributes,
598 psa_import_key(&attributes,
648 psa_import_key(&attributes,
720 psa_import_key(&attributes,
727 psa_import_key(&attributes,
769 psa_set_key_type(&attributes,
841 psa_set_key_id(&attributes, id);
842 psa_set_key_type(&attributes,
[all …]
/lib/mbedtls/external/mbedtls/tests/src/drivers/
A Dtest_driver_key_management.c232 attributes, in mbedtls_test_transparent_generate_key()
249 (void) attributes; in mbedtls_test_transparent_generate_key()
257 (void) attributes; in mbedtls_test_opaque_generate_key()
294 attributes, in mbedtls_test_transparent_import_key()
311 attributes, in mbedtls_test_transparent_import_key()
328 attributes, in mbedtls_test_transparent_import_key()
401 attributes, in mbedtls_test_opaque_import_key()
423 attributes, in mbedtls_test_opaque_import_key()
565 attributes, in mbedtls_test_transparent_export_public_key()
580 attributes, in mbedtls_test_transparent_export_public_key()
[all …]
A Dtest_driver_signature.c42 const psa_key_attributes_t *attributes, in sign_hash() argument
66 attributes, in sign_hash()
87 attributes, in sign_hash()
97 (void) attributes; in sign_hash()
133 attributes, in verify_hash()
154 attributes, in verify_hash()
164 (void) attributes; in verify_hash()
242 (void) attributes; in mbedtls_test_opaque_signature_sign_message()
308 (void) attributes; in mbedtls_test_opaque_signature_verify_message()
355 (void) attributes; in mbedtls_test_opaque_signature_sign_hash()
[all …]
A Dtest_driver_cipher.c31 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_cipher_encrypt() argument
84 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_cipher_decrypt() argument
132 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_cipher_encrypt_setup() argument
164 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_cipher_decrypt_setup() argument
317 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_cipher_encrypt() argument
324 (void) attributes; in mbedtls_test_opaque_cipher_encrypt()
339 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_cipher_decrypt() argument
345 (void) attributes; in mbedtls_test_opaque_cipher_decrypt()
359 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_cipher_encrypt_setup() argument
364 (void) attributes; in mbedtls_test_opaque_cipher_encrypt_setup()
[all …]
A Dtest_driver_mac.c23 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_mac_compute() argument
54 (void) attributes; in mbedtls_test_transparent_mac_compute()
72 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_mac_sign_setup() argument
96 (void) attributes; in mbedtls_test_transparent_mac_sign_setup()
109 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_mac_verify_setup() argument
133 (void) attributes; in mbedtls_test_transparent_mac_verify_setup()
265 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_mac_compute() argument
281 (void) attributes; in mbedtls_test_opaque_mac_compute()
298 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_mac_sign_setup() argument
310 (void) attributes; in mbedtls_test_opaque_mac_sign_setup()
[all …]
A Dtest_driver_key_agreement.c32 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_key_agreement() argument
64 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_key_agreement()
71 attributes, in mbedtls_test_transparent_key_agreement()
77 (void) attributes; in mbedtls_test_transparent_key_agreement()
92 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_key_agreement()
99 attributes, in mbedtls_test_transparent_key_agreement()
108 (void) attributes; in mbedtls_test_transparent_key_agreement()
125 const psa_key_attributes_t *attributes, in mbedtls_test_opaque_key_agreement() argument
135 (void) attributes; in mbedtls_test_opaque_key_agreement()
/lib/efi_loader/
A Defi_variable.c253 if ((attributes & in setvariable_allowed()
333 if (!(attributes & in efi_set_variable_int()
343 if (attributes & in efi_set_variable_int()
349 attributes, &env_attr, in efi_set_variable_int()
359 if (attributes & in efi_set_variable_int()
368 attributes = var->attr; in efi_set_variable_int()
429 if ((attributes & in efi_query_variable_info_int()
434 if (attributes & ~EFI_VARIABLE_MASK) in efi_query_variable_info_int()
461 u32 attributes, in efi_query_variable_info_runtime() argument
491 u32 attributes, efi_uintn_t data_size, in efi_set_variable_runtime() argument
[all …]
/lib/mbedtls/external/mbedtls/include/psa/
A Dcrypto_struct.h314 attributes->MBEDTLS_PRIVATE(id) = key; in psa_set_key_id()
325 const psa_key_attributes_t *attributes) in psa_get_key_id() argument
327 return attributes->MBEDTLS_PRIVATE(id); in psa_get_key_id()
346 attributes->MBEDTLS_PRIVATE(id) = 0; in psa_set_key_lifetime()
352 const psa_key_attributes_t *attributes) in psa_get_key_lifetime() argument
376 const psa_key_attributes_t *attributes) in psa_get_key_usage_flags() argument
388 const psa_key_attributes_t *attributes) in psa_get_key_algorithm() argument
396 attributes->MBEDTLS_PRIVATE(type) = type; in psa_set_key_type()
400 const psa_key_attributes_t *attributes) in psa_get_key_type() argument
402 return attributes->MBEDTLS_PRIVATE(type); in psa_get_key_type()
[all …]
/lib/mbedtls/external/mbedtls/library/
A Dpsa_crypto_driver_wrappers.h888 (attributes, in psa_driver_wrapper_import_key()
903 (attributes, in psa_driver_wrapper_import_key()
930 (attributes, in psa_driver_wrapper_import_key()
996 (attributes, in psa_driver_wrapper_export_key()
1043 (attributes, in psa_driver_wrapper_copy_key()
1262 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1295 attributes, in psa_driver_wrapper_cipher_encrypt_setup()
1335 attributes, in psa_driver_wrapper_cipher_decrypt_setup()
2284 attributes, in psa_driver_wrapper_mac_sign_setup()
2315 attributes, in psa_driver_wrapper_mac_sign_setup()
[all …]
A Dpsa_crypto_driver_wrappers_no_static.c87 const psa_key_attributes_t *attributes, in psa_driver_wrapper_get_key_buffer_size() argument
91 psa_key_type_t key_type = psa_get_key_type(attributes); in psa_driver_wrapper_get_key_buffer_size()
92 size_t key_bits = psa_get_key_bits(attributes); in psa_driver_wrapper_get_key_buffer_size()
103 psa_get_key_id( attributes ) ) ) ) in psa_driver_wrapper_get_key_buffer_size()
123 const psa_key_attributes_t *attributes, in psa_driver_wrapper_export_public_key() argument
162 (attributes, in psa_driver_wrapper_export_public_key()
176 (attributes, in psa_driver_wrapper_export_public_key()
191 return( psa_export_public_key_internal( attributes, in psa_driver_wrapper_export_public_key()
204 (attributes, in psa_driver_wrapper_export_public_key()
224 psa_key_attributes_t *attributes, in psa_driver_wrapper_get_builtin_key() argument
[all …]
A Dpk.c174 type = psa_get_key_type(&attributes); in mbedtls_pk_setup_opaque()
175 psa_reset_key_attributes(&attributes); in mbedtls_pk_setup_opaque()
335 key_usage = psa_get_key_usage_flags(&attributes); in mbedtls_pk_can_do_ext()
336 psa_reset_key_attributes(&attributes); in mbedtls_pk_can_do_ext()
454 psa_set_key_algorithm(attributes, in mbedtls_pk_get_psa_attributes()
511 psa_set_key_bits(attributes, bits); in mbedtls_pk_get_psa_attributes()
512 psa_set_key_algorithm(attributes, alg); in mbedtls_pk_get_psa_attributes()
567 psa_set_key_type(attributes, new_type); in mbedtls_pk_get_psa_attributes()
578 psa_set_key_usage_flags(attributes, more_usage); in mbedtls_pk_get_psa_attributes()
636 if (old_type != psa_get_key_type(attributes)) { in copy_into_psa()
[all …]
/lib/mbedtls/external/mbedtls/programs/psa/
A Dkey_ladder_demo.c191 psa_set_key_usage_flags(&attributes, in generate()
193 psa_set_key_algorithm(&attributes, KDF_ALG); in generate()
197 PSA_CHECK(psa_generate_key(&attributes, &key)); in generate()
237 psa_set_key_usage_flags(&attributes, usage); in import_key_from_file()
238 psa_set_key_algorithm(&attributes, alg); in import_key_from_file()
270 psa_set_key_usage_flags(&attributes, in derive_key_ladder()
272 psa_set_key_algorithm(&attributes, KDF_ALG); in derive_key_ladder()
334 psa_set_key_usage_flags(&attributes, usage); in derive_wrapping_key()
336 psa_set_key_type(&attributes, PSA_KEY_TYPE_AES); in derive_wrapping_key()
377 key_type = psa_get_key_type(&attributes); in wrap_data()
[all …]
A Dcrypto_examples.c167 psa_set_key_usage_flags(&attributes, in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
169 psa_set_key_algorithm(&attributes, alg); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
171 psa_set_key_bits(&attributes, key_bits); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
173 status = psa_generate_key(&attributes, &key); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
215 psa_set_key_usage_flags(&attributes, in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
217 psa_set_key_algorithm(&attributes, alg); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
219 psa_set_key_bits(&attributes, key_bits); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
221 status = psa_generate_key(&attributes, &key); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
262 psa_set_key_usage_flags(&attributes, in cipher_example_encrypt_decrypt_aes_ctr_multi()
264 psa_set_key_algorithm(&attributes, alg); in cipher_example_encrypt_decrypt_aes_ctr_multi()
[all …]
/lib/mbedtls/external/mbedtls/tests/src/
A Dpsa_exercise_key.c53 psa_reset_key_attributes(&attributes); in check_key_attributes_sanity()
58 id = psa_get_key_id(&attributes); in check_key_attributes_sanity()
59 type = psa_get_key_type(&attributes); in check_key_attributes_sanity()
60 bits = psa_get_key_bits(&attributes); in check_key_attributes_sanity()
115 psa_reset_key_attributes(&attributes); in check_key_attributes_sanity()
259 psa_reset_key_attributes(&attributes); in exercise_cipher_key()
322 psa_reset_key_attributes(&attributes); in exercise_aead_key()
1024 psa_get_key_type(&attributes), in exercise_export_key()
1025 psa_get_key_bits(&attributes)); in exercise_export_key()
1041 psa_get_key_type(&attributes), psa_get_key_bits(&attributes), in exercise_export_key()
[all …]
/lib/mbedtls/external/mbedtls/3rdparty/p256-m/
A Dp256-m_driver_entrypoints.c75 psa_key_type_t type = psa_get_key_type(attributes); in p256_transparent_import_key()
114 size_t bits = psa_get_key_bits(attributes); in p256_transparent_export_public_key()
115 psa_key_type_t type = psa_get_key_type(attributes); in p256_transparent_export_public_key()
139 const psa_key_attributes_t *attributes, in p256_transparent_generate_key() argument
146 (void) attributes; in p256_transparent_generate_key()
169 const psa_key_attributes_t *attributes, in p256_transparent_key_agreement() argument
182 (void) attributes; in p256_transparent_key_agreement()
204 const psa_key_attributes_t *attributes, in p256_transparent_sign_hash() argument
217 (void) attributes; in p256_transparent_sign_hash()
262 const psa_key_attributes_t *attributes, in p256_transparent_verify_hash() argument
[all …]

Completed in 84 milliseconds

12345