xref: /dpdk/drivers/crypto/virtio/virtio_crypto_algs.h (revision b7fa78c7d3b0d74c777fb2d7285c0075441423f1)
1*b7fa78c7SJay Zhou /* SPDX-License-Identifier: BSD-3-Clause
2*b7fa78c7SJay Zhou  * Copyright(c) 2018 HUAWEI TECHNOLOGIES CO., LTD.
3*b7fa78c7SJay Zhou  */
4*b7fa78c7SJay Zhou 
5*b7fa78c7SJay Zhou #ifndef _VIRTIO_CRYPTO_ALGS_H_
6*b7fa78c7SJay Zhou #define _VIRTIO_CRYPTO_ALGS_H_
7*b7fa78c7SJay Zhou 
8*b7fa78c7SJay Zhou #include <rte_memory.h>
9*b7fa78c7SJay Zhou 
10*b7fa78c7SJay Zhou #include "virtio_crypto.h"
11*b7fa78c7SJay Zhou 
12*b7fa78c7SJay Zhou struct virtio_crypto_session {
13*b7fa78c7SJay Zhou 	uint64_t session_id;
14*b7fa78c7SJay Zhou 
15*b7fa78c7SJay Zhou 	struct {
16*b7fa78c7SJay Zhou 		uint16_t offset;
17*b7fa78c7SJay Zhou 		uint16_t length;
18*b7fa78c7SJay Zhou 	} iv;
19*b7fa78c7SJay Zhou 
20*b7fa78c7SJay Zhou 	struct {
21*b7fa78c7SJay Zhou 		uint32_t length;
22*b7fa78c7SJay Zhou 		phys_addr_t phys_addr;
23*b7fa78c7SJay Zhou 	} aad;
24*b7fa78c7SJay Zhou 
25*b7fa78c7SJay Zhou 	struct virtio_crypto_op_ctrl_req ctrl;
26*b7fa78c7SJay Zhou };
27*b7fa78c7SJay Zhou 
28*b7fa78c7SJay Zhou #endif /* _VIRTIO_CRYPTO_ALGS_H_ */
29