numam-dpdk/app/test/test_cryptodev_dh_test_vectors.h
Bruce Richardson a9de470cc7 test: move to app directory
Since all other apps have been moved to the "app" folder, the autotest app
remains alone in the test folder. Rather than having an entire top-level
folder for this, we can move it back to where it all started in early
versions of DPDK - the "app/" folder.

This move has a couple of advantages:
* This reduces clutter at the top level of the project, due to one less
  folder.
* It eliminates the separate build task necessary for building the
  autotests using make "make test-build" which means that developers are
  less likely to miss something in their own compilation tests
* It re-aligns the final location of the test binary in the app folder when
  building with make with it's location in the source tree.

For meson builds, the autotest app is different from the other apps in that
it needs a series of different test cases defined for it for use by "meson
test". Therefore, it does not get built as part of the main loop in the
app folder, but gets built separately at the end.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2019-02-26 15:29:27 +01:00

81 lines
2.3 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 Cavium Networks
*/
#ifndef TEST_CRYPTODEV_DH_TEST_VECTORS_H_
#define TEST_CRYPTODEV_DH_TEST_VECTORS_H_
#include "rte_crypto_asym.h"
#define TEST_DATA_SIZE 4096
#define TEST_DH_MOD_LEN 1024
struct dh_test_param {
rte_crypto_param priv_key;
};
uint8_t dh_priv[] = {
0x46, 0x3c, 0x7b, 0x43, 0xd1, 0xb8, 0xd4, 0x7a,
0x56, 0x28, 0x85, 0x79, 0xcc, 0xd8, 0x90, 0x03,
0x0c, 0x4b, 0xc6, 0xd3, 0x7f, 0xb3, 0x19, 0x84,
0x8a, 0xc6, 0x0d, 0x24, 0x5e, 0xaa, 0x7e, 0x7a,
0x73, 0x88, 0xa6, 0x47, 0x7c, 0x42, 0x78, 0x63,
0x11, 0x12, 0xd3, 0xa0, 0xc5, 0xfe, 0xfd, 0xf2,
0x9e, 0x17, 0x90, 0xe5, 0x6d, 0xcc, 0x20, 0x6f,
0xe8, 0x82, 0x28, 0xbf, 0x5c, 0xe6, 0xd4, 0x86,
0x5c, 0x35, 0x32, 0x97, 0xc2, 0x86, 0x1b, 0xc5,
0x59, 0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};
uint8_t dh_g[] = {0x02};
struct dh_test_param dh_test_params = {
.priv_key = {
.data = dh_priv,
.length = sizeof(dh_priv)
}
};
struct rte_crypto_asym_xform dh_xform = {
.next = NULL,
.xform_type = RTE_CRYPTO_ASYM_XFORM_DH,
.dh = {
.p = {
.data = dh_p,
.length = sizeof(dh_p)
},
.g = {
.data = dh_g,
.length = sizeof(dh_g)
},
}
};
#endif /* TEST_CRYPTODEV_DH_TEST_VECTORS_H__ */