From: Eric Biggers <ebiggers3@gmail.com>
To: linux-crypto@vger.kernel.org
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
"David S . Miller" <davem@davemloft.net>,
linux-kernel@vger.kernel.org, Eric Biggers <ebiggers@google.com>
Subject: [PATCH 0/2] crypto: constify test vectors
Date: Fri, 24 Feb 2017 15:46:57 -0800 [thread overview]
Message-ID: <20170224234659.89423-1-ebiggers3@gmail.com> (raw)
From: Eric Biggers <ebiggers@google.com>
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(-)
--
2.11.0.483.g087da7b7c-goog
next reply other threads:[~2017-02-24 23:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 23:46 Eric Biggers [this message]
2017-02-24 23:46 ` [PATCH 1/2] crypto: kpp - constify buffer passed to crypto_kpp_set_secret() Eric Biggers
2017-02-24 23:46 ` [PATCH 2/2] crypto: testmgr - constify all test vectors Eric Biggers
2017-03-09 10:47 ` [PATCH 0/2] crypto: constify " Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170224234659.89423-1-ebiggers3@gmail.com \
--to=ebiggers3@gmail.com \
--cc=davem@davemloft.net \
--cc=ebiggers@google.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).