Home
last modified time | relevance | path

Searched refs:data_length (Results 1 – 25 of 32) sorted by relevance

12

/mbedtls-3.6.0/tests/src/drivers/
Dtest_driver_key_management.c264 size_t data_length, in mbedtls_test_transparent_import_key() argument
285 data, data_length, in mbedtls_test_transparent_import_key()
292 data, data_length, in mbedtls_test_transparent_import_key()
302 data, data_length, in mbedtls_test_transparent_import_key()
309 data, data_length, in mbedtls_test_transparent_import_key()
319 data, data_length, in mbedtls_test_transparent_import_key()
326 data, data_length, in mbedtls_test_transparent_import_key()
332 (void) data_length; in mbedtls_test_transparent_import_key()
346 size_t data_length, in mbedtls_test_opaque_import_key() argument
371 *bits = PSA_BYTES_TO_BITS(data_length); in mbedtls_test_opaque_import_key()
[all …]
/mbedtls-3.6.0/library/
Dpsa_crypto_storage.c82 size_t data_length = 0; in psa_crypto_storage_load() local
89 status = psa_its_get(data_identifier, 0, (uint32_t) data_size, data, &data_length); in psa_crypto_storage_load()
90 if (data_size != data_length) { in psa_crypto_storage_load()
130 size_t data_length) in psa_crypto_storage_store() argument
140 status = psa_its_set(data_identifier, (uint32_t) data_length, data, 0); in psa_crypto_storage_store()
150 if (data_identifier_info.size != data_length) { in psa_crypto_storage_store()
203 size_t *data_length) in psa_crypto_storage_get_data_length() argument
214 *data_length = (size_t) data_identifier_info.size; in psa_crypto_storage_get_data_length()
237 const size_t data_length, in psa_format_key_data_for_storage() argument
253 MBEDTLS_PUT_UINT32_LE(data_length, storage_format->data_len, 0); in psa_format_key_data_for_storage()
[all …]
Dpsa_crypto_client.c26 size_t data_length) in psa_set_key_domain_parameters() argument
30 if (data_length != 0) { in psa_set_key_domain_parameters()
31 copy = mbedtls_calloc(1, data_length); in psa_set_key_domain_parameters()
35 memcpy(copy, data, data_length); in psa_set_key_domain_parameters()
47 attributes->domain_parameters_size = data_length; in psa_set_key_domain_parameters()
54 uint8_t *data, size_t data_size, size_t *data_length) in psa_get_key_domain_parameters() argument
59 *data_length = attributes->domain_parameters_size; in psa_get_key_domain_parameters()
Dpsa_its_file.c126 uint32_t data_length, in psa_its_get() argument
140 if (data_offset + data_length < data_offset) { in psa_its_get()
144 if (data_offset + data_length > SIZE_MAX) { in psa_its_get()
148 if (data_offset + data_length > info.size) { in psa_its_get()
164 n = fread(p_data, 1, data_length, stream); in psa_its_get()
165 if (n != data_length) { in psa_its_get()
181 uint32_t data_length, in psa_its_set() argument
196 MBEDTLS_PUT_UINT32_LE(data_length, header.size, 0); in psa_its_set()
214 if (data_length != 0) { in psa_its_set()
215 n = fwrite(p_data, 1, data_length, stream); in psa_its_set()
[all …]
Dpsa_crypto_driver_wrappers_no_static.c160 uint8_t *data, size_t data_size, size_t *data_length ) in psa_driver_wrapper_export_public_key() argument
184 data, data_size, data_length ) ); in psa_driver_wrapper_export_public_key()
205 data_length in psa_driver_wrapper_export_public_key()
219 data_length ); in psa_driver_wrapper_export_public_key()
230 data_length in psa_driver_wrapper_export_public_key()
245 data_length ) ); in psa_driver_wrapper_export_public_key()
258 data_length in psa_driver_wrapper_export_public_key()
Dpsa_crypto_ecp.c37 const uint8_t *data, size_t data_length, in mbedtls_psa_ecp_load_representation() argument
43 size_t curve_bytes = data_length; in mbedtls_psa_ecp_load_representation()
54 if ((data_length & 1) == 0) { in mbedtls_psa_ecp_load_representation()
57 curve_bytes = data_length / 2; in mbedtls_psa_ecp_load_representation()
111 data_length)); in mbedtls_psa_ecp_load_representation()
128 data_length)); in mbedtls_psa_ecp_load_representation()
157 const uint8_t *data, size_t data_length, in mbedtls_psa_ecp_import_key() argument
168 data_length, in mbedtls_psa_ecp_import_key()
201 size_t *data_length) in mbedtls_psa_ecp_export_key() argument
221 data_length, in mbedtls_psa_ecp_export_key()
[all …]
Dpsa_crypto_ffdh.c123 size_t *data_length) in mbedtls_psa_ffdh_export_public_key() argument
137 *data_length = key_buffer_size; in mbedtls_psa_ffdh_export_public_key()
158 *data_length = key_len; in mbedtls_psa_ffdh_export_public_key()
213 const uint8_t *data, size_t data_length, in mbedtls_psa_ffdh_import_key() argument
219 if (key_buffer_size < data_length) { in mbedtls_psa_ffdh_import_key()
222 memcpy(key_buffer, data, data_length); in mbedtls_psa_ffdh_import_key()
223 *key_buffer_length = data_length; in mbedtls_psa_ffdh_import_key()
224 *bits = PSA_BYTES_TO_BITS(data_length); in mbedtls_psa_ffdh_import_key()
Dpsa_crypto.c530 size_t data_length) in psa_copy_key_material_into_slot() argument
533 data_length); in psa_copy_key_material_into_slot()
538 memcpy(slot->key.data, data, data_length); in psa_copy_key_material_into_slot()
544 const uint8_t *data, size_t data_length, in psa_import_key_into_slot() argument
552 if (data_length == 0) { in psa_import_key_into_slot()
557 *bits = PSA_BYTES_TO_BITS(data_length); in psa_import_key_into_slot()
566 memcpy(key_buffer, data, data_length); in psa_import_key_into_slot()
567 *key_buffer_length = data_length; in psa_import_key_into_slot()
575 if (psa_is_dh_key_size_valid(PSA_BYTES_TO_BITS(data_length)) == 0) { in psa_import_key_into_slot()
579 data, data_length, in psa_import_key_into_slot()
[all …]
Dpsa_crypto_ecp.h36 size_t data_length,
76 const uint8_t *data, size_t data_length,
92 size_t *data_length);
121 uint8_t *data, size_t data_size, size_t *data_length);
Dpsa_crypto_rsa.h27 size_t data_length,
58 const uint8_t *data, size_t data_length,
74 size_t *data_length);
103 uint8_t *data, size_t data_size, size_t *data_length);
Dpsa_crypto_rsa.c61 psa_key_type_t type, const uint8_t *data, size_t data_length, in mbedtls_psa_rsa_load_representation() argument
72 mbedtls_pk_parse_key(&ctx, data, data_length, NULL, 0, in mbedtls_psa_rsa_load_representation()
76 mbedtls_pk_parse_public_key(&ctx, data, data_length)); in mbedtls_psa_rsa_load_representation()
124 const uint8_t *data, size_t data_length, in mbedtls_psa_rsa_import_key() argument
134 data_length, in mbedtls_psa_rsa_import_key()
168 size_t *data_length) in mbedtls_psa_rsa_export_key() argument
204 *data_length = ret; in mbedtls_psa_rsa_export_key()
211 uint8_t *data, size_t data_size, size_t *data_length) in mbedtls_psa_rsa_export_public_key() argument
226 data_length); in mbedtls_psa_rsa_export_public_key()
Dpsa_crypto_storage.h98 const size_t data_length);
128 size_t *data_length);
165 const size_t data_length,
Dpsa_crypto_core.h214 size_t data_length);
255 const uint8_t *data, size_t data_length,
284 uint8_t *data, size_t data_size, size_t *data_length);
312 uint8_t *data, size_t data_size, size_t *data_length);
Dpsa_crypto_its.h66 uint32_t data_length,
92 uint32_t data_length,
Dpsa_crypto_ffdh.h74 size_t *data_length);
128 const uint8_t *data, size_t data_length,
Dpsa_crypto_driver_wrappers.h804 size_t data_length, in psa_driver_wrapper_get_key_buffer_size_from_key_data() argument
817 PSA_BYTES_TO_BITS( data_length ) ); in psa_driver_wrapper_get_key_buffer_size_from_key_data()
825 (void)data_length; in psa_driver_wrapper_get_key_buffer_size_from_key_data()
928 size_t data_length, in psa_driver_wrapper_import_key() argument
956 attributes, data, data_length, bits ); in psa_driver_wrapper_import_key()
982 data_length, in psa_driver_wrapper_import_key()
997 data_length, in psa_driver_wrapper_import_key()
1013 data, data_length, in psa_driver_wrapper_import_key()
1024 data_length, in psa_driver_wrapper_import_key()
1044 uint8_t *data, size_t data_size, size_t *data_length ) in psa_driver_wrapper_export_key() argument
[all …]
Dpsa_crypto_driver_wrappers_no_static.h18 uint8_t *data, size_t data_size, size_t *data_length);
/mbedtls-3.6.0/3rdparty/p256-m/
Dp256-m_driver_entrypoints.c63 size_t data_length, in p256_transparent_import_key() argument
77 if (data_length != PSA_PUBKEY_SIZE) { in p256_transparent_import_key()
85 if (data_length != PRIVKEY_SIZE) { in p256_transparent_import_key()
97 if (key_buffer_size < data_length) { in p256_transparent_import_key()
100 memcpy(key_buffer, data, data_length); in p256_transparent_import_key()
101 *key_buffer_length = data_length; in p256_transparent_import_key()
111 size_t *data_length) in p256_transparent_export_public_key() argument
132 *data_length = PSA_PUBKEY_SIZE; in p256_transparent_export_public_key()
Dp256-m_driver_entrypoints.h47 size_t data_length,
78 size_t *data_length);
/mbedtls-3.6.0/tests/include/test/drivers/
Dkey_management.h79 uint8_t *data, size_t data_size, size_t *data_length);
84 uint8_t *data, size_t data_size, size_t *data_length);
89 uint8_t *data, size_t data_size, size_t *data_length);
94 size_t data_length,
103 size_t data_length,
/mbedtls-3.6.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers_no_static.c.jinja126 uint8_t *data, size_t data_size, size_t *data_length )
136 data_length
158 data, data_size, data_length ) );
178 data_length ) );
/mbedtls-3.6.0/tests/suites/
Dtest_suite_psa_crypto_se_driver_hal.function100 static size_t ecc_curve_bits(psa_ecc_family_t curve, size_t data_length)
104 if (data_length == PSA_BYTES_TO_BITS(521)) {
109 if (data_length == PSA_BYTES_TO_BITS(255)) {
114 return PSA_BYTES_TO_BITS(data_length);
180 size_t data_length,
189 *bits = PSA_BYTES_TO_BITS(data_length);
316 size_t data_length,
321 data_length);
330 *bits = PSA_BYTES_TO_BITS(data_length);
332 *bits = ecc_curve_bits(PSA_KEY_TYPE_ECC_GET_FAMILY(type), data_length);
[all …]
Dtest_suite_psa_crypto_persistent_key.function127 size_t data_length = data_length_arg;
130 TEST_CALLOC(data, data_length);
137 TEST_EQUAL(psa_import_key(&attributes, data, data_length, &key_id),
Dtest_suite_psa_crypto_se_driver_hal_mocks.function32 size_t data_length;
149 size_t data_length,
160 mock_import_data.data_length = data_length;
/mbedtls-3.6.0/include/psa/
Dcrypto.h641 size_t data_length,
737 size_t *data_length);
812 size_t *data_length);
3377 size_t data_length);

12