lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Fri,  3 Mar 2017 15:53:39 +0530
From:   trajaraman@...sta.com
To:     steffen.klassert@...unet.com
Cc:     davem@...emloft.net, netdev@...r.kernel.org,
        linux-kernel@...r.kernel.org,
        Thiruvadi rajaraman <trajaraman@...sta.com>
Subject: [xfrm] xfrm: Added the auth and enc update support in "state update"

From: Thiruvadi rajaraman <trajaraman@...sta.com>

Updated the xfrm state update process to update the
Authendication and Encryption keys.

Signed-off-by: Thiruvadi rajaraman <trajaraman@...sta.com>
---
 net/xfrm/xfrm_state.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
index 419bf5d..6b15447 100644
--- a/net/xfrm/xfrm_state.c
+++ b/net/xfrm/xfrm_state.c
@@ -1388,6 +1388,12 @@ int xfrm_state_update(struct xfrm_state *x)
 		memcpy(&x1->lft, &x->lft, sizeof(x1->lft));
 		x1->km.dying = 0;
 
+		/* To update Authendication and Encryption keys */
+		x1->aalg = kmemdup(x->aalg, xfrm_alg_auth_len(x->aalg),
+								GFP_KERNEL);
+		x1->ealg = kmemdup(x->ealg, xfrm_alg_len(x->ealg),
+								GFP_KERNEL);
+
 		tasklet_hrtimer_start(&x1->mtimer, ktime_set(1, 0), HRTIMER_MODE_REL);
 		if (x1->curlft.use_time)
 			xfrm_state_check_expire(x1);
-- 
1.9.1

Powered by blists - more mailing lists