1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017 Intel Corporation
5 #ifndef _QAT_CRYPTO_CAPABILITIES_H_
6 #define _QAT_CRYPTO_CAPABILITIES_H_
8 #define QAT_BASE_GEN1_SYM_CAPABILITIES \
10 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
12 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
14 .algo = RTE_CRYPTO_AUTH_SHA1_HMAC, \
31 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
33 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
35 .algo = RTE_CRYPTO_AUTH_SHA224_HMAC, \
52 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
54 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
56 .algo = RTE_CRYPTO_AUTH_SHA256_HMAC, \
73 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
75 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
77 .algo = RTE_CRYPTO_AUTH_SHA384_HMAC, \
94 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
96 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
98 .algo = RTE_CRYPTO_AUTH_SHA512_HMAC, \
115 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
117 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
119 .algo = RTE_CRYPTO_AUTH_MD5_HMAC, \
135 { /* AES XCBC MAC */ \
136 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
138 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
140 .algo = RTE_CRYPTO_AUTH_AES_XCBC_MAC, \
158 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
160 .xform_type = RTE_CRYPTO_SYM_XFORM_AEAD, \
162 .algo = RTE_CRYPTO_AEAD_AES_CCM, \
188 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
190 .xform_type = RTE_CRYPTO_SYM_XFORM_AEAD, \
192 .algo = RTE_CRYPTO_AEAD_AES_GCM, \
217 { /* AES GMAC (AUTH) */ \
218 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
220 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
222 .algo = RTE_CRYPTO_AUTH_AES_GMAC, \
242 { /* SNOW 3G (UIA2) */ \
243 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
245 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
247 .algo = RTE_CRYPTO_AUTH_SNOW3G_UIA2, \
268 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
270 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
272 .algo = RTE_CRYPTO_CIPHER_AES_CBC, \
287 { /* AES DOCSIS BPI */ \
288 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
290 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
292 .algo = RTE_CRYPTO_CIPHER_AES_DOCSISBPI,\
307 { /* SNOW 3G (UEA2) */ \
308 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
310 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
312 .algo = RTE_CRYPTO_CIPHER_SNOW3G_UEA2, \
328 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
330 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
332 .algo = RTE_CRYPTO_CIPHER_AES_CTR, \
347 { /* NULL (AUTH) */ \
348 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
350 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
352 .algo = RTE_CRYPTO_AUTH_NULL, \
368 { /* NULL (CIPHER) */ \
369 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
371 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
373 .algo = RTE_CRYPTO_CIPHER_NULL, \
388 { /* KASUMI (F8) */ \
389 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
391 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
393 .algo = RTE_CRYPTO_CIPHER_KASUMI_F8, \
408 { /* KASUMI (F9) */ \
409 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
411 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
413 .algo = RTE_CRYPTO_AUTH_KASUMI_F9, \
430 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
432 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
434 .algo = RTE_CRYPTO_CIPHER_3DES_CBC, \
450 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
452 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
454 .algo = RTE_CRYPTO_CIPHER_3DES_CTR, \
470 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
472 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
474 .algo = RTE_CRYPTO_CIPHER_DES_CBC, \
489 { /* DES DOCSISBPI */ \
490 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
492 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
494 .algo = RTE_CRYPTO_CIPHER_DES_DOCSISBPI,\
510 #define QAT_EXTRA_GEN2_SYM_CAPABILITIES \
512 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
514 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
516 .algo = RTE_CRYPTO_CIPHER_ZUC_EEA3, \
532 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
534 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
536 .algo = RTE_CRYPTO_AUTH_ZUC_EIA3, \
557 #endif /* _QAT_CRYPTO_CAPABILITIES_H_ */