Skip to content

DRBG: efficiency patches

Stephan Mueller linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8DRBG: replace int2byte with cpu_to_becrypto/drbg.c+18 -160 replies
2/8DRBG: kzfree does not need a check for NULL pointercrypto/drbg.c+6 -120 replies
3/8DRBG: remove superflowous checkscrypto/drbg.c+6 -100 replies
4/8DRBG: remove superflowous memset(0)crypto/drbg.c+2 -40 replies
5/8DRBG: use kmalloc instead of kzalloc for V and Ccrypto/drbg.c+8 -30 replies
6/8DRBG: remove unnecessary sanity checkscrypto/drbg.c+0 -90 replies
7/8DRBG: remove configuration of fixed valuescrypto/drbg.c include/crypto/drbg.h+6 -460 replies
8/8DRBG: remove unnecessary sanity check for shadow statecrypto/drbg.c+0 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] DRBG: efficiency patches

Hi,

The following patch set contains random fixes to increase the efficiency of the DRBG. Changes include the removal of unneeded memset(0) and sanity checks. All changes do not weaken the implementation as only code is removed that is clearly covered by other code paths.

In addition, the cpu_to_be kernel function together with a type cast is used to convert an integer into its string representation. This patch increases the speed of the DRBG by 10%.

Stephan Mueller (8):
DRBG: replace int2byte with cpu_to_be
DRBG: kzfree does not need a check for NULL pointer
DRBG: remove superflowous checks
DRBG: remove superflowous memset(0)
DRBG: use kmalloc instead of kzalloc for V and C
DRBG: remove unnecessary sanity checks
DRBG: remove configuration of fixed values
DRBG: remove unnecessary sanity check for shadow state

 crypto/drbg.c         | 130 ++++++++++++++++----------------------------------
 include/crypto/drbg.h |  19 +++-----
 2 files changed, 46 insertions(+), 103 deletions(-)
Signature · 1 line
1.9.3