diff options
author | Taras Kondratiuk <taras.kondratiuk@linaro.org> | 2015-02-24 13:03:01 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-02-27 09:34:33 +0300 |
commit | 275825877c978e320f95b22dd95c31e2dc693c1f (patch) | |
tree | 803e7713ede00ec692b1773b0bae648f3aeca76f | |
parent | 560150f90f594bf22e33a0e846b554382029c346 (diff) |
api: crypto: add error code for invalid IV
Add an error code for a case when a session is created without
specifying an IV value, and then crypto operation is invoked without
a valid override_iv_ptr.
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Reviewed-by: Robbie King <robking@cisco.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r-- | include/odp/api/crypto.h | 3 | ||||
-rw-r--r-- | platform/linux-generic/include/odp/plat/crypto_types.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/odp/api/crypto.h b/include/odp/api/crypto.h index 2311a4e67..792549c74 100644 --- a/include/odp/api/crypto.h +++ b/include/odp/api/crypto.h @@ -221,6 +221,9 @@ typedef struct odp_crypto_op_params { * * @enum crypto_alg_err:ODP_CRYPTO_ALG_ERR_ICV_CHECK * Computed ICV value mismatch + * + * @enum crypto_alg_err:ODP_CRYPTO_ALG_ERR_IV_INVALID + * IV value not specified */ /** diff --git a/platform/linux-generic/include/odp/plat/crypto_types.h b/platform/linux-generic/include/odp/plat/crypto_types.h index 3c26aa1b8..1b10a5dde 100644 --- a/platform/linux-generic/include/odp/plat/crypto_types.h +++ b/platform/linux-generic/include/odp/plat/crypto_types.h @@ -60,6 +60,7 @@ enum crypto_alg_err { ODP_CRYPTO_ALG_ERR_DATA_SIZE, ODP_CRYPTO_ALG_ERR_KEY_SIZE, ODP_CRYPTO_ALG_ERR_ICV_CHECK, + ODP_CRYPTO_ALG_ERR_IV_INVALID, }; enum crypto_hw_err { |