Home
last modified time | relevance | path

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

12

/optee_os/lib/libmbedtls/mbedtls/include/psa/
H A 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)))
1179 #define PSA_CIPHER_ENCRYPT_OUTPUT_SIZE(key_type, alg, input_length) \ argument
1183 (input_length) + 1u) + \
1186 (input_length) + PSA_CIPHER_IV_LENGTH((key_type), (alg)) : \
1200 #define PSA_CIPHER_ENCRYPT_OUTPUT_MAX_SIZE(input_length) \ argument
1202 (input_length) + 1u) + \
[all …]
H A Dcrypto.h840 * \param input_length Size of the \p input buffer in bytes.
865 size_t input_length,
876 * \param input_length Size of the \p input buffer in bytes.
888 * \p input_length or \p hash_length do not match the hash size for \p alg
900 size_t input_length,
1004 * \param input_length Size of the \p input buffer in bytes.
1020 size_t input_length);
1187 * \param input_length Size of the \p input buffer in bytes.
1217 size_t input_length,
1229 * \param input_length Siz
[all...]
H A 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,
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpsa_crypto_cipher.c403 * \param input_length The number of bytes to process from \p input.
408 * at least `BS * floor((p + input_length) / BS)` bytes
420 size_t input_length, in psa_cipher_update_ecb()
429 if (input_length == 0) { in psa_cipher_update_ecb()
438 if (input_length < bytes_to_copy) { in psa_cipher_update_ecb()
439 bytes_to_copy = input_length; in psa_cipher_update_ecb()
444 input_length -= bytes_to_copy; in psa_cipher_update_ecb()
465 while (input_length >= block_size) { in psa_cipher_update_ecb()
476 input_length -= block_size; in psa_cipher_update_ecb()
483 if (input_length > in psa_cipher_update_ecb()
419 psa_cipher_update_ecb(mbedtls_cipher_context_t * ctx,const uint8_t * input,size_t input_length,uint8_t * output,size_t * output_length) psa_cipher_update_ecb() argument
498 mbedtls_psa_cipher_update(mbedtls_psa_cipher_operation_t * operation,const uint8_t * input,size_t input_length,uint8_t * output,size_t output_size,size_t * output_length) mbedtls_psa_cipher_update() argument
609 mbedtls_psa_cipher_encrypt(const psa_key_attributes_t * attributes,const uint8_t * key_buffer,size_t key_buffer_size,psa_algorithm_t alg,const uint8_t * iv,size_t iv_length,const uint8_t * input,size_t input_length,uint8_t * output,size_t output_size,size_t * output_length) mbedtls_psa_cipher_encrypt() argument
665 mbedtls_psa_cipher_decrypt(const psa_key_attributes_t * attributes,const uint8_t * key_buffer,size_t key_buffer_size,psa_algorithm_t alg,const uint8_t * input,size_t input_length,uint8_t * output,size_t output_size,size_t * output_length) mbedtls_psa_cipher_decrypt() argument
[all...]
H A 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()
1076 size_t input_length, in psa_driver_wrapper_cipher_encrypt() argument
1099 input_length, in psa_driver_wrapper_cipher_encrypt()
[all …]
H A 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 …]
H A 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 …]
H A 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()
H A Dpsa_crypto_cipher.h163 const uint8_t *input, size_t input_length,
262 size_t input_length,
311 size_t input_length,
H A Dpsa_crypto_hash.h43 size_t input_length,
142 size_t input_length);
H A Dpsa_crypto_mac.h52 size_t input_length,
155 size_t input_length);
H A 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
485 if (input_length > 0) { in mbedtls_psa_mac_compute()
486 status = mbedtls_psa_mac_update(&operation, input, input_length); in mbedtls_psa_mac_compute()
H A 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 …]
H A Dpsa_crypto_aead.h334 size_t input_length);
394 size_t input_length,
H A Dpsa_crypto_rsa.h256 size_t input_length,
314 size_t input_length,
H A Dpsa_crypto_rsa.c520 size_t input_length, in mbedtls_psa_asymmetric_encrypt() argument
531 (void) input_length; in mbedtls_psa_asymmetric_encrypt()
562 input_length, in mbedtls_psa_asymmetric_encrypt()
582 input_length, in mbedtls_psa_asymmetric_encrypt()
614 size_t input_length, in mbedtls_psa_asymmetric_decrypt() argument
625 (void) input_length; in mbedtls_psa_asymmetric_decrypt()
646 if (input_length != mbedtls_rsa_get_len(rsa)) { in mbedtls_psa_asymmetric_decrypt()
H A Dpsa_crypto.c2424 size_t input_length) in psa_hash_update()
2436 if (input_length == 0) { in psa_hash_update()
2440 LOCAL_INPUT_ALLOC(input_external, input_length, input); in psa_hash_update()
2441 status = psa_driver_wrapper_hash_update(operation, input, input_length); in psa_hash_update()
2527 const uint8_t *input_external, size_t input_length, in psa_hash_compute()
2540 LOCAL_INPUT_ALLOC(input_external, input_length, input); in psa_hash_compute()
2542 status = psa_driver_wrapper_hash_compute(alg, input, input_length, in psa_hash_compute()
2554 const uint8_t *input_external, size_t input_length, in psa_hash_compare()
2569 LOCAL_INPUT_ALLOC(input_external, input_length, input); in psa_hash_compare()
2571 alg, input, input_length, in psa_hash_compare()
2422 psa_hash_update(psa_hash_operation_t * operation,const uint8_t * input_external,size_t input_length) psa_hash_update() argument
2525 psa_hash_compute(psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,uint8_t * hash_external,size_t hash_size,size_t * hash_length) psa_hash_compute() argument
2552 psa_hash_compare(psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,const uint8_t * hash_external,size_t hash_length) psa_hash_compare() argument
2770 psa_mac_update(psa_mac_operation_t * operation,const uint8_t * input_external,size_t input_length) psa_mac_update() argument
2898 psa_mac_compute_internal(mbedtls_svc_key_id_t key,psa_algorithm_t alg,const uint8_t * input,size_t input_length,uint8_t * mac,size_t mac_size,size_t * mac_length,int is_sign) psa_mac_compute_internal() argument
2958 psa_mac_compute(mbedtls_svc_key_id_t key,psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,uint8_t * mac_external,size_t mac_size,size_t * mac_length) psa_mac_compute() argument
2985 psa_mac_verify(mbedtls_svc_key_id_t key,psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,const uint8_t * mac_external,size_t mac_length) psa_mac_verify() argument
3081 psa_sign_internal(mbedtls_svc_key_id_t key,int input_is_message,psa_algorithm_t alg,const uint8_t * input,size_t input_length,uint8_t * signature,size_t signature_size,size_t * signature_length) psa_sign_internal() argument
3147 psa_verify_internal(mbedtls_svc_key_id_t key,int input_is_message,psa_algorithm_t alg,const uint8_t * input,size_t input_length,const uint8_t * signature,size_t signature_length) psa_verify_internal() argument
3194 psa_sign_message_builtin(const psa_key_attributes_t * attributes,const uint8_t * key_buffer,size_t key_buffer_size,psa_algorithm_t alg,const uint8_t * input,size_t input_length,uint8_t * signature,size_t signature_size,size_t * signature_length) psa_sign_message_builtin() argument
3226 psa_sign_message(mbedtls_svc_key_id_t key,psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,uint8_t * signature_external,size_t signature_size,size_t * signature_length) psa_sign_message() argument
3254 psa_verify_message_builtin(const psa_key_attributes_t * attributes,const uint8_t * key_buffer,size_t key_buffer_size,psa_algorithm_t alg,const uint8_t * input,size_t input_length,const uint8_t * signature,size_t signature_length) psa_verify_message_builtin() argument
3285 psa_verify_message(mbedtls_svc_key_id_t key,psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,const uint8_t * signature_external,size_t signature_length) psa_verify_message() argument
3456 psa_asymmetric_encrypt(mbedtls_svc_key_id_t key,psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,const uint8_t * salt_external,size_t salt_length,uint8_t * output_external,size_t output_size,size_t * output_length) psa_asymmetric_encrypt() argument
3515 psa_asymmetric_decrypt(mbedtls_svc_key_id_t key,psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,const uint8_t * salt_external,size_t salt_length,uint8_t * output_external,size_t output_size,size_t * output_length) psa_asymmetric_decrypt() argument
4627 psa_cipher_update(psa_cipher_operation_t * operation,const uint8_t * input_external,size_t input_length,uint8_t * output_external,size_t output_size,size_t * output_length) psa_cipher_update() argument
4728 psa_cipher_encrypt(mbedtls_svc_key_id_t key,psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,uint8_t * output_external,size_t output_size,size_t * output_length) psa_cipher_encrypt() argument
4805 psa_cipher_decrypt(mbedtls_svc_key_id_t key,psa_algorithm_t alg,const uint8_t * input_external,size_t input_length,uint8_t * output_external,size_t output_size,size_t * output_length) psa_cipher_decrypt() argument
5381 psa_aead_update_ad(psa_aead_operation_t * operation,const uint8_t * input_external,size_t input_length) psa_aead_update_ad() argument
5438 psa_aead_update(psa_aead_operation_t * operation,const uint8_t * input_external,size_t input_length,uint8_t * output_external,size_t output_size,size_t * output_length) psa_aead_update() argument
9132 psa_pake_input(psa_pake_operation_t * operation,psa_pake_step_t step,const uint8_t * input_external,size_t input_length) psa_pake_input() argument
[all...]
H A Dpsa_crypto_pake.h115 size_t input_length);
H A Dbignum_mod_raw.c45 size_t input_length, in mbedtls_mpi_mod_raw_read() argument
53 input, input_length); in mbedtls_mpi_mod_raw_read()
57 input, input_length); in mbedtls_mpi_mod_raw_read()
H A Dbignum_core.c207 size_t input_length) in mbedtls_mpi_core_read_le()
209 const size_t limbs = CHARS_TO_LIMBS(input_length); in mbedtls_mpi_core_read_le()
218 for (size_t i = 0; i < input_length; i++) { in mbedtls_mpi_core_read_le()
230 size_t input_length) in mbedtls_mpi_core_read_be()
232 const size_t limbs = CHARS_TO_LIMBS(input_length); in mbedtls_mpi_core_read_be()
238 /* If X_limbs is 0, input_length must also be 0 (from previous test). in mbedtls_mpi_core_read_be()
247 if (input_length != 0) { in mbedtls_mpi_core_read_be()
248 size_t overhead = (X_limbs * ciL) - input_length; in mbedtls_mpi_core_read_be()
250 memcpy(Xp + overhead, input, input_length); in mbedtls_mpi_core_read_be()
206 mbedtls_mpi_core_read_le(mbedtls_mpi_uint * X,size_t X_limbs,const unsigned char * input,size_t input_length) mbedtls_mpi_core_read_le() argument
229 mbedtls_mpi_core_read_be(mbedtls_mpi_uint * X,size_t X_limbs,const unsigned char * input,size_t input_length) mbedtls_mpi_core_read_be() argument
H A Dbignum_core.h235 * \param input_length The length bytes of \p input.
244 size_t input_length);
252 * May only be #NULL if \p X_limbs is 0 and \p input_length
256 * May only be #NULL if \p input_length is 0.
257 * \param input_length The length in bytes of \p input.
266 size_t input_length);
H A Dbignum_mod_raw.h153 size_t input_length,
H A Dpsa_crypto_core.h432 * \param[in] input_length Size of the \p input buffer in bytes.
454 psa_algorithm_t alg, const uint8_t *input, size_t input_length,
475 * \param[in] input_length Size of the \p input buffer in bytes.
491 psa_algorithm_t alg, const uint8_t *input, size_t input_length,
/optee_os/core/drivers/crypto/caam/ae/
H A Dcaam_ae_gcm.c75 size_t input_length = 0; in caam_ae_do_block_gcm() local
119 input_length = src->orig.length; in caam_ae_do_block_gcm()
120 counter_value = processed_blocks + ROUNDUP_DIV(input_length, 16); in caam_ae_do_block_gcm()
129 if ((yi_1s_complement + TEE_AES_BLOCK_SIZE) > input_length) in caam_ae_do_block_gcm()
130 corrupted_block_size = input_length - yi_1s_complement; in caam_ae_do_block_gcm()
133 remaining_len = input_length - (yi_1s_complement + in caam_ae_do_block_gcm()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dgcm.h319 const unsigned char *input, size_t input_length,

12