Home
last modified time | relevance | path

Searched refs:input_length (Results 1 – 25 of 41) sorted by relevance

12

/mbedtls-3.6.0/library/
Dpsa_crypto_cipher.c292 size_t input_length, in psa_cipher_update_ecb() argument
301 if (input_length == 0) { in psa_cipher_update_ecb()
310 if (input_length < bytes_to_copy) { in psa_cipher_update_ecb()
311 bytes_to_copy = input_length; in psa_cipher_update_ecb()
316 input_length -= bytes_to_copy; in psa_cipher_update_ecb()
337 while (input_length >= block_size) { in psa_cipher_update_ecb()
348 input_length -= block_size; in psa_cipher_update_ecb()
355 if (input_length > 0) { in psa_cipher_update_ecb()
358 input, input_length); in psa_cipher_update_ecb()
359 ctx->unprocessed_len += input_length; in psa_cipher_update_ecb()
[all …]
Dpsa_crypto_driver_wrappers.h161 size_t input_length, in psa_driver_wrapper_sign_message() argument
186 input_length, in psa_driver_wrapper_sign_message()
201 input_length, in psa_driver_wrapper_sign_message()
213 input_length, in psa_driver_wrapper_sign_message()
228 input_length, in psa_driver_wrapper_sign_message()
250 size_t input_length, in psa_driver_wrapper_verify_message() argument
274 input_length, in psa_driver_wrapper_verify_message()
288 input_length, in psa_driver_wrapper_verify_message()
299 input_length, in psa_driver_wrapper_verify_message()
313 input_length, in psa_driver_wrapper_verify_message()
[all …]
Dpsa_crypto_hash.c264 size_t input_length) in mbedtls_psa_hash_update() argument
272 input, input_length); in mbedtls_psa_hash_update()
278 input, input_length); in mbedtls_psa_hash_update()
284 input, input_length); in mbedtls_psa_hash_update()
290 input, input_length); in mbedtls_psa_hash_update()
296 input, input_length); in mbedtls_psa_hash_update()
302 input, input_length); in mbedtls_psa_hash_update()
308 input, input_length); in mbedtls_psa_hash_update()
328 input, input_length); in mbedtls_psa_hash_update()
333 (void) input_length; in mbedtls_psa_hash_update()
[all …]
Dpsa_crypto_aead.c451 size_t input_length) in mbedtls_psa_aead_update_ad() argument
458 mbedtls_gcm_update_ad(&operation->ctx.gcm, input, input_length)); in mbedtls_psa_aead_update_ad()
464 mbedtls_ccm_update_ad(&operation->ctx.ccm, input, input_length)); in mbedtls_psa_aead_update_ad()
472 input_length)); in mbedtls_psa_aead_update_ad()
478 (void) input_length; in mbedtls_psa_aead_update_ad()
491 size_t input_length, in mbedtls_psa_aead_update() argument
499 update_output_length = input_length; in mbedtls_psa_aead_update()
505 input, input_length, in mbedtls_psa_aead_update()
512 if (output_size < input_length) { in mbedtls_psa_aead_update()
518 input, input_length, in mbedtls_psa_aead_update()
[all …]
Dgcm.c410 const unsigned char *input, size_t input_length, in mbedtls_gcm_update() argument
420 if (output_size < input_length) { in mbedtls_gcm_update()
423 *output_length = input_length; in mbedtls_gcm_update()
429 if (input_length == 0) { in mbedtls_gcm_update()
433 if (output > input && (size_t) (output - input) < input_length) { in mbedtls_gcm_update()
439 if (ctx->len + input_length < ctx->len || in mbedtls_gcm_update()
440 (uint64_t) ctx->len + input_length > 0xFFFFFFFE0ull) { in mbedtls_gcm_update()
451 if (use_len > input_length) { in mbedtls_gcm_update()
452 use_len = input_length; in mbedtls_gcm_update()
464 input_length -= use_len; in mbedtls_gcm_update()
[all …]
Dpsa_crypto_pake.c407 size_t input_length) in mbedtls_psa_pake_input_internal() argument
462 if (operation->buffer_length + input_length + 1 > sizeof(operation->buffer)) { in mbedtls_psa_pake_input_internal()
467 operation->buffer[operation->buffer_length] = (uint8_t) input_length; in mbedtls_psa_pake_input_internal()
472 input, input_length); in mbedtls_psa_pake_input_internal()
473 operation->buffer_length += input_length; in mbedtls_psa_pake_input_internal()
505 (void) input_length; in mbedtls_psa_pake_input_internal()
513 size_t input_length) in mbedtls_psa_pake_input() argument
516 operation, step, input, input_length); in mbedtls_psa_pake_input()
Dpsa_crypto_mac.c344 size_t input_length) in mbedtls_psa_mac_update() argument
354 input, input_length)); in mbedtls_psa_mac_update()
360 input, input_length); in mbedtls_psa_mac_update()
367 (void) input_length; in mbedtls_psa_mac_update()
461 size_t input_length, in mbedtls_psa_mac_compute() argument
476 if (input_length > 0) { in mbedtls_psa_mac_compute()
477 status = mbedtls_psa_mac_update(&operation, input, input_length); in mbedtls_psa_mac_compute()
Dpsa_crypto_cipher.h140 const uint8_t *input, size_t input_length,
239 size_t input_length,
288 size_t input_length,
Dpsa_crypto_rsa.c542 size_t input_length, in mbedtls_psa_asymmetric_encrypt() argument
553 (void) input_length; in mbedtls_psa_asymmetric_encrypt()
584 input_length, in mbedtls_psa_asymmetric_encrypt()
604 input_length, in mbedtls_psa_asymmetric_encrypt()
636 size_t input_length, in mbedtls_psa_asymmetric_decrypt() argument
647 (void) input_length; in mbedtls_psa_asymmetric_decrypt()
668 if (input_length != mbedtls_rsa_get_len(rsa)) { in mbedtls_psa_asymmetric_decrypt()
Dpsa_crypto.c2189 size_t input_length) argument
2200 if (input_length == 0) {
2204 status = psa_driver_wrapper_hash_update(operation, input, input_length);
2264 const uint8_t *input, size_t input_length, argument
2273 return psa_driver_wrapper_hash_compute(alg, input, input_length,
2278 const uint8_t *input, size_t input_length, argument
2289 alg, input, input_length,
2475 size_t input_length) argument
2483 if (input_length == 0) {
2488 input, input_length);
[all …]
/mbedtls-3.6.0/include/psa/
Dcrypto_sizes.h507 #define PSA_AEAD_UPDATE_OUTPUT_SIZE(key_type, alg, input_length) \ argument
510 PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_LENGTH(key_type), (input_length)) : \
511 (input_length) : \
524 #define PSA_AEAD_UPDATE_OUTPUT_MAX_SIZE(input_length) \ argument
525 (PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE, (input_length)))
1144 #define PSA_CIPHER_ENCRYPT_OUTPUT_SIZE(key_type, alg, input_length) \ argument
1148 (input_length) + 1u) + \
1151 (input_length) + PSA_CIPHER_IV_LENGTH((key_type), (alg)) : \
1165 #define PSA_CIPHER_ENCRYPT_OUTPUT_MAX_SIZE(input_length) \ argument
1167 (input_length) + 1u) + \
[all …]
Dcrypto.h855 size_t input_length,
890 size_t input_length,
1010 size_t input_length);
1207 size_t input_length,
1248 size_t input_length,
1445 size_t input_length);
1614 size_t input_length,
1661 size_t input_length,
1950 size_t input_length,
2530 size_t input_length);
[all …]
Dcrypto_se_driver.h190 size_t input_length);
261 size_t input_length,
290 size_t input_length,
615 size_t input_length,
655 size_t input_length,
/mbedtls-3.6.0/tests/src/drivers/
Dtest_driver_asymmetric_encryption.c27 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_transparent_asymmetric_encrypt() argument
54 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_encrypt()
59 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_encrypt()
69 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_transparent_asymmetric_decrypt() argument
96 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_decrypt()
101 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_decrypt()
114 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_opaque_asymmetric_encrypt() argument
122 (void) input_length; in mbedtls_test_opaque_asymmetric_encrypt()
134 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_opaque_asymmetric_decrypt() argument
142 (void) input_length; in mbedtls_test_opaque_asymmetric_decrypt()
Dtest_driver_cipher.c38 size_t input_length, in mbedtls_test_transparent_cipher_encrypt() argument
67 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
72 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
85 size_t input_length, in mbedtls_test_transparent_cipher_decrypt() argument
114 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt()
119 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt()
230 size_t input_length, in mbedtls_test_transparent_cipher_update() argument
257 operation, input, input_length, in mbedtls_test_transparent_cipher_update()
261 operation, input, input_length, in mbedtls_test_transparent_cipher_update()
313 const uint8_t *input, size_t input_length, in mbedtls_test_opaque_cipher_encrypt() argument
[all …]
Dhash.c24 const uint8_t *input, size_t input_length, in mbedtls_test_transparent_hash_compute() argument
37 alg, input, input_length, in mbedtls_test_transparent_hash_compute()
42 alg, input, input_length, in mbedtls_test_transparent_hash_compute()
47 (void) input_length; in mbedtls_test_transparent_hash_compute()
116 size_t input_length) in mbedtls_test_transparent_hash_update() argument
128 operation, input, input_length); in mbedtls_test_transparent_hash_update()
131 mbedtls_psa_hash_update(operation, input, input_length); in mbedtls_test_transparent_hash_update()
135 (void) input_length; in mbedtls_test_transparent_hash_update()
Dtest_driver_mac.c28 size_t input_length, in mbedtls_test_transparent_mac_compute() argument
45 input, input_length, in mbedtls_test_transparent_mac_compute()
51 input, input_length, in mbedtls_test_transparent_mac_compute()
59 (void) input_length; in mbedtls_test_transparent_mac_compute()
147 size_t input_length) in mbedtls_test_transparent_mac_update() argument
159 operation, input, input_length); in mbedtls_test_transparent_mac_update()
163 operation, input, input_length); in mbedtls_test_transparent_mac_update()
167 (void) input_length; in mbedtls_test_transparent_mac_update()
270 size_t input_length, in mbedtls_test_opaque_mac_compute() argument
286 (void) input_length; in mbedtls_test_opaque_mac_compute()
[all …]
Dtest_driver_signature.c182 size_t input_length, in mbedtls_test_transparent_signature_sign_message() argument
212 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_sign_message()
216 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_sign_message()
220 (void) input_length; in mbedtls_test_transparent_signature_sign_message()
238 size_t input_length, in mbedtls_test_opaque_signature_sign_message() argument
248 (void) input_length; in mbedtls_test_opaque_signature_sign_message()
262 size_t input_length, in mbedtls_test_transparent_signature_verify_message() argument
279 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_verify_message()
283 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_verify_message()
287 (void) input_length; in mbedtls_test_transparent_signature_verify_message()
[all …]
Dtest_driver_aead.c273 size_t input_length) in mbedtls_test_transparent_aead_update_ad() argument
284 libtestdriver1_mbedtls_psa_aead_update_ad(operation, input, input_length); in mbedtls_test_transparent_aead_update_ad()
287 mbedtls_psa_aead_update_ad(operation, input, input_length); in mbedtls_test_transparent_aead_update_ad()
291 (void) input_length; in mbedtls_test_transparent_aead_update_ad()
302 size_t input_length, in mbedtls_test_transparent_aead_update() argument
317 input_length, output, in mbedtls_test_transparent_aead_update()
321 mbedtls_psa_aead_update(operation, input, input_length, output, in mbedtls_test_transparent_aead_update()
326 (void) input_length; in mbedtls_test_transparent_aead_update()
Dtest_driver_pake.c108 size_t input_length) in mbedtls_test_transparent_pake_input() argument
122 input, input_length); in mbedtls_test_transparent_pake_input()
126 operation, step, input, input_length); in mbedtls_test_transparent_pake_input()
131 (void) input_length; in mbedtls_test_transparent_pake_input()
/mbedtls-3.6.0/tests/include/test/drivers/
Dcipher.h45 const uint8_t *input, size_t input_length,
52 const uint8_t *input, size_t input_length,
76 const uint8_t *input, size_t input_length,
91 const uint8_t *input, size_t input_length,
98 const uint8_t *input, size_t input_length,
122 const uint8_t *input, size_t input_length,
Dasymmetric_encryption.h45 size_t input_length, const uint8_t *salt, size_t salt_length,
51 size_t input_length, const uint8_t *salt, size_t salt_length,
57 size_t input_length, const uint8_t *salt, size_t salt_length,
63 size_t input_length, const uint8_t *salt, size_t salt_length,
Dmac.h42 size_t input_length,
64 size_t input_length);
86 size_t input_length,
108 size_t input_length);
Dsignature.h47 size_t input_length,
58 size_t input_length,
69 size_t input_length,
79 size_t input_length,
/mbedtls-3.6.0/scripts/data_files/driver_templates/
Dpsa_crypto_driver_wrappers.h.jinja118 size_t input_length,
140 input_length,
161 input_length,
181 input_length,
193 size_t input_length,
214 input_length,
234 input_length,
253 input_length,
1014 size_t input_length,
1037 input_length,
[all …]

12