Home
last modified time | relevance | path

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

12

/mbedtls-3.7.0/tests/src/drivers/
Dtest_driver_key_management.c267 size_t data_length, in mbedtls_test_transparent_import_key() argument
288 data, data_length, in mbedtls_test_transparent_import_key()
295 data, data_length, in mbedtls_test_transparent_import_key()
305 data, data_length, in mbedtls_test_transparent_import_key()
312 data, data_length, in mbedtls_test_transparent_import_key()
322 data, data_length, in mbedtls_test_transparent_import_key()
329 data, data_length, in mbedtls_test_transparent_import_key()
335 (void) data_length; in mbedtls_test_transparent_import_key()
349 size_t data_length, in mbedtls_test_opaque_import_key() argument
374 *bits = PSA_BYTES_TO_BITS(data_length); in mbedtls_test_opaque_import_key()
[all …]
/mbedtls-3.7.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_its_file.c121 uint32_t data_length, in psa_its_get() argument
135 if (data_offset + data_length < data_offset) { in psa_its_get()
139 if (data_offset + data_length > SIZE_MAX) { in psa_its_get()
143 if (data_offset + data_length > info.size) { in psa_its_get()
159 n = fread(p_data, 1, data_length, stream); in psa_its_get()
160 if (n != data_length) { in psa_its_get()
176 uint32_t data_length, in psa_its_set() argument
191 MBEDTLS_PUT_UINT32_LE(data_length, header.size, 0); in psa_its_set()
209 if (data_length != 0) { in psa_its_set()
210 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.c92 const uint8_t *data, size_t data_length, in mbedtls_psa_ecp_load_representation() argument
98 size_t curve_bytes = data_length; in mbedtls_psa_ecp_load_representation()
109 if ((data_length & 1) == 0) { in mbedtls_psa_ecp_load_representation()
112 curve_bytes = data_length / 2; in mbedtls_psa_ecp_load_representation()
165 data_length)); in mbedtls_psa_ecp_load_representation()
182 data_length)); in mbedtls_psa_ecp_load_representation()
211 const uint8_t *data, size_t data_length, in mbedtls_psa_ecp_import_key() argument
222 data_length, in mbedtls_psa_ecp_import_key()
255 size_t *data_length) in mbedtls_psa_ecp_export_key() argument
275 data_length, in mbedtls_psa_ecp_export_key()
[all …]
Dpsa_crypto_ffdh.c149 size_t *data_length) in mbedtls_psa_ffdh_export_public_key() argument
163 *data_length = key_buffer_size; in mbedtls_psa_ffdh_export_public_key()
184 *data_length = key_len; in mbedtls_psa_ffdh_export_public_key()
239 const uint8_t *data, size_t data_length, in mbedtls_psa_ffdh_import_key() argument
245 if (key_buffer_size < data_length) { in mbedtls_psa_ffdh_import_key()
248 memcpy(key_buffer, data, data_length); in mbedtls_psa_ffdh_import_key()
249 *key_buffer_length = data_length; in mbedtls_psa_ffdh_import_key()
250 *bits = PSA_BYTES_TO_BITS(data_length); in mbedtls_psa_ffdh_import_key()
Dpsa_crypto.c728 size_t data_length) in psa_copy_key_material_into_slot() argument
731 data_length); in psa_copy_key_material_into_slot()
736 memcpy(slot->key.data, data, data_length); in psa_copy_key_material_into_slot()
742 const uint8_t *data, size_t data_length, in psa_import_key_into_slot() argument
750 if (data_length == 0) { in psa_import_key_into_slot()
755 *bits = PSA_BYTES_TO_BITS(data_length); in psa_import_key_into_slot()
764 memcpy(key_buffer, data, data_length); in psa_import_key_into_slot()
765 *key_buffer_length = data_length; in psa_import_key_into_slot()
773 if (psa_is_dh_key_size_valid(PSA_BYTES_TO_BITS(data_length)) == 0) { in psa_import_key_into_slot()
777 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.c60 psa_key_type_t type, const uint8_t *data, size_t data_length, in mbedtls_psa_rsa_load_representation() argument
74 status = mbedtls_to_psa_error(mbedtls_rsa_parse_key(*p_rsa, data, data_length)); in mbedtls_psa_rsa_load_representation()
76 status = mbedtls_to_psa_error(mbedtls_rsa_parse_pubkey(*p_rsa, data, data_length)); in mbedtls_psa_rsa_load_representation()
111 const uint8_t *data, size_t data_length, in mbedtls_psa_rsa_import_key() argument
121 data_length, in mbedtls_psa_rsa_import_key()
155 size_t *data_length) in mbedtls_psa_rsa_export_key() argument
186 *data_length = ret; in mbedtls_psa_rsa_export_key()
193 uint8_t *data, size_t data_size, size_t *data_length) in mbedtls_psa_rsa_export_public_key() argument
208 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.h246 size_t data_length);
287 const uint8_t *data, size_t data_length,
316 uint8_t *data, size_t data_size, size_t *data_length);
344 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.h73 size_t *data_length);
127 const uint8_t *data, size_t data_length,
Dpsa_crypto_driver_wrappers.h813 size_t data_length, in psa_driver_wrapper_get_key_buffer_size_from_key_data() argument
826 PSA_BYTES_TO_BITS( data_length ) ); in psa_driver_wrapper_get_key_buffer_size_from_key_data()
834 (void)data_length; in psa_driver_wrapper_get_key_buffer_size_from_key_data()
956 size_t data_length, in psa_driver_wrapper_import_key() argument
984 attributes, data, data_length, bits ); in psa_driver_wrapper_import_key()
1010 data_length, in psa_driver_wrapper_import_key()
1025 data_length, in psa_driver_wrapper_import_key()
1041 data, data_length, in psa_driver_wrapper_import_key()
1052 data_length, in psa_driver_wrapper_import_key()
1072 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.7.0/tests/src/
Dpsa_crypto_stubs.c28 size_t *data_length) in psa_export_key() argument
33 (void) data_length; in psa_export_key()
40 size_t *data_length) in psa_export_public_key() argument
45 (void) data_length; in psa_export_public_key()
65 size_t data_length, in psa_import_key() argument
70 (void) data_length; in psa_import_key()
/mbedtls-3.7.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.7.0/include/psa/
Dcrypto_compat.h182 psa_key_type_t type, const uint8_t *data, size_t data_length) in psa_set_key_domain_parameters() argument
185 if (data_length != 0) { in psa_set_key_domain_parameters()
208 uint8_t *data, size_t data_size, size_t *data_length) in psa_get_key_domain_parameters() argument
213 *data_length = 0; in psa_get_key_domain_parameters()
Dcrypto.h648 size_t data_length,
744 size_t *data_length);
819 size_t *data_length);
3385 size_t data_length);
/mbedtls-3.7.0/tests/include/test/drivers/
Dkey_management.h85 uint8_t *data, size_t data_size, size_t *data_length);
90 uint8_t *data, size_t data_size, size_t *data_length);
95 uint8_t *data, size_t data_size, size_t *data_length);
100 size_t data_length,
109 size_t data_length,
/mbedtls-3.7.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.7.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.function125 size_t data_length = data_length_arg;
128 TEST_CALLOC(data, data_length);
135 TEST_EQUAL(psa_import_key(&attributes, data, data_length, &key_id),

12