Lines Matching refs:alg
59 psa_algorithm_t alg, in mbedtls_cipher_info_from_psa() argument
67 if( PSA_ALG_IS_AEAD( alg ) ) in mbedtls_cipher_info_from_psa()
68 alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg, 0 ); in mbedtls_cipher_info_from_psa()
70 if( PSA_ALG_IS_CIPHER( alg ) || PSA_ALG_IS_AEAD( alg ) ) in mbedtls_cipher_info_from_psa()
72 switch( alg ) in mbedtls_cipher_info_from_psa()
111 else if( alg == PSA_ALG_CMAC ) in mbedtls_cipher_info_from_psa()
159 psa_algorithm_t alg, in cipher_setup() argument
171 operation->alg = alg; in cipher_setup()
173 cipher_info = mbedtls_cipher_info_from_psa( alg, key_type, in cipher_setup()
204 switch( alg ) in cipher_setup()
223 operation->block_length = ( PSA_ALG_IS_STREAM_CIPHER( alg ) ? 1 : in cipher_setup()
225 operation->iv_length = PSA_CIPHER_IV_LENGTH( key_type, alg ); in cipher_setup()
235 psa_algorithm_t alg ) in cipher_encrypt_setup() argument
239 alg, MBEDTLS_ENCRYPT ) ); in cipher_encrypt_setup()
246 psa_algorithm_t alg ) in cipher_decrypt_setup() argument
250 alg, MBEDTLS_DECRYPT ) ); in cipher_decrypt_setup()
378 if( ! PSA_ALG_IS_STREAM_CIPHER( operation->alg ) ) in cipher_update()
396 if( operation->alg == PSA_ALG_ECB_NO_PADDING ) in cipher_update()
430 if( operation->alg == PSA_ALG_ECB_NO_PADDING || in cipher_finish()
431 operation->alg == PSA_ALG_CBC_NO_PADDING ) in cipher_finish()
463 if( ! PSA_ALG_IS_CIPHER( operation->alg ) ) in cipher_abort()
474 psa_algorithm_t alg, in cipher_encrypt() argument
486 key_buffer, key_buffer_size, alg ); in cipher_encrypt()
527 psa_algorithm_t alg, in cipher_decrypt() argument
539 key_buffer, key_buffer_size, alg ); in cipher_decrypt()
579 psa_algorithm_t alg ) in mbedtls_psa_cipher_encrypt_setup() argument
582 operation, attributes, key_buffer, key_buffer_size, alg ) ); in mbedtls_psa_cipher_encrypt_setup()
589 psa_algorithm_t alg ) in mbedtls_psa_cipher_decrypt_setup() argument
592 operation, attributes, key_buffer, key_buffer_size, alg ) ); in mbedtls_psa_cipher_decrypt_setup()
629 psa_algorithm_t alg, in mbedtls_psa_cipher_encrypt() argument
637 alg, input, input_length, in mbedtls_psa_cipher_encrypt()
644 psa_algorithm_t alg, in mbedtls_psa_cipher_decrypt() argument
652 alg, input, input_length, in mbedtls_psa_cipher_decrypt()
666 psa_algorithm_t alg ) in mbedtls_transparent_test_driver_cipher_encrypt_setup() argument
669 operation, attributes, key_buffer, key_buffer_size, alg ) ); in mbedtls_transparent_test_driver_cipher_encrypt_setup()
676 psa_algorithm_t alg ) in mbedtls_transparent_test_driver_cipher_decrypt_setup() argument
679 operation, attributes, key_buffer, key_buffer_size, alg ) ); in mbedtls_transparent_test_driver_cipher_decrypt_setup()
715 psa_algorithm_t alg, in mbedtls_transparent_test_driver_cipher_encrypt() argument
723 alg, input, input_length, in mbedtls_transparent_test_driver_cipher_encrypt()
731 psa_algorithm_t alg, in mbedtls_transparent_test_driver_cipher_decrypt() argument
739 alg, input, input_length, in mbedtls_transparent_test_driver_cipher_decrypt()