event/dpaa: support Tx adapter
[dpdk.git] / drivers / crypto / virtio / virtio_crypto_capabilities.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2018 HUAWEI TECHNOLOGIES CO., LTD.
3  */
4
5 #ifndef _VIRTIO_CRYPTO_CAPABILITIES_H_
6 #define _VIRTIO_CRYPTO_CAPABILITIES_H_
7
8 #define VIRTIO_SYM_CAPABILITIES                                 \
9         {       /* SHA1 HMAC */                                         \
10                 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,                     \
11                 {.sym = {                                               \
12                         .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH,        \
13                         {.auth = {                                      \
14                                 .algo = RTE_CRYPTO_AUTH_SHA1_HMAC,      \
15                                 .block_size = 64,                       \
16                                 .key_size = {                           \
17                                         .min = 1,                       \
18                                         .max = 64,                      \
19                                         .increment = 1                  \
20                                 },                                      \
21                                 .digest_size = {                        \
22                                         .min = 1,                       \
23                                         .max = 20,                      \
24                                         .increment = 1                  \
25                                 },                                      \
26                                 .iv_size = { 0 }                        \
27                         }, }                                            \
28                 }, }                                                    \
29         },                                                              \
30         {       /* AES CBC */                                           \
31                 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,                     \
32                 {.sym = {                                               \
33                         .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER,      \
34                         {.cipher = {                                    \
35                                 .algo = RTE_CRYPTO_CIPHER_AES_CBC,      \
36                                 .block_size = 16,                       \
37                                 .key_size = {                           \
38                                         .min = 16,                      \
39                                         .max = 32,                      \
40                                         .increment = 8                  \
41                                 },                                      \
42                                 .iv_size = {                            \
43                                         .min = 16,                      \
44                                         .max = 16,                      \
45                                         .increment = 0                  \
46                                 }                                       \
47                         }, }                                            \
48                 }, }                                                    \
49         }
50
51 #endif /* _VIRTIO_CRYPTO_CAPABILITIES_H_ */