Lines Matching refs:attributes
156 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local
167 psa_set_key_usage_flags(&attributes, in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
169 psa_set_key_algorithm(&attributes, alg); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
170 psa_set_key_type(&attributes, PSA_KEY_TYPE_AES); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
171 psa_set_key_bits(&attributes, key_bits); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
173 status = psa_generate_key(&attributes, &key); in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block()
206 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local
215 psa_set_key_usage_flags(&attributes, in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
217 psa_set_key_algorithm(&attributes, alg); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
218 psa_set_key_type(&attributes, PSA_KEY_TYPE_AES); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
219 psa_set_key_bits(&attributes, key_bits); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
221 status = psa_generate_key(&attributes, &key); in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi()
253 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in cipher_example_encrypt_decrypt_aes_ctr_multi() local
262 psa_set_key_usage_flags(&attributes, in cipher_example_encrypt_decrypt_aes_ctr_multi()
264 psa_set_key_algorithm(&attributes, alg); in cipher_example_encrypt_decrypt_aes_ctr_multi()
265 psa_set_key_type(&attributes, PSA_KEY_TYPE_AES); in cipher_example_encrypt_decrypt_aes_ctr_multi()
266 psa_set_key_bits(&attributes, key_bits); in cipher_example_encrypt_decrypt_aes_ctr_multi()
268 status = psa_generate_key(&attributes, &key); in cipher_example_encrypt_decrypt_aes_ctr_multi()