1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
5 * ARM CryptoCell Cipher Crypto API
8 #ifndef __CC_CIPHER_H__
9 #define __CC_CIPHER_H__
11 #include <linux/kernel.h>
12 #include <crypto/algapi.h>
13 #include "cc_driver.h"
14 #include "cc_buffer_mgr.h"
16 struct cipher_req_ctx
{
17 struct async_gen_req_ctx gen_ctx
;
18 enum cc_req_dma_buf_type dma_buf_type
;
24 struct mlli_params mlli_params
;
27 int cc_cipher_alloc(struct cc_drvdata
*drvdata
);
29 int cc_cipher_free(struct cc_drvdata
*drvdata
);
37 #define CC_HW_KEY_SIZE sizeof(struct cc_hkey_info)
39 #endif /*__CC_CIPHER_H__*/