]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KEYS: Store public key algo ID in public_key_signature struct
authorDavid Howells <dhowells@redhat.com>
Tue, 15 Jan 2013 15:33:35 +0000 (15:33 +0000)
committerDavid Howells <dhowells@redhat.com>
Sat, 19 Jan 2013 01:05:18 +0000 (01:05 +0000)
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 struct pkcs7_message 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];