| [in] | attributes | Key attributes |
| [in] | key_buffer | Buffer holding key material |
| [in] | key_buffer_size | Size in bytes of the key |
| [in] | alg | Algorithm to be used for which PSA_ALG_IS_CIPHER(alg) is true |
| [in] | iv | Buffer holding the initialization vector |
| [in] | iv_length | Size in bytes of the initialization vector |
| [in] | input | Buffer holding the plaintext |
| [in] | input_length | Size in bytes of the plaintext |
| [out] | output | Buffer holding the ciphertext |
| [in] | output_size | Size in bytes of the output buffer |
| [out] | output_length | Size in bytes of the encrypted data |