From: Pablo de Lara Date: Mon, 17 Jul 2017 08:29:53 +0000 (+0100) Subject: cryptodev: reorder auth transform X-Git-Tag: spdx-start~2394 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9a52f37bd2eadccc5d45e05762088c615fe0b9da;p=dpdk.git cryptodev: reorder auth transform IV was positioned differently in authentication transform structure, compared to the other two transforms (cipher and AEAD). To keep consistency, digest length is moved to the end of the transform. Signed-off-by: Pablo de Lara Acked-by: Fiona Trahe --- diff --git a/lib/librte_cryptodev/rte_crypto_sym.h b/lib/librte_cryptodev/rte_crypto_sym.h index ea58cef79e..58a33b8e60 100644 --- a/lib/librte_cryptodev/rte_crypto_sym.h +++ b/lib/librte_cryptodev/rte_crypto_sym.h @@ -315,17 +315,6 @@ struct rte_crypto_auth_xform { * (for example RFC 2104, FIPS 198a). */ - uint16_t digest_length; - /**< Length of the digest to be returned. If the verify option is set, - * this specifies the length of the digest to be compared for the - * session. - * - * It is the caller's responsibility to ensure that the - * digest length is compliant with the hash algorithm being used. - * If the value is less than the maximum length allowed by the hash, - * the result shall be truncated. - */ - struct { uint16_t offset; /**< Starting point for Initialisation Vector or Counter, @@ -353,6 +342,17 @@ struct rte_crypto_auth_xform { * */ } iv; /**< Initialisation vector parameters */ + + uint16_t digest_length; + /**< Length of the digest to be returned. If the verify option is set, + * this specifies the length of the digest to be compared for the + * session. + * + * It is the caller's responsibility to ensure that the + * digest length is compliant with the hash algorithm being used. + * If the value is less than the maximum length allowed by the hash, + * the result shall be truncated. + */ };