Lines Matching refs:alg
35 psa_algorithm_t alg, in mbedtls_cipher_info_from_psa() argument
43 if( PSA_ALG_IS_AEAD( alg ) ) in mbedtls_cipher_info_from_psa()
44 alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG( alg, 0 ); in mbedtls_cipher_info_from_psa()
46 if( PSA_ALG_IS_CIPHER( alg ) || PSA_ALG_IS_AEAD( alg ) ) in mbedtls_cipher_info_from_psa()
48 switch( alg ) in mbedtls_cipher_info_from_psa()
87 else if( alg == PSA_ALG_CMAC ) in mbedtls_cipher_info_from_psa()
135 psa_algorithm_t alg, in psa_cipher_setup() argument
147 operation->alg = alg; in psa_cipher_setup()
149 cipher_info = mbedtls_cipher_info_from_psa( alg, key_type, in psa_cipher_setup()
180 switch( alg ) in psa_cipher_setup()
200 operation->block_length = ( PSA_ALG_IS_STREAM_CIPHER( alg ) ? 1 : in psa_cipher_setup()
202 operation->iv_length = PSA_CIPHER_IV_LENGTH( key_type, alg ); in psa_cipher_setup()
212 psa_algorithm_t alg ) in mbedtls_psa_cipher_encrypt_setup() argument
216 alg, MBEDTLS_ENCRYPT ) ); in mbedtls_psa_cipher_encrypt_setup()
223 psa_algorithm_t alg ) in mbedtls_psa_cipher_decrypt_setup() argument
227 alg, MBEDTLS_DECRYPT ) ); in mbedtls_psa_cipher_decrypt_setup()
354 if( ! PSA_ALG_IS_STREAM_CIPHER( operation->alg ) ) in mbedtls_psa_cipher_update()
372 if( operation->alg == PSA_ALG_ECB_NO_PADDING ) in mbedtls_psa_cipher_update()
405 if( operation->alg == PSA_ALG_ECB_NO_PADDING || in mbedtls_psa_cipher_finish()
406 operation->alg == PSA_ALG_CBC_NO_PADDING ) in mbedtls_psa_cipher_finish()
439 if( ! PSA_ALG_IS_CIPHER( operation->alg ) ) in mbedtls_psa_cipher_abort()
451 psa_algorithm_t alg, in mbedtls_psa_cipher_encrypt() argument
466 alg ); in mbedtls_psa_cipher_encrypt()
505 psa_algorithm_t alg, in mbedtls_psa_cipher_decrypt() argument
518 alg ); in mbedtls_psa_cipher_decrypt()