Lines Matching refs:alg
85 psa_algorithm_t alg, in cipher_encrypt() argument
100 status = psa_cipher_encrypt_setup(&operation, key, alg); in cipher_encrypt()
116 psa_algorithm_t alg, in cipher_decrypt() argument
130 status = psa_cipher_decrypt_setup(&operation, key, alg); in cipher_decrypt()
153 const psa_algorithm_t alg = PSA_ALG_CBC_NO_PADDING; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local
169 psa_set_key_algorithm(&attributes, alg); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
176 status = cipher_encrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
181 status = cipher_decrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
203 const psa_algorithm_t alg = PSA_ALG_CBC_PKCS7; in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local
217 psa_set_key_algorithm(&attributes, alg); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
224 status = cipher_encrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
229 status = cipher_decrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
250 const psa_algorithm_t alg = PSA_ALG_CTR; in cipher_example_encrypt_decrypt_aes_ctr_multi() local
264 psa_set_key_algorithm(&attributes, alg); in cipher_example_encrypt_decrypt_aes_ctr_multi()
271 status = cipher_encrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_ctr_multi()
276 status = cipher_decrypt(key, alg, iv, sizeof(iv), in cipher_example_encrypt_decrypt_aes_ctr_multi()