git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/ice: refactor input set config
[dpdk.git]
/
drivers
/
crypto
/
virtio
/
virtio_cryptodev.h
diff --git
a/drivers/crypto/virtio/virtio_cryptodev.h
b/drivers/crypto/virtio/virtio_cryptodev.h
index
5eaa6f1
..
215bce7
100644
(file)
--- a/
drivers/crypto/virtio/virtio_cryptodev.h
+++ b/
drivers/crypto/virtio/virtio_cryptodev.h
@@
-16,6
+16,12
@@
#define NUM_ENTRY_VIRTIO_CRYPTO_OP 7
#define NUM_ENTRY_VIRTIO_CRYPTO_OP 7
+#define VIRTIO_CRYPTO_MAX_IV_SIZE 16
+
+#define VIRTIO_CRYPTO_MAX_KEY_SIZE 256
+
+extern uint8_t cryptodev_virtio_driver_id;
+
enum virtio_crypto_cmd_id {
VIRTIO_CRYPTO_CMD_CIPHER = 0,
VIRTIO_CRYPTO_CMD_AUTH = 1,
enum virtio_crypto_cmd_id {
VIRTIO_CRYPTO_CMD_CIPHER = 0,
VIRTIO_CRYPTO_CMD_AUTH = 1,
@@
-27,6
+33,7
@@
struct virtio_crypto_op_cookie {
struct virtio_crypto_op_data_req data_req;
struct virtio_crypto_inhdr inhdr;
struct vring_desc desc[NUM_ENTRY_VIRTIO_CRYPTO_OP];
struct virtio_crypto_op_data_req data_req;
struct virtio_crypto_inhdr inhdr;
struct vring_desc desc[NUM_ENTRY_VIRTIO_CRYPTO_OP];
+ uint8_t iv[VIRTIO_CRYPTO_MAX_IV_SIZE];
};
/*
};
/*