New upstream version 17.11-rc3
[deb_dpdk.git] / test / test / test_cryptodev_aead_test_vectors.h
similarity index 92%
rename from test/test/test_cryptodev_gcm_test_vectors.h
rename to test/test/test_cryptodev_aead_test_vectors.h
index 7879c35..e760ef9 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  *
- *   Copyright(c) 2015 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2015-2017 Intel Corporation. All rights reserved.
  *
  *   Redistribution and use in source and binary forms, with or without
  *   modification, are permitted provided that the following conditions
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef TEST_CRYPTODEV_GCM_TEST_VECTORS_H_
-#define TEST_CRYPTODEV_GCM_TEST_VECTORS_H_
+#ifndef TEST_CRYPTODEV_AEAD_TEST_VECTORS_H_
+#define TEST_CRYPTODEV_AEAD_TEST_VECTORS_H_
 
 #define GMAC_LARGE_PLAINTEXT_LENGTH            65344
-#define GCM_MAX_AAD_LENGTH                     65536
+#define MAX_AAD_LENGTH                         65536
 #define GCM_LARGE_AAD_LENGTH                   65296
 
-static uint8_t gcm_aad_zero_text[GCM_MAX_AAD_LENGTH] = { 0 };
+static uint8_t gcm_aad_zero_text[MAX_AAD_LENGTH] = { 0 };
 
