| [in] | attributes | Attributes of the key to use |
| [in] | key_buffer | Key material buffer |
| [in] | key_buffer_size | Size in bytes of the key |
| [in] | alg | Algorithm to use |
| [in] | nonce | Nonce buffer |
| [in] | nonce_length | Size in bytes of the nonce |
| [in] | additional_data | Data to authenticate buffer |
| [in] | additional_data_length | Size in bytes of additional_data |
| [in] | plaintext | Data to encrypt buffer |
| [in] | plaintext_length | Size in bytes of the data to encrypt |
| [out] | ciphertext | Buffer to hold the encrypted data |
| [in] | ciphertext_size | Size in bytes of the ciphertext buffer |
| [out] | ciphertext_length | Size in bytes of the encrypted data |