summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2013-08-30 16:15:37 +0100
committerDavid Howells <dhowells@redhat.com>2013-09-25 17:17:00 +0100
commit1573801fa89d022b9f5bd1b189d23221335f9f56 (patch)
tree00a36a50cf61257331186a7a663faa03fb861e7c /include/crypto
parent3d167d68e3805ee45ed2e8412fc03ed919c54c24 (diff)
downloadop-kernel-dev-1573801fa89d022b9f5bd1b189d23221335f9f56.zip
op-kernel-dev-1573801fa89d022b9f5bd1b189d23221335f9f56.tar.gz
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>
Diffstat (limited to 'include/crypto')
-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 05778df..b34fda4 100644
--- a/include/crypto/public_key.h
+++ b/include/crypto/public_key.h
@@ -90,6 +90,7 @@ struct public_key_signature {
u8 *digest;
u8 digest_size; /* Number of bytes in digest */
u8 nr_mpi; /* Occupancy of mpi[] */
+ enum pkey_algo pkey_algo : 8;
enum pkey_hash_algo pkey_hash_algo : 8;
union {
MPI mpi[2];
OpenPOWER on IntegriCloud