Lines Matching refs:alg
67 const mbedtls_md_info_t *mbedtls_md_info_from_psa( psa_algorithm_t alg ) in mbedtls_md_info_from_psa() argument
69 switch( alg ) in mbedtls_md_info_from_psa()
114 switch( operation->alg ) in hash_abort()
159 operation->alg = 0; in hash_abort()
165 psa_algorithm_t alg ) in hash_setup() argument
170 if( operation->alg != 0 ) in hash_setup()
175 switch( alg ) in hash_setup()
220 return( PSA_ALG_IS_HASH( alg ) ? in hash_setup()
225 operation->alg = alg; in hash_setup()
235 switch( source_operation->alg ) in hash_clone()
287 target_operation->alg = source_operation->alg; in hash_clone()
298 switch( operation->alg ) in hash_update()
359 size_t actual_hash_length = PSA_HASH_LENGTH( operation->alg ); in hash_finish()
376 switch( operation->alg ) in hash_finish()
426 psa_algorithm_t alg, in hash_compute() argument
438 status = hash_setup( &operation, alg ); in hash_compute()
460 psa_algorithm_t alg, in mbedtls_psa_hash_compute() argument
467 return( hash_compute( alg, input, input_length, in mbedtls_psa_hash_compute()
473 psa_algorithm_t alg ) in mbedtls_psa_hash_setup() argument
475 return( hash_setup( operation, alg ) ); in mbedtls_psa_hash_setup()
514 static int is_hash_accelerated( psa_algorithm_t alg ) in is_hash_accelerated() argument
516 switch( alg ) in is_hash_accelerated()
552 psa_algorithm_t alg, in mbedtls_transparent_test_driver_hash_compute() argument
559 if( is_hash_accelerated( alg ) ) in mbedtls_transparent_test_driver_hash_compute()
560 return( hash_compute( alg, input, input_length, in mbedtls_transparent_test_driver_hash_compute()
568 psa_algorithm_t alg ) in mbedtls_transparent_test_driver_hash_setup() argument
570 if( is_hash_accelerated( alg ) ) in mbedtls_transparent_test_driver_hash_setup()
571 return( hash_setup( operation, alg ) ); in mbedtls_transparent_test_driver_hash_setup()
580 if( is_hash_accelerated( source_operation->alg ) ) in mbedtls_transparent_test_driver_hash_clone()
591 if( is_hash_accelerated( operation->alg ) ) in mbedtls_transparent_test_driver_hash_update()
603 if( is_hash_accelerated( operation->alg ) ) in mbedtls_transparent_test_driver_hash_finish()