Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Tadeusz Struk and committed by
David Howells
d846e78e eb5798f2

+1 -13
+1 -13
include/crypto/public_key.h
··· 14 14 #ifndef _LINUX_PUBLIC_KEY_H 15 15 #define _LINUX_PUBLIC_KEY_H 16 16 17 - #include <linux/mpi.h> 18 17 #include <crypto/hash_info.h> 19 18 20 19 enum pkey_algo { ··· 72 73 u8 *s; /* Signature */ 73 74 u32 s_size; /* Number of bytes in signature */ 74 75 u8 *digest; 75 - u8 digest_size; /* Number of bytes in digest */ 76 - u8 nr_mpi; /* Occupancy of mpi[] */ 76 + u8 digest_size; /* Number of bytes in digest */ 77 77 enum pkey_algo pkey_algo : 8; 78 78 enum hash_algo pkey_hash_algo : 8; 79 - union { 80 - MPI mpi[2]; 81 - struct { 82 - MPI s; /* m^d mod n */ 83 - } rsa; 84 - struct { 85 - MPI r; 86 - MPI s; 87 - } dsa; 88 - }; 89 79 }; 90 80 91 81 extern struct asymmetric_key_subtype public_key_subtype;