crypto/openssl: fix usage of non constant time memcmp
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Fri, 31 May 2019 06:59:28 +0000 (08:59 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 5 Jul 2019 12:52:25 +0000 (14:52 +0200)
commita3f9fededfca6758abb751d67b11cda660a3399a
treeec9d89e55f6e8ebb8920300dc485407981ecfe5d
parentc6fa0d2f6c9aaba4b970d345c84af22f593a0f89
crypto/openssl: fix usage of non constant time memcmp

ANSI C memcmp is not constant time function per spec so it should
be avoided in cryptography usage.

Fixes: d61f70b4c918 ("crypto/libcrypto: add driver for OpenSSL library")
Cc: stable@dpdk.org
Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/crypto/openssl/rte_openssl_pmd.c