Skip to content

crypto: constify test vectors

Eric Biggers linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: kpp - constify buffer passed to crypto_kpp_set_secret()crypto/dh.c crypto/ecdh.c drivers/crypto/qat/qat_common/qat_asym_algs.c +1 more+8 -60 replies
2/2crypto: testmgr - constify all test vectorscrypto/testmgr.c crypto/testmgr.h+297 -2860 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/2] crypto: constify test vectors

From: Eric Biggers <[email protected]>

These two patches mark all the cryptographic test vectors as 'const'. This has several potential advantages and moves a large amount of data from .data to .rodata when the tests are enabled. The second patch does the real work; the first just prepares for it by updating a function to take a const buffer argument.

Eric Biggers (2):
crypto: kpp - constify buffer passed to crypto_kpp_set_secret()
crypto: testmgr - constify all test vectors

 crypto/dh.c                                   |   3 +-
 crypto/ecdh.c                                 |   3 +-
 crypto/testmgr.c                              |  71 ++--
 crypto/testmgr.h                              | 512 +++++++++++++-------------
 drivers/crypto/qat/qat_common/qat_asym_algs.c |   2 +-
 include/crypto/kpp.h                          |   6 +-
 6 files changed, 305 insertions(+), 292 deletions(-)
Signature · 1 line
2.11.0.483.g087da7b7c-goog