]> Pileus Git - ~andy/linux/commitdiff
KEYS: Store public key algo ID in public_key_signature struct
authorDavid Howells <dhowells@redhat.com>
Fri, 30 Aug 2013 15:15:37 +0000 (16:15 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 25 Sep 2013 16:17:00 +0000 (17:17 +0100)
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>
include/crypto/public_key.h

index 05778df0e3b4718a814da356d633a32865d6d47c..b34fda4dcabf091cc0f3bdc833996b94ba8bd86f 100644 (file)
@@ -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];