aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-08-30 11:15:37 -0400
committerDavid Howells <dhowells@redhat.com>2013-09-25 12:17:00 -0400
commit1573801fa89d022b9f5bd1b189d23221335f9f56 (patch)
tree00a36a50cf61257331186a7a663faa03fb861e7c
parent3d167d68e3805ee45ed2e8412fc03ed919c54c24 (diff)
KEYS: Store public key algo ID in public_key_signature struct
Store public key algorithm ID in public_key_signature struct for reference purposes. This allows a public_key_signature struct to be embedded in struct x509_certificate and other places more easily. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Josh Boyer <jwboyer@redhat.com>
-rw-r--r--include/crypto/public_key.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h
index 05778df0e3b4..b34fda4dcabf 100644
--- a/include/crypto/public_key.h
+++ b/include/crypto/public_key.h
@@ -90,6 +90,7 @@ struct public_key_signature {
90 u8 *digest; 90 u8 *digest;
91 u8 digest_size; /* Number of bytes in digest */ 91 u8 digest_size; /* Number of bytes in digest */
92 u8 nr_mpi; /* Occupancy of mpi[] */ 92 u8 nr_mpi; /* Occupancy of mpi[] */
93 enum pkey_algo pkey_algo : 8;
93 enum pkey_hash_algo pkey_hash_algo : 8; 94 enum pkey_hash_algo pkey_hash_algo : 8;
94 union { 95 union {
95 MPI mpi[2]; 96 MPI mpi[2];