New upstream version 17.08
[deb_dpdk.git] / test / test / test_cryptodev.h
index 67354a9..4509a09 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  *
- *   Copyright(c) 2015-2016 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
 #define TRUNCATED_DIGEST_BYTE_LENGTH_SHA384            (24)
 #define TRUNCATED_DIGEST_BYTE_LENGTH_SHA512            (32)
 
+#define MAXIMUM_IV_LENGTH                              (16)
+
+#define IV_OFFSET                      (sizeof(struct rte_crypto_op) + \
+               sizeof(struct rte_crypto_sym_op) + DEFAULT_NUM_XFORMS * \
+               sizeof(struct rte_crypto_sym_xform))
+
+#define CRYPTODEV_NAME_NULL_PMD                crypto_null
+#define CRYPTODEV_NAME_AESNI_MB_PMD    crypto_aesni_mb
+#define CRYPTODEV_NAME_AESNI_GCM_PMD   crypto_aesni_gcm
+#define CRYPTODEV_NAME_OPENSSL_PMD     crypto_openssl
+#define CRYPTODEV_NAME_QAT_SYM_PMD     crypto_qat
+#define CRYPTODEV_NAME_SNOW3G_PMD      crypto_snow3g
+#define CRYPTODEV_NAME_KASUMI_PMD      crypto_kasumi
+#define CRYPTODEV_NAME_ZUC_PMD         crypto_zuc
+#define CRYPTODEV_NAME_ARMV8_PMD       crypto_armv8
+#define CRYPTODEV_NAME_DPAA2_SEC_PMD   crypto_dpaa2_sec
+#define CRYPTODEV_NAME_SCHEDULER_PMD   crypto_scheduler
+
 /**
  * Write (spread) data from buffer to mbuf data
  *