crypto: CTR DRBG - performance improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 1 replyIn review
- v14 patches 2 repliesSuperseded
Changes in v2 from the cover letter
* the alignment patch is updated to use the alignment of the underlying TFM
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | crypto: CTR DRBG - use CTR AES instead of ECB AEScrypto/ crypto/ include/ | +149 | 0 replies | |
| 2/4 | crypto: DRBG - use aligned bufferscrypto/ include/ | +27 | 0 replies | |
| 3/4 | crypto: CTR DRBG - use full CTR AES for updatecrypto/ | +13 | 0 replies | |
| 4/4 | crypto: CTR DRBG - avoid duplicate maintenance of keycrypto/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/4] crypto: CTR DRBG - performance improvements
Hi,
The following patch set is aimed to increase the performance of the CTR DRBG, especially when assembler implementations of the CTR AES mode are available.
The patch set increases the performance by 10% for random numbers of 16 bytes and reaches 450% for random numbers reaching 4096 bytes (larger random numbers will even have more performance gains). The performance gains were measured when using ctr-aes-aesni.
Note, when using the C implementation of the CTR mode (cipher/ctr.c), the performance of the CTR DRBG is slightly worse than it is now, but still it is much faster than the Hash or HMAC DRBGs.
The patch set is CAVS tested.
Changes v2:
* the alignment patch is updated to use the alignment of the underlying TFM
Stephan Mueller (4):
crypto: CTR DRBG - use CTR AES instead of ECB AES
crypto: DRBG - use aligned buffers
crypto: CTR DRBG - use full CTR AES for update
crypto: CTR DRBG - avoid duplicate maintenance of key
crypto/Kconfig | 1 + crypto/drbg.c | 252 +++++++++++++++++++++++++++++++++----------------- include/crypto/drbg.h | 12 +++ 3 files changed, 181 insertions(+), 84 deletions(-)
Signature · 1 line
2.5.5