numam-dpdk/drivers/crypto/virtio/virtio_crypto_algs.h
Jay Zhou b7fa78c7d3 crypto/virtio: support session related ops
This patch implements session related operations, which includes creating
and destroying the session. For now, it only supports the session-oriented
API implementation. The control queue used to create or destroy sessions
for symmetric algorithms.

Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
Reviewed-by: Fan Zhang <roy.fan.zhang@intel.com>
2018-04-23 18:20:10 +01:00

29 lines
466 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 HUAWEI TECHNOLOGIES CO., LTD.
*/
#ifndef _VIRTIO_CRYPTO_ALGS_H_
#define _VIRTIO_CRYPTO_ALGS_H_
#include <rte_memory.h>
#include "virtio_crypto.h"
struct virtio_crypto_session {
uint64_t session_id;
struct {
uint16_t offset;
uint16_t length;
} iv;
struct {
uint32_t length;
phys_addr_t phys_addr;
} aad;
struct virtio_crypto_op_ctrl_req ctrl;
};
#endif /* _VIRTIO_CRYPTO_ALGS_H_ */