1 From 8f6e948f5f6bb2b517a5436dd6294e7e5536cf8f Mon Sep 17 00:00:00 2001
2 From: Cristian Stoica <cristian.stoica@nxp.com>
3 Date: Tue, 9 Feb 2016 12:13:59 +0200
4 Subject: [PATCH 46/48] cryptodev: add explicit cast for known BIGNUM values
6 Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
8 crypto/engine/eng_cryptodev.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
12 index 58e539c..ddd3462 100644
13 --- a/crypto/engine/eng_cryptodev.c
14 +++ b/crypto/engine/eng_cryptodev.c
15 @@ -4027,7 +4027,7 @@ static int cryptodev_dh_keygen(DH *dh)
18 /* pub_key is or prime length while priv key is of length of order */
19 - if (cryptodev_asym(&kop, q_len, w, q_len, s))
20 + if (cryptodev_asym(&kop, q_len, (BIGNUM *)w, q_len, (BIGNUM *)s))
23 dh->pub_key = BN_bin2bn(w, q_len, pub_key);