Home
last modified time | relevance | path

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

12

/openthread-3.7.0/third_party/mbedtls/repo/tests/src/drivers/
Dtest_driver_asymmetric_encryption.c31 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_transparent_asymmetric_encrypt() argument
57 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_encrypt()
62 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_encrypt()
72 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_transparent_asymmetric_decrypt() argument
98 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_decrypt()
103 alg, input, input_length, salt, salt_length, in mbedtls_test_transparent_asymmetric_decrypt()
116 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_opaque_asymmetric_encrypt() argument
135 alg, input, input_length, salt, salt_length, in mbedtls_test_opaque_asymmetric_encrypt()
140 alg, input, input_length, salt, salt_length, in mbedtls_test_opaque_asymmetric_encrypt()
150 size_t input_length, const uint8_t *salt, size_t salt_length, in mbedtls_test_opaque_asymmetric_decrypt() argument
[all …]
Dtest_driver_cipher.c38 size_t input_length, in mbedtls_test_transparent_cipher_encrypt() argument
71 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
76 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt()
89 size_t input_length, in mbedtls_test_transparent_cipher_decrypt() argument
118 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt()
123 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt()
238 size_t input_length, in mbedtls_test_transparent_cipher_update() argument
265 operation, input, input_length, in mbedtls_test_transparent_cipher_update()
269 operation, input, input_length, in mbedtls_test_transparent_cipher_update()
321 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.c181 size_t input_length, in mbedtls_test_transparent_signature_sign_message() argument
211 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_sign_message()
215 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_sign_message()
219 (void) input_length; in mbedtls_test_transparent_signature_sign_message()
237 size_t input_length, in mbedtls_test_opaque_signature_sign_message() argument
247 (void) input_length; in mbedtls_test_opaque_signature_sign_message()
261 size_t input_length, in mbedtls_test_transparent_signature_verify_message() argument
278 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_verify_message()
282 PSA_ALG_SIGN_GET_HASH(alg), input, input_length, in mbedtls_test_transparent_signature_verify_message()
286 (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()
/openthread-3.7.0/third_party/mbedtls/repo/include/psa/
Dcrypto_sizes.h517 #define PSA_AEAD_UPDATE_OUTPUT_SIZE(key_type, alg, input_length) \ argument
520 PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_LENGTH(key_type), (input_length)) : \
521 (input_length) : \
534 #define PSA_AEAD_UPDATE_OUTPUT_MAX_SIZE(input_length) \ argument
535 (PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE, (input_length)))
1154 #define PSA_CIPHER_ENCRYPT_OUTPUT_SIZE(key_type, alg, input_length) \ argument
1158 (input_length) + 1u) + \
1161 (input_length) + PSA_CIPHER_IV_LENGTH((key_type), (alg)) : \
1175 #define PSA_CIPHER_ENCRYPT_OUTPUT_MAX_SIZE(input_length) \ argument
1177 (input_length) + 1u) + \
[all …]
Dcrypto.h862 size_t input_length,
897 size_t input_length,
1017 size_t input_length);
1214 size_t input_length,
1255 size_t input_length,
1452 size_t input_length);
1621 size_t input_length,
1668 size_t input_length,
1957 size_t input_length,
2537 size_t input_length);
[all …]
/openthread-3.7.0/third_party/mbedtls/repo/library/
Dpsa_crypto_driver_wrappers.h117 size_t input_length, in psa_driver_wrapper_sign_message() argument
139 input_length, in psa_driver_wrapper_sign_message()
160 input_length, in psa_driver_wrapper_sign_message()
180 input_length, in psa_driver_wrapper_sign_message()
192 size_t input_length, in psa_driver_wrapper_verify_message() argument
213 input_length, in psa_driver_wrapper_verify_message()
233 input_length, in psa_driver_wrapper_verify_message()
252 input_length, in psa_driver_wrapper_verify_message()
1077 size_t input_length, in psa_driver_wrapper_cipher_encrypt() argument
1100 input_length, in psa_driver_wrapper_cipher_encrypt()
[all …]
Dpsa_crypto_cipher.c422 size_t input_length, in psa_cipher_update_ecb() argument
431 if (input_length == 0) { in psa_cipher_update_ecb()
440 if (input_length < bytes_to_copy) { in psa_cipher_update_ecb()
441 bytes_to_copy = input_length; in psa_cipher_update_ecb()
446 input_length -= bytes_to_copy; in psa_cipher_update_ecb()
467 while (input_length >= block_size) { in psa_cipher_update_ecb()
478 input_length -= block_size; in psa_cipher_update_ecb()
485 if (input_length > 0) { in psa_cipher_update_ecb()
488 input, input_length); in psa_cipher_update_ecb()
489 ctx->unprocessed_len += input_length; in psa_cipher_update_ecb()
[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.c447 size_t input_length) in mbedtls_psa_aead_update_ad() argument
454 mbedtls_gcm_update_ad(&operation->ctx.gcm, input, input_length)); in mbedtls_psa_aead_update_ad()
460 mbedtls_ccm_update_ad(&operation->ctx.ccm, input, input_length)); in mbedtls_psa_aead_update_ad()
468 input_length)); in mbedtls_psa_aead_update_ad()
474 (void) input_length; in mbedtls_psa_aead_update_ad()
487 size_t input_length, in mbedtls_psa_aead_update() argument
495 update_output_length = input_length; in mbedtls_psa_aead_update()
501 input, input_length, in mbedtls_psa_aead_update()
508 if (output_size < input_length) { in mbedtls_psa_aead_update()
514 input, input_length, in mbedtls_psa_aead_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()
Dgcm.c565 const unsigned char *input, size_t input_length, in mbedtls_gcm_update() argument
575 if (output_size < input_length) { in mbedtls_gcm_update()
578 *output_length = input_length; in mbedtls_gcm_update()
584 if (input_length == 0) { in mbedtls_gcm_update()
588 if (output > input && (size_t) (output - input) < input_length) { in mbedtls_gcm_update()
594 if (ctx->len + input_length < ctx->len || in mbedtls_gcm_update()
595 (uint64_t) ctx->len + input_length > 0xFFFFFFFE0ull) { in mbedtls_gcm_update()
606 if (use_len > input_length) { in mbedtls_gcm_update()
607 use_len = input_length; in mbedtls_gcm_update()
619 input_length -= use_len; in mbedtls_gcm_update()
[all …]
Dpsa_crypto_cipher.h163 const uint8_t *input, size_t input_length,
262 size_t input_length,
311 size_t input_length,
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_hash.h43 size_t input_length,
142 size_t input_length);
Dpsa_crypto_mac.h52 size_t input_length,
155 size_t input_length);
/openthread-3.7.0/third_party/mbedtls/repo/tests/include/test/drivers/
Dcipher.h51 const uint8_t *input, size_t input_length,
58 const uint8_t *input, size_t input_length,
82 const uint8_t *input, size_t input_length,
97 const uint8_t *input, size_t input_length,
104 const uint8_t *input, size_t input_length,
128 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,
Dhash.h38 const uint8_t *input, size_t input_length,
52 size_t input_length);
/openthread-3.7.0/third_party/mbedtls/repo/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,
1040 size_t input_length,
1063 input_length,
[all …]

12