summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2016-02-02 10:09:03 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-02-06 15:33:27 +0800
commit1e0a6e1747b760b95b05ede659c8a6e5eb9b8acb (patch)
treee781bd77a3cc60ad85d521d5a439a2ad02b70661 /include/crypto
parent42bbaabb12e687e9dcfa6cbb92567094cfbde7c2 (diff)
downloadlinux-1e0a6e1747b760b95b05ede659c8a6e5eb9b8acb.tar.bz2
crypto: public_key - remove MPIs from public_key_signature struct
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> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/public_key.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h
index 50ac8759d7ee..a1693ed77be6 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;