4 * Copyright(c) 2017 Intel Corporation. All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
11 * * Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in
15 * the documentation and/or other materials provided with the
17 * * Neither the name of Intel Corporation nor the names of its
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 #ifndef _QAT_CRYPTO_CAPABILITIES_H_
35 #define _QAT_CRYPTO_CAPABILITIES_H_
37 #define QAT_BASE_GEN1_SYM_CAPABILITIES \
39 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
41 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
43 .algo = RTE_CRYPTO_AUTH_SHA1_HMAC, \
60 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
62 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
64 .algo = RTE_CRYPTO_AUTH_SHA224_HMAC, \
81 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
83 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
85 .algo = RTE_CRYPTO_AUTH_SHA256_HMAC, \
101 { /* SHA384 HMAC */ \
102 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
104 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
106 .algo = RTE_CRYPTO_AUTH_SHA384_HMAC, \
122 { /* SHA512 HMAC */ \
123 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
125 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
127 .algo = RTE_CRYPTO_AUTH_SHA512_HMAC, \
144 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
146 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
148 .algo = RTE_CRYPTO_AUTH_MD5_HMAC, \
164 { /* AES XCBC MAC */ \
165 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
167 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
169 .algo = RTE_CRYPTO_AUTH_AES_XCBC_MAC, \
187 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
189 .xform_type = RTE_CRYPTO_SYM_XFORM_AEAD, \
191 .algo = RTE_CRYPTO_AEAD_AES_CCM, \
217 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
219 .xform_type = RTE_CRYPTO_SYM_XFORM_AEAD, \
221 .algo = RTE_CRYPTO_AEAD_AES_GCM, \
246 { /* AES GMAC (AUTH) */ \
247 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
249 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
251 .algo = RTE_CRYPTO_AUTH_AES_GMAC, \
271 { /* SNOW 3G (UIA2) */ \
272 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
274 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
276 .algo = RTE_CRYPTO_AUTH_SNOW3G_UIA2, \
297 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
299 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
301 .algo = RTE_CRYPTO_CIPHER_AES_CBC, \
316 { /* AES DOCSIS BPI */ \
317 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
319 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
321 .algo = RTE_CRYPTO_CIPHER_AES_DOCSISBPI,\
336 { /* SNOW 3G (UEA2) */ \
337 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
339 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
341 .algo = RTE_CRYPTO_CIPHER_SNOW3G_UEA2, \
357 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
359 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
361 .algo = RTE_CRYPTO_CIPHER_AES_CTR, \
376 { /* NULL (AUTH) */ \
377 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
379 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
381 .algo = RTE_CRYPTO_AUTH_NULL, \
397 { /* NULL (CIPHER) */ \
398 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
400 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
402 .algo = RTE_CRYPTO_CIPHER_NULL, \
417 { /* KASUMI (F8) */ \
418 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
420 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
422 .algo = RTE_CRYPTO_CIPHER_KASUMI_F8, \
437 { /* KASUMI (F9) */ \
438 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
440 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
442 .algo = RTE_CRYPTO_AUTH_KASUMI_F9, \
459 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
461 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
463 .algo = RTE_CRYPTO_CIPHER_3DES_CBC, \
479 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
481 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
483 .algo = RTE_CRYPTO_CIPHER_3DES_CTR, \
499 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
501 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
503 .algo = RTE_CRYPTO_CIPHER_DES_CBC, \
518 { /* DES DOCSISBPI */ \
519 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
521 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
523 .algo = RTE_CRYPTO_CIPHER_DES_DOCSISBPI,\
539 #define QAT_EXTRA_GEN2_SYM_CAPABILITIES \
541 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
543 .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, \
545 .algo = RTE_CRYPTO_CIPHER_ZUC_EEA3, \
561 .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, \
563 .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, \
565 .algo = RTE_CRYPTO_AUTH_ZUC_EIA3, \
586 #endif /* _QAT_CRYPTO_CAPABILITIES_H_ */