X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=test%2Ftest%2Ftest_cryptodev.h;h=c1ddd17f9059fcc2b28693a27686e01929a6e73f;hb=fd01a9be38d5105ad74ff56e9789a7e624cb0d9f;hp=67354a955a458a7d3fa5be6fd935fbc87d1e074a;hpb=d5404055abb97cd4238d62d59a1b375945af8d5f;p=dpdk.git diff --git a/test/test/test_cryptodev.h b/test/test/test_cryptodev.h index 67354a955a..c1ddd17f90 100644 --- a/test/test/test_cryptodev.h +++ b/test/test/test_cryptodev.h @@ -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 @@ -71,6 +71,12 @@ #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)) + /** * Write (spread) data from buffer to mbuf data *