Fix aad capabilities for AES-GCM authtentication, aad is changed
from range 8-12 to 0-240

Fixes: 1703e94ac5ce ("qat: add driver for QuickAssist devices")

Signed-off-by: Arek Kusztal <arkadiuszx.kusz...@intel.com>
---
 drivers/crypto/qat/qat_crypto_capabilities.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/crypto/qat/qat_crypto_capabilities.h 
b/drivers/crypto/qat/qat_crypto_capabilities.h
index fbd0c12..1294f24 100644
--- a/drivers/crypto/qat/qat_crypto_capabilities.h
+++ b/drivers/crypto/qat/qat_crypto_capabilities.h
@@ -200,9 +200,9 @@
                                        .increment = 4                  \
                                },                                      \
                                .aad_size = {                           \
-                                       .min = 8,                       \
-                                       .max = 12,                      \
-                                       .increment = 4                  \
+                                       .min = 0,                       \
+                                       .max = 240,                     \
+                                       .increment = 1                  \
                                }                                       \
                        }, }                                            \
                }, }                                                    \
-- 
2.1.0

Reply via email to