cryptodev: remove AAD size in auth capabilities
[dpdk.git] / drivers / crypto / qat / qat_crypto_capabilities.h
index fbd0c12..16b2c11 100644 (file)
@@ -52,7 +52,7 @@
                                        .max = 20,                      \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = { 0 }                       \
+                               .iv_size = { 0 }                        \
                        }, }                                            \
                }, }                                                    \
        },                                                              \
@@ -73,7 +73,7 @@
                                        .max = 28,                      \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = { 0 }                       \
+                               .iv_size = { 0 }                        \
                        }, }                                            \
                }, }                                                    \
        },                                                              \
@@ -94,7 +94,7 @@
                                        .max = 32,                      \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = { 0 }                       \
+                               .iv_size = { 0 }                        \
                        }, }                                            \
                }, }                                                    \
        },                                                              \
                                        .min = 48,                      \
                                        .max = 48,                      \
                                        .increment = 0                  \
-                                       },                              \
-                               .aad_size = { 0 }                       \
+                               },                                      \
+                               .iv_size = { 0 }                        \
                        }, }                                            \
                }, }                                                    \
        },                                                              \
                                        .max = 64,                      \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = { 0 }                       \
+                               .iv_size = { 0 }                        \
                        }, }                                            \
                }, }                                                    \
        },                                                              \
                                        .max = 16,                      \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = { 0 }                       \
+                               .iv_size = { 0 }                        \
                        }, }                                            \
                }, }                                                    \
        },                                                              \
                                        .max = 16,                      \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = { 0 }                       \
+                               .aad_size = { 0 },                      \
+                               .iv_size = { 0 }                        \
                        }, }                                            \
                }, }                                                    \
        },                                                              \
-       {       /* AES GCM (AUTH) */                                    \
+       {       /* AES GCM */                                           \
                .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,                     \
                {.sym = {                                               \
-                       .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH,        \
-                       {.auth = {                                      \
-                               .algo = RTE_CRYPTO_AUTH_AES_GCM,        \
+                       .xform_type = RTE_CRYPTO_SYM_XFORM_AEAD,        \
+                       {.aead = {                                      \
+                               .algo = RTE_CRYPTO_AEAD_AES_GCM,        \
                                .block_size = 16,                       \
                                .key_size = {                           \
                                        .min = 16,                      \
                                        .increment = 4                  \
                                },                                      \
                                .aad_size = {                           \
-                                       .min = 8,                       \
+                                       .min = 0,                       \
+                                       .max = 240,                     \
+                                       .increment = 1                  \
+                               },                                      \
+                               .iv_size = {                            \
+                                       .min = 12,                      \
                                        .max = 12,                      \
-                                       .increment = 4                  \
-                               }                                       \
+                                       .increment = 0                  \
+                               },                                      \
                        }, }                                            \
                }, }                                                    \
        },                                                              \
                                        .max = 16,                      \
                                        .increment = 4                  \
                                },                                      \
-                               .aad_size = {                           \
-                                       .min = 1                      \
-                                       .max = 65535,                   \
-                                       .increment = 1                  \
+                               .iv_size = {                            \
+                                       .min = 12,                      \
+                                       .max = 12,                      \
+                                       .increment = 0                  \
                                }                                       \
                        }, }                                            \
                }, }                                                    \
                                        .max = 4,                       \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = {                           \
+                               .iv_size = {                            \
                                        .min = 16,                      \
                                        .max = 16,                      \
                                        .increment = 0                  \
                        }, }                                            \
                }, }                                                    \
        },                                                              \
-       {       /* AES GCM (CIPHER) */                                  \
-               .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,                     \
-               {.sym = {                                               \
-                       .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER,      \
-                       {.cipher = {                                    \
-                               .algo = RTE_CRYPTO_CIPHER_AES_GCM,      \
-                               .block_size = 16,                       \
-                               .key_size = {                           \
-                                       .min = 16,                      \
-                                       .max = 32,                      \
-                                       .increment = 8                  \
-                               },                                      \
-                               .iv_size = {                            \
-                                       .min = 12,                      \
-                                       .max = 12,                      \
-                                       .increment = 0                  \
-                               }                                       \
-                       }, }                                            \
-               }, }                                                    \
-       },                                                              \
        {       /* AES CBC */                                           \
                .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,                     \
                {.sym = {                                               \
                                        .max = 0,                       \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = { 0 }                       \
+                               .iv_size = { 0 }                        \
                        }, },                                           \
                }, },                                                   \
        },                                                              \
                                        .max = 4,                       \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = {                           \
+                               .iv_size = {                            \
                                        .min = 8,                       \
                                        .max = 8,                       \
                                        .increment = 0                  \
                                        .max = 4,                       \
                                        .increment = 0                  \
                                },                                      \
-                               .aad_size = {                           \
+                               .iv_size = {                            \
                                        .min = 16,                      \
                                        .max = 16,                      \
                                        .increment = 0                  \