Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1466910 > unrolled thread

[PATCH] lib/digsig: remove redundant clean out1 when verifying RSA

Started byShawn Lin <shawn.lin@rock-chips.com>
First post2016-08-21 05:20 +0200
Last post2016-08-21 05:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] lib/digsig: remove redundant clean out1 when verifying RSA Shawn Lin <shawn.lin@rock-chips.com> - 2016-08-21 05:20 +0200

#1466910 — [PATCH] lib/digsig: remove redundant clean out1 when verifying RSA

FromShawn Lin <shawn.lin@rock-chips.com>
Date2016-08-21 05:20 +0200
Subject[PATCH] lib/digsig: remove redundant clean out1 when verifying RSA
Message-ID<s8rsJ-3lL-5@gated-at.bofh.it>
out1 is already set to zero when allocating by kzalloc, so
we could avoid this clean operation again.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---

 lib/digsig.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/digsig.c b/lib/digsig.c
index 55b8b2f..d6a2aa4 100644
--- a/lib/digsig.c
+++ b/lib/digsig.c
@@ -156,7 +156,6 @@ static int digsig_verify_rsa(struct key *key,
 
 	len = mlen;
 	head = len - l;
-	memset(out1, 0, head);
 	memcpy(out1 + head, p, l);
 
 	kfree(p);
-- 
2.3.7

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web