diff options
author | David Howells <dhowells@redhat.com> | 2013-08-30 17:15:37 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2013-09-25 18:17:00 +0200 |
commit | 1573801fa89d022b9f5bd1b189d23221335f9f56 (patch) | |
tree | 00a36a50cf61257331186a7a663faa03fb861e7c /include/crypto | |
parent | KEYS: Split public_key_verify_signature() and make available (diff) | |
download | linux-1573801fa89d022b9f5bd1b189d23221335f9f56.tar.xz linux-1573801fa89d022b9f5bd1b189d23221335f9f56.zip |
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.h | 1 |
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 { 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]; |