DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Chen, Zhaoyan" <zhaoyan.chen@intel.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Cc: "Azarewicz, PiotrX T" <piotrx.t.azarewicz@intel.com>,
	"De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>
Subject: Re: [dpdk-dev] [PATCH] crypto/openssl: fix that remove unneeded check
Date: Tue, 10 Jan 2017 08:38:52 +0000	[thread overview]
Message-ID: <9DEEADBC57E43F4DA73B571777FECECA3C809BD7@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <1483973136-154458-1-git-send-email-piotrx.t.azarewicz@intel.com>

Tested-by: Zhaoyan Chen <zhaoyan.chen@intel.com>

- Checked patch: success 
- Apply patch: success
- Compilation: success

Tested basic openssl_pmd tests and check the extra bytes. Passed.

Thanks

/Joey

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Piotr Azarewicz
> Sent: Monday, January 9, 2017 10:46 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>; dev@dpdk.org
> Cc: stable@dpdk.org
> Subject: [dpdk-dev] [PATCH] crypto/openssl: fix that remove unneeded
> check
> 
> EVP_CIPHER_CTX_set_padding() function always returns 1, so the check is
> unneeded.
> 
> Fixes: d61f70b4c918 ("crypto/libcrypto: add driver for OpenSSL library")
> 
> Signed-off-by: Piotr Azarewicz <piotrx.t.azarewicz@intel.com>
> ---
>  drivers/crypto/openssl/rte_openssl_pmd.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c
> b/drivers/crypto/openssl/rte_openssl_pmd.c
> index 832ea1d..312154a 100644
> --- a/drivers/crypto/openssl/rte_openssl_pmd.c
> +++ b/drivers/crypto/openssl/rte_openssl_pmd.c
> @@ -522,8 +522,7 @@
>  	if (EVP_DecryptInit_ex(ctx, algo, NULL, key, iv) <= 0)
>  		goto process_cipher_decrypt_err;
> 
> -	if (EVP_CIPHER_CTX_set_padding(ctx, 0) <= 0)
> -		goto process_cipher_decrypt_err;
> +	EVP_CIPHER_CTX_set_padding(ctx, 0);
> 
>  	if (EVP_DecryptUpdate(ctx, dst, &dstlen, src, srclen) <= 0)
>  		goto process_cipher_decrypt_err;
> --
> 1.7.9.5

  reply	other threads:[~2017-01-10  8:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-09 14:45 Piotr Azarewicz
2017-01-10  8:38 ` Chen, Zhaoyan [this message]
2017-01-10  9:28 ` Declan Doherty
2017-01-10 13:53   ` De Lara Guarch, Pablo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9DEEADBC57E43F4DA73B571777FECECA3C809BD7@shsmsx102.ccr.corp.intel.com \
    --to=zhaoyan.chen@intel.com \
    --cc=dev@dpdk.org \
    --cc=pablo.de.lara.guarch@intel.com \
    --cc=piotrx.t.azarewicz@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).