Skip to content

Commit d846e78

Browse files
tstrukdhowells
authored andcommitted
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> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David Howells <dhowells@redhat.com>
1 parent eb5798f commit d846e78

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

‎include/crypto/public_key.h‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#ifndef _LINUX_PUBLIC_KEY_H
1515
#define _LINUX_PUBLIC_KEY_H
1616

17-
#include <linux/mpi.h>
1817
#include <crypto/hash_info.h>
1918

2019
enum pkey_algo {
@@ -73,20 +72,9 @@ struct public_key_signature {
7372
u8 *s; /* Signature */
7473
u32 s_size; /* Number of bytes in signature */
7574
u8 *digest;
76-
u8 digest_size; /* Number of bytes in digest */
77-
u8 nr_mpi; /* Occupancy of mpi[] */
75+
u8 digest_size; /* Number of bytes in digest */
7876
enum pkey_algo pkey_algo : 8;
7977
enum hash_algo pkey_hash_algo : 8;
80-
union {
81-
MPI mpi[2];
82-
struct {
83-
MPI s; /* m^d mod n */
84-
} rsa;
85-
struct {
86-
MPI r;
87-
MPI s;
88-
} dsa;
89-
};
9078
};
9179

9280
extern struct asymmetric_key_subtype public_key_subtype;

0 commit comments

Comments
 (0)