Home
last modified time | relevance | path

Searched refs:output_length (Results 1 – 25 of 36) sorted by relevance

12

/mbedtls-3.7.0/tests/src/drivers/
Dtest_driver_cipher.c41 size_t *output_length) in mbedtls_test_transparent_cipher_encrypt() argument
54 *output_length = mbedtls_test_driver_cipher_hooks.forced_output_length; in mbedtls_test_transparent_cipher_encrypt()
72 output, output_size, output_length); in mbedtls_test_transparent_cipher_encrypt()
77 output, output_size, output_length); in mbedtls_test_transparent_cipher_encrypt()
92 size_t *output_length) in mbedtls_test_transparent_cipher_decrypt() argument
104 *output_length = mbedtls_test_driver_cipher_hooks.forced_output_length; in mbedtls_test_transparent_cipher_decrypt()
119 output, output_size, output_length); in mbedtls_test_transparent_cipher_decrypt()
124 output, output_size, output_length); in mbedtls_test_transparent_cipher_decrypt()
241 size_t *output_length) in mbedtls_test_transparent_cipher_update() argument
253 *output_length = mbedtls_test_driver_cipher_hooks.forced_output_length; in mbedtls_test_transparent_cipher_update()
[all …]
Dtest_driver_asymmetric_encryption.c32 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_test_transparent_asymmetric_encrypt() argument
44 *output_length = mbedtls_test_driver_asymmetric_encryption_hooks.forced_output_length; in mbedtls_test_transparent_asymmetric_encrypt()
58 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_encrypt()
63 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_encrypt()
73 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_test_transparent_asymmetric_decrypt() argument
85 *output_length = mbedtls_test_driver_asymmetric_encryption_hooks.forced_output_length; in mbedtls_test_transparent_asymmetric_decrypt()
99 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_decrypt()
104 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_decrypt()
117 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_test_opaque_asymmetric_encrypt() argument
136 output, output_size, output_length); in mbedtls_test_opaque_asymmetric_encrypt()
[all …]
Dtest_driver_pake.c59 size_t *output_length) in mbedtls_test_transparent_pake_output() argument
72 *output_length = mbedtls_test_driver_pake_hooks.forced_output_length; in mbedtls_test_transparent_pake_output()
86 output, output_size, output_length); in mbedtls_test_transparent_pake_output()
90 operation, step, output, output_size, output_length); in mbedtls_test_transparent_pake_output()
96 (void) output_length; in mbedtls_test_transparent_pake_output()
141 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_test_transparent_pake_get_implicit_key() argument
154 operation, output, output_size, output_length); in mbedtls_test_transparent_pake_get_implicit_key()
158 operation, output, output_size, output_length); in mbedtls_test_transparent_pake_get_implicit_key()
163 (void) output_length; in mbedtls_test_transparent_pake_get_implicit_key()
Dtest_driver_aead.c305 size_t *output_length) in mbedtls_test_transparent_aead_update() argument
318 output_size, output_length); in mbedtls_test_transparent_aead_update()
322 output_size, output_length); in mbedtls_test_transparent_aead_update()
329 (void) output_length; in mbedtls_test_transparent_aead_update()
/mbedtls-3.7.0/library/
Dpsa_crypto_cipher.c424 size_t *output_length) in psa_cipher_update_ecb() argument
429 *output_length = 0; in psa_cipher_update_ecb()
462 *output_length += internal_output_length; in psa_cipher_update_ecb()
482 *output_length += internal_output_length; in psa_cipher_update_ecb()
502 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_psa_cipher_update() argument
532 output_length); in mbedtls_psa_cipher_update()
537 *output_length = 0; in mbedtls_psa_cipher_update()
542 input_length, output, output_length)); in mbedtls_psa_cipher_update()
544 if (*output_length > output_size) { in mbedtls_psa_cipher_update()
554 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_psa_cipher_finish() argument
[all …]
Dpsa_crypto_driver_wrappers.h1203 size_t *output_length ) in psa_driver_wrapper_cipher_encrypt() argument
1229 output_length ); in psa_driver_wrapper_cipher_encrypt()
1245 output_length ); in psa_driver_wrapper_cipher_encrypt()
1261 output_length ) ); in psa_driver_wrapper_cipher_encrypt()
1280 output_length ) ); in psa_driver_wrapper_cipher_encrypt()
1296 (void)output_length; in psa_driver_wrapper_cipher_encrypt()
1310 size_t *output_length ) in psa_driver_wrapper_cipher_decrypt() argument
1334 output_length ); in psa_driver_wrapper_cipher_decrypt()
1348 output_length ); in psa_driver_wrapper_cipher_decrypt()
1362 output_length ) ); in psa_driver_wrapper_cipher_decrypt()
[all …]
Dpsa_crypto_cipher.h164 uint8_t *output, size_t output_size, size_t *output_length);
194 uint8_t *output, size_t output_size, size_t *output_length);
265 size_t *output_length);
314 size_t *output_length);
Dpsa_crypto_pake.c287 size_t *output_length) in mbedtls_psa_pake_output_internal() argument
368 *output_length = length; in mbedtls_psa_pake_output_internal()
386 (void) output_length; in mbedtls_psa_pake_output_internal()
395 size_t *output_length) in mbedtls_psa_pake_output() argument
398 operation, step, output, output_size, output_length); in mbedtls_psa_pake_output()
524 size_t *output_length) in mbedtls_psa_pake_get_implicit_key() argument
533 output_length, in mbedtls_psa_pake_get_implicit_key()
Dpsa_crypto_rsa.c526 size_t *output_length) in mbedtls_psa_asymmetric_encrypt() argument
537 (void) output_length; in mbedtls_psa_asymmetric_encrypt()
596 *output_length = mbedtls_rsa_get_len(rsa); in mbedtls_psa_asymmetric_encrypt()
620 size_t *output_length) in mbedtls_psa_asymmetric_decrypt() argument
631 (void) output_length; in mbedtls_psa_asymmetric_decrypt()
633 *output_length = 0; in mbedtls_psa_asymmetric_decrypt()
660 output_length, in mbedtls_psa_asymmetric_decrypt()
681 output_length, in mbedtls_psa_asymmetric_decrypt()
Dbignum_core.c260 size_t output_length) in mbedtls_mpi_core_write_le() argument
265 if (stored_bytes < output_length) { in mbedtls_mpi_core_write_le()
268 bytes_to_copy = output_length; in mbedtls_mpi_core_write_le()
283 if (stored_bytes < output_length) { in mbedtls_mpi_core_write_le()
285 memset(output + stored_bytes, 0, output_length - stored_bytes); in mbedtls_mpi_core_write_le()
294 size_t output_length) in mbedtls_mpi_core_write_be() argument
302 if (stored_bytes < output_length) { in mbedtls_mpi_core_write_be()
309 p = output + output_length - stored_bytes; in mbedtls_mpi_core_write_be()
310 memset(output, 0, output_length - stored_bytes); in mbedtls_mpi_core_write_be()
314 bytes_to_copy = output_length; in mbedtls_mpi_core_write_be()
Dpsa_crypto.c3334 size_t *output_length) argument
3350 *output_length = 0;
3374 output, output_size, output_length);
3393 size_t *output_length) argument
3409 *output_length = 0;
3432 output, output_size, output_length);
4221 size_t output_length = 0; local
4224 &output_length);
4230 if (output_length != output_size) {
4445 size_t *output_length) argument
[all …]
Dpsa_crypto_pake.h78 size_t *output_length);
142 size_t *output_length);
Dpsa_crypto_rsa.h267 size_t *output_length);
325 size_t *output_length);
Dbignum_mod_raw.c80 size_t output_length, in mbedtls_mpi_mod_raw_write() argument
86 output, output_length); in mbedtls_mpi_mod_raw_write()
89 output, output_length); in mbedtls_mpi_mod_raw_write()
/mbedtls-3.7.0/tests/include/test/drivers/
Dcipher.h52 uint8_t *output, size_t output_size, size_t *output_length);
59 uint8_t *output, size_t output_size, size_t *output_length);
83 uint8_t *output, size_t output_size, size_t *output_length);
87 uint8_t *output, size_t output_size, size_t *output_length);
98 uint8_t *output, size_t output_size, size_t *output_length);
105 uint8_t *output, size_t output_size, size_t *output_length);
129 uint8_t *output, size_t output_size, size_t *output_length);
133 uint8_t *output, size_t output_size, size_t *output_length);
Dasymmetric_encryption.h46 uint8_t *output, size_t output_size, size_t *output_length);
52 uint8_t *output, size_t output_size, size_t *output_length);
58 uint8_t *output, size_t output_size, size_t *output_length);
64 uint8_t *output, size_t output_size, size_t *output_length);
Dpake.h59 size_t *output_length);
69 uint8_t *output, size_t output_size, size_t *output_length);
/mbedtls-3.7.0/include/psa/
Dcrypto.h1624 size_t *output_length);
1671 size_t *output_length);
1960 size_t *output_length);
2010 size_t *output_length);
2624 size_t *output_length);
3108 size_t *output_length);
3169 size_t *output_length);
3610 size_t output_length);
3900 size_t output_length);
4048 size_t *output_length);
/mbedtls-3.7.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.h.jinja1043 size_t *output_length )
1066 output_length );
1084 output_length ) );
1103 output_length ) );
1119 (void)output_length;
1133 size_t *output_length )
1154 output_length );
1170 output_length ) );
1187 output_length ) );
1201 (void)output_length;
[all …]
/mbedtls-3.7.0/tests/suites/
Dtest_suite_psa_crypto_driver_wrappers.function1392 size_t output_length = 0;
1424 output_buffer_size, &output_length);
1432 output, output_length);
1665 size_t output_length = 0;
1697 &output_length);
1706 output_data, output_length);
1733 size_t output_length = 0;
1760 &output_length);
1769 output_data, output_length);
2238 size_t output_length;
[all …]
Dtest_suite_psa_crypto.function376 size_t output_length = 0;
519 memcpy((output_data + output_length), part_data,
523 output_length += output_part_length;
529 output_size, &output_length));
547 memcpy((output_data + output_length), final_data,
551 output_length += output_part_length;
560 memcpy((output_data + output_length), tag_buffer,
564 output_length += tag_length;
566 TEST_EQUAL(output_length,
569 TEST_LE_U(output_length,
[all …]
Dtest_suite_psa_crypto_op_fail.function259 size_t output_length = sizeof(output);
261 output_length = PSA_BITS_TO_BYTES(key_bits);
263 output_length = 2 * PSA_BITS_TO_BYTES(key_bits);
265 TEST_ASSERT(output_length <= sizeof(output));
269 output, output_length));
274 output, output_length));
Dtest_suite_pkcs1_v15.function199 size_t output_length = 0x7EA0;
223 &rnd_info, &output_length,
227 TEST_ASSERT(output_length == expected_plaintext_length);
228 TEST_ASSERT(memcmp(original + sizeof(N) - output_length,
230 output_length) == 0);
243 TEST_ASSERT(output_length == max_payload_length);
251 TEST_ASSERT(output_length != 0x7EA0);
/mbedtls-3.7.0/tests/src/
Dfake_external_rng_for_test.c31 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_psa_external_get_random() argument
42 *output_length = output_size; in mbedtls_psa_external_get_random()
/mbedtls-3.7.0/include/mbedtls/
Dgcm.h318 size_t *output_length);
355 size_t *output_length,

12