From: Tadeusz Struk <tadeusz.struk@intel.com>
To: herbert@gondor.apana.org.au
Cc: tadeusz.struk@intel.com, linux-kernel@vger.kernel.org,
dhowells@redhat.com, linux-security-module@vger.kernel.org,
linux-crypto@vger.kernel.org, zohar@linux.vnet.ibm.com
Subject: [PATCH v5 3/3] crypto: public_key: remove MPIs from public_key_signature struct
Date: Tue, 02 Feb 2016 10:09:03 -0800 [thread overview]
Message-ID: <20160202180903.2887.62996.stgit@tstruk-mobl1> (raw)
In-Reply-To: <20160202180848.2887.9937.stgit@tstruk-mobl1>
After digsig_asymmetric.c is converted the MPIs can be now
safely removed from the public_key_signature structure.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
---
include/crypto/public_key.h | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h
index 50ac875..a1693ed 100644
--- a/include/crypto/public_key.h
+++ b/include/crypto/public_key.h
@@ -14,7 +14,6 @@
#ifndef _LINUX_PUBLIC_KEY_H
#define _LINUX_PUBLIC_KEY_H
-#include <linux/mpi.h>
#include <crypto/hash_info.h>
enum pkey_algo {
@@ -73,20 +72,9 @@ struct public_key_signature {
u8 *s; /* Signature */
u32 s_size; /* Number of bytes in signature */
u8 *digest;
- u8 digest_size; /* Number of bytes in digest */
- u8 nr_mpi; /* Occupancy of mpi[] */
+ u8 digest_size; /* Number of bytes in digest */
enum pkey_algo pkey_algo : 8;
enum hash_algo pkey_hash_algo : 8;
- union {
- MPI mpi[2];
- struct {
- MPI s; /* m^d mod n */
- } rsa;
- struct {
- MPI r;
- MPI s;
- } dsa;
- };
};
extern struct asymmetric_key_subtype public_key_subtype;
next prev parent reply other threads:[~2016-02-02 18:09 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-02 18:08 [PATCH v5 0/3] crypto: KEYS: convert public key to akcipher api Tadeusz Struk
2016-02-02 18:08 ` [PATCH v5 1/3] crypto: KEYS: convert public key and digsig asym to the " Tadeusz Struk
2016-02-10 14:17 ` David Howells
2016-02-10 23:09 ` Tadeusz Struk
2016-02-11 9:51 ` David Howells
2016-02-11 10:08 ` David Howells
2016-02-16 20:37 ` Tadeusz Struk
2016-02-02 18:08 ` [PATCH v5 2/3] integrity: convert digsig to " Tadeusz Struk
2016-02-02 18:09 ` Tadeusz Struk [this message]
2016-02-06 7:47 ` [PATCH v5 0/3] crypto: KEYS: convert public key " Herbert Xu
2016-02-06 10:00 ` David Howells
2016-02-06 14:27 ` Herbert Xu
2016-02-07 0:43 ` David Howells
2016-02-07 1:22 ` Herbert Xu
2016-02-08 13:58 ` Transferring applied X.509 patches from crypto/next to security/next David Howells
2016-02-08 21:25 ` Mimi Zohar
2016-02-09 1:01 ` James Morris
2016-02-09 8:40 ` Herbert Xu
2016-02-09 15:43 ` David Howells
2016-02-09 17:46 ` Herbert Xu
2016-02-09 16:49 ` [PATCH v5 0/3] crypto: KEYS: convert public key to akcipher api David Howells
2016-02-09 17:10 ` Tadeusz Struk
-- strict thread matches above, loose matches on Subject: below --
2015-12-24 3:13 Tadeusz Struk
2015-12-24 3:13 ` [PATCH v5 3/3] crypto: public_key: remove MPIs from public_key_signature struct Tadeusz Struk
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=20160202180903.2887.62996.stgit@tstruk-mobl1 \
--to=tadeusz.struk@intel.com \
--cc=dhowells@redhat.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=zohar@linux.vnet.ibm.com \
/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