]> code.ossystems Code Review - meta-freescale.git/blob
e7a5aa32fe7e864521e5905b1eda8c1441d13601
[meta-freescale.git] /
1 From b27823ac9f460c96a72d9003e2e134c1288ac85f 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
5
6 Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
7 ---
8  crypto/engine/eng_cryptodev.c | 2 +-
9  1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/crypto/engine/eng_cryptodev.c b/crypto/engine/eng_cryptodev.c
12 index 3024a68..539be62 100644
13 --- a/crypto/engine/eng_cryptodev.c
14 +++ b/crypto/engine/eng_cryptodev.c
15 @@ -4014,7 +4014,7 @@ static int cryptodev_dh_keygen(DH *dh)
16      }
17  
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))
21          goto sw_try;
22  
23      dh->pub_key = BN_bin2bn(w, q_len, pub_key);
24 -- 
25 2.7.0
26