Signed-off-by: Taras Kondratiuk <[email protected]>
---
platform/linux-generic/odp_crypto.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/platform/linux-generic/odp_crypto.c
b/platform/linux-generic/odp_crypto.c
index 46766fa..fa7d51f 100644
--- a/platform/linux-generic/odp_crypto.c
+++ b/platform/linux-generic/odp_crypto.c
@@ -160,7 +160,7 @@ enum crypto_alg_err des_encrypt(odp_crypto_op_params_t
*params,
else if (session->cipher.iv.data)
iv_ptr = session->cipher.iv.data;
else
- return ODP_CRYPTO_SES_CREATE_ERR_INV_CIPHER;
+ return ODP_CRYPTO_ALG_ERR_KEY_SIZE;
/*
* Create a copy of the IV. The DES library modifies IV
@@ -198,7 +198,7 @@ enum crypto_alg_err des_decrypt(odp_crypto_op_params_t
*params,
else if (session->cipher.iv.data)
iv_ptr = session->cipher.iv.data;
else
- return ODP_CRYPTO_SES_CREATE_ERR_INV_CIPHER;
+ return ODP_CRYPTO_ALG_ERR_KEY_SIZE;
/*
* Create a copy of the IV. The DES library modifies IV
--
1.9.1
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp