Skip to content

Commit

Permalink
crypto: public_key: remove MPIs from public_key_signature struct
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tadeusz Struk authored and David Howells committed Feb 18, 2016
1 parent eb5798f commit d846e78
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions include/crypto/public_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d846e78

Please sign in to comment.