aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>2018-01-04 01:05:53 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2018-02-26 12:11:26 +0300
commit1daae94dca6e72dff370df136550d40757d6c8e6 (patch)
treed32529c47f8eded5ca2c9347314be0527a51b113 /include
parente2f22d38ba7fb5d7a2c144f52c15ad0efa631e38 (diff)
api: crypto: use cipher_iv_ptr instead of override_iv_ptr
In preparation to add auth-specific IV, rename override_iv_ptr field to ciper_iv_ptr. Provide deprecated compatibility field override_iv_ptr. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/odp/api/spec/crypto.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h
index 102d1a2e5..6688879ab 100644
--- a/include/odp/api/spec/crypto.h
+++ b/include/odp/api/spec/crypto.h
@@ -400,8 +400,13 @@ typedef struct odp_crypto_op_param_t {
*/
odp_packet_t out_pkt;
- /** Override session IV pointer */
- uint8_t *override_iv_ptr;
+ /** Override session IV pointer for cipher */
+ union {
+ /** @deprecated use cipher_iv_ptr */
+ uint8_t *ODP_DEPRECATE(override_iv_ptr);
+ /** Override session IV pointer for cipher */
+ uint8_t *cipher_iv_ptr;
+ };
/** Offset from start of packet for hash result
*
@@ -436,8 +441,13 @@ typedef struct odp_crypto_packet_op_param_t {
/** Session handle from creation */
odp_crypto_session_t session;
- /** Override session IV pointer */
- uint8_t *override_iv_ptr;
+ /** Override session IV pointer for cipher */
+ union {
+ /** @deprecated use cipher_iv_ptr */
+ uint8_t *ODP_DEPRECATE(override_iv_ptr);
+ /** Override session IV pointer for cipher */
+ uint8_t *cipher_iv_ptr;
+ };
/** Offset from start of packet for hash result
*