Home
last modified time | relevance | path

Searched refs:output_size (Results 1 – 25 of 46) sorted by relevance

12

/mbedtls-3.6.0/tests/suites/
Dtest_suite_psa_crypto_low_hash.function31 size_t output_size = expected->len;
35 ASSERT_ALLOC(output, output_size);
37 output, output_size, &length),
44 output_size = expected->len + 1;
45 ASSERT_ALLOC(output, output_size);
47 output, output_size, &length),
69 size_t output_size = expected1->len;
83 ASSERT_ALLOC(output, output_size);
97 output, output_size, &length),
102 memset(output, 0, output_size);
[all …]
Dtest_suite_psa_crypto_driver_wrappers.function1669 size_t output_size = 0;
1686 output_size = input_data->len + PSA_AEAD_TAG_LENGTH(key_type, key_bits,
1690 TEST_EQUAL(output_size,
1692 TEST_ASSERT(output_size <=
1694 TEST_CALLOC(output_data, output_size);
1701 output_data, output_size,
1737 size_t output_size = 0;
1754 output_size = input_data->len - PSA_AEAD_TAG_LENGTH(key_type, key_bits,
1756 TEST_CALLOC(output_data, output_size);
1764 output_data, output_size,
[all …]
/mbedtls-3.6.0/tests/src/drivers/
Dtest_driver_cipher.c40 size_t output_size, in mbedtls_test_transparent_cipher_encrypt() argument
46 if (output_size < mbedtls_test_driver_cipher_hooks.forced_output_length) { in mbedtls_test_transparent_cipher_encrypt()
68 output, output_size, output_length); in mbedtls_test_transparent_cipher_encrypt()
73 output, output_size, output_length); in mbedtls_test_transparent_cipher_encrypt()
87 size_t output_size, in mbedtls_test_transparent_cipher_decrypt() argument
93 if (output_size < mbedtls_test_driver_cipher_hooks.forced_output_length) { in mbedtls_test_transparent_cipher_decrypt()
115 output, output_size, output_length); in mbedtls_test_transparent_cipher_decrypt()
120 output, output_size, output_length); in mbedtls_test_transparent_cipher_decrypt()
232 size_t output_size, in mbedtls_test_transparent_cipher_update() argument
238 if (output_size < mbedtls_test_driver_cipher_hooks.forced_output_length) { in mbedtls_test_transparent_cipher_update()
[all …]
Dtest_driver_asymmetric_encryption.c28 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_test_transparent_asymmetric_encrypt() argument
33 if (output_size < mbedtls_test_driver_asymmetric_encryption_hooks.forced_output_length) { in mbedtls_test_transparent_asymmetric_encrypt()
55 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_encrypt()
60 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_encrypt()
70 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_test_transparent_asymmetric_decrypt() argument
75 if (output_size < mbedtls_test_driver_asymmetric_encryption_hooks.forced_output_length) { in mbedtls_test_transparent_asymmetric_decrypt()
97 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_decrypt()
102 output, output_size, output_length); in mbedtls_test_transparent_asymmetric_decrypt()
115 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_test_opaque_asymmetric_encrypt() argument
126 (void) output_size; in mbedtls_test_opaque_asymmetric_encrypt()
[all …]
Dtest_driver_pake.c58 size_t output_size, in mbedtls_test_transparent_pake_output() argument
65 if (output_size < 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()
95 (void) output_size; 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()
162 (void) output_size; in mbedtls_test_transparent_pake_get_implicit_key()
/mbedtls-3.6.0/tests/include/test/drivers/
Dcipher.h46 uint8_t *output, size_t output_size, size_t *output_length);
53 uint8_t *output, size_t output_size, size_t *output_length);
77 uint8_t *output, size_t output_size, size_t *output_length);
81 uint8_t *output, size_t output_size, size_t *output_length);
92 uint8_t *output, size_t output_size, size_t *output_length);
99 uint8_t *output, size_t output_size, size_t *output_length);
123 uint8_t *output, size_t output_size, size_t *output_length);
127 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.h58 size_t output_size,
69 uint8_t *output, size_t output_size, size_t *output_length);
/mbedtls-3.6.0/library/
Dpsa_crypto_driver_wrappers.h1174 size_t output_size, in psa_driver_wrapper_cipher_encrypt() argument
1200 output_size, in psa_driver_wrapper_cipher_encrypt()
1216 output_size, in psa_driver_wrapper_cipher_encrypt()
1232 output_size, in psa_driver_wrapper_cipher_encrypt()
1251 output_size, in psa_driver_wrapper_cipher_encrypt()
1267 (void)output_size; in psa_driver_wrapper_cipher_encrypt()
1281 size_t output_size, in psa_driver_wrapper_cipher_decrypt() argument
1305 output_size, in psa_driver_wrapper_cipher_decrypt()
1319 output_size, in psa_driver_wrapper_cipher_decrypt()
1333 output_size, in psa_driver_wrapper_cipher_decrypt()
[all …]
Dpsa_crypto_cipher.c372 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_psa_cipher_update() argument
389 if (output_size < expected_output_size) { in mbedtls_psa_cipher_update()
410 if (*output_length > output_size) { in mbedtls_psa_cipher_update()
420 uint8_t *output, size_t output_size, size_t *output_length) in mbedtls_psa_cipher_finish() argument
443 } else if (output_size >= *output_length) { in mbedtls_psa_cipher_finish()
480 size_t output_size, in mbedtls_psa_cipher_encrypt() argument
502 output, output_size, in mbedtls_psa_cipher_encrypt()
511 output_size - update_output_length, &finish_output_length); in mbedtls_psa_cipher_encrypt()
536 size_t output_size, in mbedtls_psa_cipher_decrypt() argument
562 output, output_size, &olength); in mbedtls_psa_cipher_decrypt()
[all …]
Dpsa_crypto_cipher.h141 uint8_t *output, size_t output_size, size_t *output_length);
171 uint8_t *output, size_t output_size, size_t *output_length);
241 size_t output_size,
290 size_t output_size,
Dpsa_crypto_pake.c286 size_t output_size, in mbedtls_psa_pake_output_internal() argument
361 if (output_size < length) { in mbedtls_psa_pake_output_internal()
385 (void) output_size; in mbedtls_psa_pake_output_internal()
394 size_t output_size, in mbedtls_psa_pake_output() argument
398 operation, step, output, output_size, output_length); in mbedtls_psa_pake_output()
523 uint8_t *output, size_t output_size, in mbedtls_psa_pake_get_implicit_key() argument
532 output_size, in mbedtls_psa_pake_get_implicit_key()
Dpsa_crypto_rsa.c546 size_t output_size, in mbedtls_psa_asymmetric_encrypt() argument
557 (void) output_size; in mbedtls_psa_asymmetric_encrypt()
572 if (output_size < mbedtls_rsa_get_len(rsa)) { in mbedtls_psa_asymmetric_encrypt()
640 size_t output_size, in mbedtls_psa_asymmetric_decrypt() argument
651 (void) output_size; in mbedtls_psa_asymmetric_decrypt()
684 output_size)); in mbedtls_psa_asymmetric_decrypt()
705 output_size)); in mbedtls_psa_asymmetric_decrypt()
Dpsa_crypto_pake.h77 size_t output_size,
141 uint8_t *output, size_t output_size,
Dpsa_crypto_aead.c493 size_t output_size, in mbedtls_psa_aead_update() argument
506 output, output_size, in mbedtls_psa_aead_update()
512 if (output_size < input_length) { in mbedtls_psa_aead_update()
519 output, output_size, in mbedtls_psa_aead_update()
525 if (output_size < input_length) { in mbedtls_psa_aead_update()
540 (void) output_size; in mbedtls_psa_aead_update()
Dpkcs12.c125 unsigned char *output, size_t output_size,
152 unsigned char *output, size_t output_size, in mbedtls_pkcs12_pbe_ext() argument
175 if (output_size < len) { in mbedtls_pkcs12_pbe_ext()
182 if (output_size < (len + padlen)) { in mbedtls_pkcs12_pbe_ext()
Dpkcs5.c106 unsigned char *output, size_t output_size,
130 unsigned char *output, size_t output_size, in mbedtls_pkcs5_pbes2_ext() argument
201 if (output_size < datalen) { in mbedtls_pkcs5_pbes2_ext()
208 if (output_size < (datalen + padlen)) { in mbedtls_pkcs5_pbes2_ext()
Dpsa_crypto_rsa.h256 size_t output_size,
314 size_t output_size,
/mbedtls-3.6.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
41 mbedtls_test_rnd_std_rand(NULL, output, output_size); in mbedtls_psa_external_get_random()
42 *output_length = output_size; in mbedtls_psa_external_get_random()
/mbedtls-3.6.0/programs/psa/
Dcrypto_examples.c54 size_t output_size, in cipher_operation() argument
68 output_size - *output_len, &len); in cipher_operation()
76 output_size - *output_len, &len); in cipher_operation()
92 size_t output_size, in cipher_encrypt() argument
107 output, output_size, output_len); in cipher_encrypt()
123 size_t output_size, in cipher_decrypt() argument
137 output, output_size, output_len); in cipher_decrypt()
/mbedtls-3.6.0/include/psa/
Dcrypto.h1616 size_t output_size,
1663 size_t output_size,
1952 size_t output_size,
2002 size_t output_size,
2616 size_t output_size,
3100 size_t output_size,
3161 size_t output_size,
3955 size_t output_size,
3989 size_t output_size);
Dcrypto_se_driver.h426 size_t output_size,
445 size_t output_size,
486 size_t output_size);
619 size_t output_size,
659 size_t output_size,
1240 size_t output_size,
/mbedtls-3.6.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.h.jinja1016 size_t output_size,
1039 output_size,
1057 output_size,
1076 output_size,
1092 (void)output_size;
1106 size_t output_size,
1127 output_size,
1143 output_size,
1160 output_size,
1174 (void)output_size;
[all …]
/mbedtls-3.6.0/include/mbedtls/
Dpsa_util.h33 typedef int mbedtls_f_rng_t(void *p_rng, unsigned char *output, size_t output_size);
74 size_t output_size);
Dgcm.h303 unsigned char *output, size_t output_size,
340 unsigned char *output, size_t output_size,

12