Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad202c8c authored by Stephan Mueller's avatar Stephan Mueller Committed by Herbert Xu
Browse files

crypto: af_alg - zeroize key data



alg_setkey should zeroize the sensitive data after use.

Signed-off-by: default avatarStephan Mueller <smueller@chronox.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 90ac41bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ static int alg_setkey(struct sock *sk, char __user *ukey,
	err = type->setkey(ask->private, key, keylen);

out:
	sock_kfree_s(sk, key, keylen);
	sock_kzfree_s(sk, key, keylen);

	return err;
}