-static uint8_t gcm_aad_text[GCM_MAX_AAD_LENGTH] = {
+static uint8_t gcm_aad_text[MAX_AAD_LENGTH] = {
                0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef,
                0xfe, 0xed, 0xfa, 0xce, 0xde, 0xad, 0xbe, 0xef,
                0x00, 0xf1, 0xe2, 0xd3, 0xc4, 0xb5, 0xa6, 0x97,
                0x88, 0x79, 0x6a, 0x5b, 0x4c, 0x3d, 0x2e, 0x1f };
 
+static uint8_t ccm_aad_test_1[8] = {
+               0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07
+};
+
+static uint8_t ccm_aad_test_2[22] = {
+               0x08, 0x40, 0x0F, 0xD2, 0xE1, 0x28, 0xA5, 0x7C,
+               0x50, 0x30, 0xF1, 0x84, 0x44, 0x08, 0xAB, 0xAE,
+               0xA5, 0xB8, 0xFC, 0xBA, 0x00, 0x00
+};
+
+struct aead_test_data {
+       enum rte_crypto_aead_algorithm algo;
 
-struct gcm_test_data {
        struct {
                uint8_t data[64];
                unsigned len;
@@ -101,8 +112,9 @@ struct gmac_test_data {
 
 };
 
-/** AES-128 Test Vectors */
-static const struct gcm_test_data gcm_test_case_1 = {
+/** AES-GCM-128 Test Vectors */
+static const struct aead_test_data gcm_test_case_1 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -138,8 +150,8 @@ static const struct gcm_test_data gcm_test_case_1 = {
        }
 };
 
-/** AES-128 Test Vectors */
-static const struct gcm_test_data gcm_test_case_2 = {
+static const struct aead_test_data gcm_test_case_2 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -176,8 +188,8 @@ static const struct gcm_test_data gcm_test_case_2 = {
        }
 };
 
-/** AES-128 Test Vectors */
-static const struct gcm_test_data gcm_test_case_3 = {
+static const struct aead_test_data gcm_test_case_3 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -227,8 +239,8 @@ static const struct gcm_test_data gcm_test_case_3 = {
        }
 };
 
-/** AES-128 Test Vectors */
-static const struct gcm_test_data gcm_test_case_4 = {
+static const struct aead_test_data gcm_test_case_4 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -282,8 +294,8 @@ static const struct gcm_test_data gcm_test_case_4 = {
 
 };
 
-/** AES-128 Test Vectors */
-static const struct gcm_test_data gcm_test_case_5 = {
+static const struct aead_test_data gcm_test_case_5 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -337,8 +349,8 @@ static const struct gcm_test_data gcm_test_case_5 = {
 
 };
 
-/** AES-128 Test Vectors */
-static const struct gcm_test_data gcm_test_case_6 = {
+static const struct aead_test_data gcm_test_case_6 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -392,8 +404,8 @@ static const struct gcm_test_data gcm_test_case_6 = {
        }
 };
 
-/** AES-128 Test Vectors */
-static const struct gcm_test_data gcm_test_case_7 = {
+static const struct aead_test_data gcm_test_case_7 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -447,7 +459,8 @@ static const struct gcm_test_data gcm_test_case_7 = {
        }
 };
 
-static const struct gcm_test_data gcm_test_case_8 = {
+static const struct aead_test_data gcm_test_case_8 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -997,8 +1010,9 @@ static const struct gcm_test_data gcm_test_case_8 = {
        }
 };
 
-/** AES-192 Test Vectors */
-static const struct gcm_test_data gcm_test_case_192_1 = {
+/** AES-GCM-192 Test Vectors */
+static const struct aead_test_data gcm_test_case_192_1 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -1035,7 +1049,8 @@ static const struct gcm_test_data gcm_test_case_192_1 = {
        }
 };
 
-static const struct gcm_test_data gcm_test_case_192_2 = {
+static const struct aead_test_data gcm_test_case_192_2 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -1079,7 +1094,8 @@ static const struct gcm_test_data gcm_test_case_192_2 = {
        }
 };
 
-static const struct gcm_test_data gcm_test_case_192_3 = {
+static const struct aead_test_data gcm_test_case_192_3 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xFE, 0xFF, 0xE9, 0x92, 0x86, 0x65, 0x73, 0x1C,
@@ -1134,7 +1150,8 @@ static const struct gcm_test_data gcm_test_case_192_3 = {
        }
 };
 
-static const struct gcm_test_data gcm_test_case_192_4 = {
+static const struct aead_test_data gcm_test_case_192_4 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xFE, 0xFF, 0xE9, 0x92, 0x86, 0x65, 0x73, 0x1C,
@@ -1189,7 +1206,8 @@ static const struct gcm_test_data gcm_test_case_192_4 = {
        }
 };
 
-static const struct gcm_test_data gcm_test_case_192_5 = {
+static const struct aead_test_data gcm_test_case_192_5 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xFE, 0xFF, 0xE9, 0x92, 0x86, 0x65, 0x73, 0x1C,
@@ -1244,7 +1262,8 @@ static const struct gcm_test_data gcm_test_case_192_5 = {
        }
 };
 
-static const struct gcm_test_data gcm_test_case_192_6 = {
+static const struct aead_test_data gcm_test_case_192_6 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xFE, 0xFF, 0xE9, 0x92, 0x86, 0x65, 0x73, 0x1C,
@@ -1299,7 +1318,8 @@ static const struct gcm_test_data gcm_test_case_192_6 = {
        }
 };
 
-static const struct gcm_test_data gcm_test_case_192_7 = {
+static const struct aead_test_data gcm_test_case_192_7 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xFE, 0xFF, 0xE9, 0x92, 0x86, 0x65, 0x73, 0x1C,
@@ -1354,8 +1374,9 @@ static const struct gcm_test_data gcm_test_case_192_7 = {
        }
 };
 
-/** AES-256 Test Vectors */
-static const struct gcm_test_data gcm_test_case_256_1 = {
+/** AES-GCM-256 Test Vectors */
+static const struct aead_test_data gcm_test_case_256_1 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -1390,8 +1411,8 @@ static const struct gcm_test_data gcm_test_case_256_1 = {
        }
 };
 
-/** AES-256 Test Vectors */
-static const struct gcm_test_data gcm_test_case_256_2 = {
+static const struct aead_test_data gcm_test_case_256_2 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -1430,8 +1451,8 @@ static const struct gcm_test_data gcm_test_case_256_2 = {
        }
 };
 
-/** AES-256 Test Vectors */
-static const struct gcm_test_data gcm_test_case_256_3 = {
+static const struct aead_test_data gcm_test_case_256_3 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -1482,8 +1503,8 @@ static const struct gcm_test_data gcm_test_case_256_3 = {
        }
 };
 
-/** AES-256 Test Vectors */
-static const struct gcm_test_data gcm_test_case_256_4 = {
+static const struct aead_test_data gcm_test_case_256_4 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -1535,8 +1556,8 @@ static const struct gcm_test_data gcm_test_case_256_4 = {
 
 };
 
-/** AES-256 Test Vectors */
-static const struct gcm_test_data gcm_test_case_256_5 = {
+static const struct aead_test_data gcm_test_case_256_5 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -1588,8 +1609,8 @@ static const struct gcm_test_data gcm_test_case_256_5 = {
 
 };
 
-/** AES-256 Test Vectors */
-static const struct gcm_test_data gcm_test_case_256_6 = {
+static const struct aead_test_data gcm_test_case_256_6 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -1640,8 +1661,8 @@ static const struct gcm_test_data gcm_test_case_256_6 = {
        }
 };
 
-/** AES-256 Test Vectors */
-static const struct gcm_test_data gcm_test_case_256_7 = {
+static const struct aead_test_data gcm_test_case_256_7 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -1692,8 +1713,9 @@ static const struct gcm_test_data gcm_test_case_256_7 = {
        }
 };
 
-/** variable AAD AES-128 Test Vectors */
-static const struct gcm_test_data gcm_test_case_aad_1 = {
+/** variable AAD AES-GCM-128 Test Vectors */
+static const struct aead_test_data gcm_test_case_aad_1 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -1744,8 +1766,9 @@ static const struct gcm_test_data gcm_test_case_aad_1 = {
        }
 };
 
-/** variable AAD AES-256 Test Vectors */
-static const struct gcm_test_data gcm_test_case_aad_2 = {
+/** variable AAD AES-GCM-256 Test Vectors */
+static const struct aead_test_data gcm_test_case_aad_2 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -2567,7 +2590,8 @@ static const struct gmac_test_data gmac_test_case_4 = {
        }
 };
 
-static const struct gcm_test_data gcm_test_case_SGL_1 = {
+static const struct aead_test_data gcm_test_case_SGL_1 = {
+       .algo = RTE_CRYPTO_AEAD_AES_GCM,
        .key = {
                .data = {
                        0xfe, 0xff, 0xe9, 0x92, 0x86, 0x65, 0x73, 0x1c,
@@ -3384,4 +3408,396 @@ static const struct gcm_test_data gcm_test_case_SGL_1 = {
        }
 };
 
-#endif /* TEST_CRYPTODEV_GCM_TEST_VECTORS_H_ */
+/** AES-CCM-128 Test Vectors */
+static const struct aead_test_data ccm_test_case_128_1 = {
+       .algo = RTE_CRYPTO_AEAD_AES_CCM,
+       .key = {
+               .data = {
+                       0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
+                       0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F
+               },
+               .len = 16
+       },
+       .iv = {
+               .data = {
+                       0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16
+               },
+               .len = 7
+       },
+       .aad = {
+               .data = ccm_aad_test_1,
+               .len = 8
+       },
+       .plaintext = {
+               .data = {
+                       0x20, 0x21, 0x22, 0x23
+               },
+               .len = 4
+       },
+       .ciphertext = {
+               .data = {
+                       0x71, 0x62, 0x01, 0x5B
+               },
+               .len = 4
+       },
+       .auth_tag = {
+               .data = {
+                       0x4D, 0xAC, 0x25, 0x5D
+               },
+               .len = 4
+       }
+};
+
+static const struct aead_test_data ccm_test_case_128_2 = {
+       .algo = RTE_CRYPTO_AEAD_AES_CCM,
+       .key = {
+               .data = {
+                       0xC9, 0x7C, 0x1F, 0x67, 0xCE, 0x37, 0x11, 0x85,
+                       0x51, 0x4A, 0x8A, 0x19, 0xF2, 0xBD, 0xD5, 0x2F
+               },
+               .len = 16
+       },
+       .iv = {
+               .data = {
+                       0x00, 0x50, 0x30, 0xF1, 0x84, 0x44, 0x08, 0xB5,
+                       0x03, 0x97, 0x76, 0xE7, 0x0C
+               },
+               .len = 13
+       },
+       .aad = {
+               .data = ccm_aad_test_2,
+               .len = 22
+       },
+       .plaintext = {
+               .data = {
+                       0xF8, 0xBA, 0x1A, 0x55, 0xD0, 0x2F, 0x85, 0xAE,
+                       0x96, 0x7B, 0xB6, 0x2F, 0xB6, 0xCD, 0xA8, 0xEB,
+                       0x7E, 0x78, 0xA0, 0x50
+               },
+               .len = 20
+       },
+       .ciphertext = {
+               .data = {
+                       0xF3, 0xD0, 0xA2, 0xFE, 0x9A, 0x3D, 0xBF, 0x23,
+                       0x42, 0xA6, 0x43, 0xE4, 0x32, 0x46, 0xE8, 0x0C,
+                       0x3C, 0x04, 0xD0, 0x19
+               },
+               .len = 20
+       },
+       .auth_tag = {
+               .data = {
+                       0x78, 0x45, 0xCE, 0x0B, 0x16, 0xF9, 0x76, 0x23
+               },
+               .len = 8
+       }
+};
+
+static const struct aead_test_data ccm_test_case_128_3 = {
+       .algo = RTE_CRYPTO_AEAD_AES_CCM,
+       .key = {
+               .data = {
+                       0xC9, 0x7C, 0x1F, 0x67, 0xCE, 0x37, 0x11, 0x85,
+                       0x51, 0x4A, 0x8A, 0x19, 0xF2, 0xBD, 0xD5, 0x2F
+               },
+               .len = 16
+       },
+       .iv = {
+               .data = {
+                       0x00, 0x50, 0x30, 0xF1, 0x84, 0x44, 0x08, 0xB5,
+                       0x03, 0x97, 0x76, 0xE7, 0x0C
+               },
+               .len = 13
+       },
+       .aad = {
+               .data = gcm_aad_zero_text,
+               .len = 0
+       },
+       .plaintext = {
+               .data = {
+                       0xF8, 0xBA, 0x1A, 0x55, 0xD0, 0x2F, 0x85, 0xAE,
+                       0x96, 0x7B, 0xB6, 0x2F, 0xB6, 0xCD, 0xA8, 0xEB,
+                       0x7E, 0x78, 0xA0, 0x50
+               },
+               .len = 20
+       },
+       .ciphertext = {
+               .data = {
+                       0xF3, 0xD0, 0xA2, 0xFE, 0x9A, 0x3D, 0xBF, 0x23,
+                       0x42, 0xA6, 0x43, 0xE4, 0x32, 0x46, 0xE8, 0x0C,
+                       0x3C, 0x04, 0xD0, 0x19
+               },
+               .len = 20
+       },
+       .auth_tag = {
+               .data = {
+                       0x41, 0x83, 0x21, 0x89, 0xA3, 0xD3, 0x1B, 0x43
+               },
+               .len = 8
+       }
+};
+
+/** AES-CCM-192 Test Vectors */
+static const struct aead_test_data ccm_test_case_192_1 = {
+       .algo = RTE_CRYPTO_AEAD_AES_CCM,
+       .key = {
+               .data = {
+                       0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
+                       0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F,
+                       0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57
+               },
+               .len = 24
+       },
+       .iv = {
+               .data = {
+                       0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16
+               },
+               .len = 7
+       },
+       .aad = {
+               .data = ccm_aad_test_1,
+               .len = 8
+       },
+       .plaintext = {
+               .data = {
+                       0x20, 0x21, 0x22, 0x23
+               },
+               .len = 4
+       },
+       .ciphertext = {
+               .data = {
+                       0x18, 0xEE, 0x17, 0x30
+               },
+               .len = 4
+       },
+       .auth_tag = {
+               .data = {
+                       0xC8, 0xC3, 0x26, 0xD5
+               },
+               .len = 4
+       }
+};
+
+static const struct aead_test_data ccm_test_case_192_2 = {
+       .algo = RTE_CRYPTO_AEAD_AES_CCM,
+       .key = {
+               .data = {
+                       0xC9, 0x7C, 0x1F, 0x67, 0xCE, 0x37, 0x11, 0x85,
+                       0x51, 0x4A, 0x8A, 0x19, 0xF2, 0xBD, 0xD5, 0x2F,
+                       0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57
+               },
+               .len = 24
+       },
+       .iv = {
+               .data = {
+                       0x00, 0x50, 0x30, 0xF1, 0x84, 0x44, 0x08, 0xB5,
+                       0x03, 0x97, 0x76, 0xE7, 0x0C
+               },
+               .len = 13
+       },
+       .aad = {
+               .data = ccm_aad_test_2,
+               .len = 22
+       },
+       .plaintext = {
+               .data = {
+                       0xF8, 0xBA, 0x1A, 0x55, 0xD0, 0x2F, 0x85, 0xAE,
+                       0x96, 0x7B, 0xB6, 0x2F, 0xB6, 0xCD, 0xA8, 0xEB,
+                       0x7E, 0x78, 0xA0, 0x50
+               },
+               .len = 20
+       },
+       .ciphertext = {
+               .data = {
+                       0x41, 0xC6, 0x2D, 0xD5, 0x31, 0xF2, 0xD5, 0xC8,
+                       0xCC, 0x57, 0x01, 0x2E, 0x7E, 0x2B, 0xF1, 0x26,
+                       0x6A, 0xC7, 0xCB, 0xA5
+               },
+               .len = 20
+       },
+       .auth_tag = {
+               .data = {
+                       0x77, 0xA3, 0x41, 0xD5, 0x2A, 0xE3, 0x25, 0x37
+               },
+               .len = 8
+       }
+};
+
+static const struct aead_test_data ccm_test_case_192_3 = {
+       .algo = RTE_CRYPTO_AEAD_AES_CCM,
+       .key = {
+               .data = {
+                       0xC9, 0x7C, 0x1F, 0x67, 0xCE, 0x37, 0x11, 0x85,
+                       0x51, 0x4A, 0x8A, 0x19, 0xF2, 0xBD, 0xD5, 0x2F,
+                       0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57
+               },
+               .len = 24
+       },
+       .iv = {
+               .data = {
+                       0x00, 0x50, 0x30, 0xF1, 0x84, 0x44, 0x08, 0xB5,
+                       0x03, 0x97, 0x76, 0xE7, 0x0C
+               },
+               .len = 13
+       },
+       .aad = {
+               .data = gcm_aad_zero_text,
+               .len = 0
+       },
+       .plaintext = {
+               .data = {
+                       0xF8, 0xBA, 0x1A, 0x55, 0xD0, 0x2F, 0x85, 0xAE,
+                       0x96, 0x7B, 0xB6, 0x2F, 0xB6, 0xCD, 0xA8, 0xEB,
+                       0x7E, 0x78, 0xA0, 0x50
+               },
+               .len = 20
+       },
+       .ciphertext = {
+               .data = {
+                       0x41, 0xC6, 0x2D, 0xD5, 0x31, 0xF2, 0xD5, 0xC8,
+                       0xCC, 0x57, 0x01, 0x2E, 0x7E, 0x2B, 0xF1, 0x26,
+                       0x6A, 0xC7, 0xCB, 0xA5
+               },
+               .len = 20
+       },
+       .auth_tag = {
+               .data = {
+                       0x84, 0x72, 0x6E, 0xE7, 0x8E, 0x8E, 0x3A, 0xC6
+               },
+               .len = 8
+       }
+};
+
+/** AES-CCM-256 Test Vectors */
+static const struct aead_test_data ccm_test_case_256_1 = {
+       .algo = RTE_CRYPTO_AEAD_AES_CCM,
+       .key = {
+               .data = {
+                       0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
+                       0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F,
+                       0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
+                       0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F
+               },
+               .len = 32
+       },
+       .iv = {
+               .data = {
+                       0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16
+               },
+               .len = 7
+       },
+       .aad = {
+               .data = ccm_aad_test_1,
+               .len = 8
+       },
+       .plaintext = {
+               .data = {
+                       0x20, 0x21, 0x22, 0x23
+               },
+               .len = 4
+       },
+       .ciphertext = {
+               .data = {
+                       0x8A, 0xB1, 0xA8, 0x74
+               },
+               .len = 4
+       },
+       .auth_tag = {
+               .data = {
+                       0x95, 0xFC, 0x08, 0x20
+               },
+               .len = 4
+       }
+};
+
+static const struct aead_test_data ccm_test_case_256_2 = {
+       .algo = RTE_CRYPTO_AEAD_AES_CCM,
+       .key = {
+               .data = {
+                       0xC9, 0x7C, 0x1F, 0x67, 0xCE, 0x37, 0x11, 0x85,
+                       0x51, 0x4A, 0x8A, 0x19, 0xF2, 0xBD, 0xD5, 0x2F,
+                       0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
+                       0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F
+               },
+               .len = 32
+       },
+       .iv = {
+               .data = {
+                       0x00, 0x50, 0x30, 0xF1, 0x84, 0x44, 0x08, 0xB5,
+                       0x03, 0x97, 0x76, 0xE7, 0x0C
+               },
+               .len = 13
+       },
+       .aad = {
+               .data = ccm_aad_test_2,
+               .len = 22
+       },
+       .plaintext = {
+               .data = {
+                       0xF8, 0xBA, 0x1A, 0x55, 0xD0, 0x2F, 0x85, 0xAE,
+                       0x96, 0x7B, 0xB6, 0x2F, 0xB6, 0xCD, 0xA8, 0xEB,
+                       0x7E, 0x78, 0xA0, 0x50
+               },
+               .len = 20
+       },
+       .ciphertext = {
+               .data = {
+                       0x25, 0x82, 0x89, 0x09, 0x3E, 0x39, 0x1F, 0x16,
+                       0xD2, 0x82, 0x3D, 0xF6, 0xCE, 0x97, 0x72, 0x07,
+                       0xEC, 0x23, 0x17, 0x98
+               },
+               .len = 20
+       },
+       .auth_tag = {
+               .data = {
+                       0xAB, 0x02, 0xE9, 0xD1, 0x16, 0x69, 0xED, 0x0A
+               },
+               .len = 8
+       }
+};
+
+static const struct aead_test_data ccm_test_case_256_3 = {
+       .algo = RTE_CRYPTO_AEAD_AES_CCM,
+       .key = {
+               .data = {
+                       0xC9, 0x7C, 0x1F, 0x67, 0xCE, 0x37, 0x11, 0x85,
+                       0x51, 0x4A, 0x8A, 0x19, 0xF2, 0xBD, 0xD5, 0x2F,
+                       0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
+                       0x58, 0x59, 0x5A, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F
+               },
+               .len = 32
+       },
+       .iv = {
+               .data = {
+                       0x00, 0x50, 0x30, 0xF1, 0x84, 0x44, 0x08, 0xB5,
+                       0x03, 0x97, 0x76, 0xE7, 0x0C
+               },
+               .len = 13
+       },
+       .aad = {
+               .data = gcm_aad_zero_text,
+               .len = 0
+       },
+       .plaintext = {
+               .data = {
+                       0xF8, 0xBA, 0x1A, 0x55, 0xD0, 0x2F, 0x85, 0xAE,
+                       0x96, 0x7B, 0xB6, 0x2F, 0xB6, 0xCD, 0xA8, 0xEB,
+                       0x7E, 0x78, 0xA0, 0x50
+               },
+               .len = 20
+       },
+       .ciphertext = {
+               .data = {
+                       0x25, 0x82, 0x89, 0x09, 0x3E, 0x39, 0x1F, 0x16,
+                       0xD2, 0x82, 0x3D, 0xF6, 0xCE, 0x97, 0x72, 0x07,
+                       0xEC, 0x23, 0x17, 0x98
+               },
+               .len = 20
+       },
+       .auth_tag = {
+               .data = {
+                       0x15, 0x80, 0xC4, 0xC9, 0x3F, 0xAB, 0x2A, 0xFD
+               },
+               .len = 8
+       }
+};
+#endif /* TEST_CRYPTODEV_AEAD_TEST_VECTORS_H_ */