DRBG: efficiency patches
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | DRBG: replace int2byte with cpu_to_becrypto/ | +18 | 0 replies | |
| 2/8 | DRBG: kzfree does not need a check for NULL pointercrypto/ | +6 | 0 replies | |
| 3/8 | DRBG: remove superflowous checkscrypto/ | +6 | 0 replies | |
| 4/8 | DRBG: remove superflowous memset(0)crypto/ | +2 | 0 replies | |
| 5/8 | DRBG: use kmalloc instead of kzalloc for V and Ccrypto/ | +8 | 0 replies | |
| 6/8 | DRBG: remove unnecessary sanity checkscrypto/ | +0 | 0 replies | |
| 7/8 | DRBG: remove configuration of fixed valuescrypto/ include/ | +6 | 0 replies | |
| 8/8 | DRBG: remove unnecessary sanity check for shadow statecrypto/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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