diff options
author | David Howells <dhowells@redhat.com> | 2013-08-30 11:15:24 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2013-09-25 12:17:00 -0400 |
commit | 67f7d60b3a08a3e3ec51c29c25767a9d9d0bd2b1 (patch) | |
tree | fcd8b1dd651ed934878ef3cee7e9548bfba97540 /include/crypto/public_key.h | |
parent | 206ce59a109f3b4bb352845bcd04f3cf504ae592 (diff) |
KEYS: Store public key algo ID in public_key struct
Store public key algo ID in public_key struct for reference purposes. This
allows it to be removed from the x509_certificate struct and used to find a
default in public_key_verify_signature().
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/public_key.h')
-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 46bde250bfae..05778df0e3b4 100644 --- a/include/crypto/public_key.h +++ b/include/crypto/public_key.h | |||
@@ -60,6 +60,7 @@ struct public_key { | |||
60 | #define PKEY_CAN_DECRYPT 0x02 | 60 | #define PKEY_CAN_DECRYPT 0x02 |
61 | #define PKEY_CAN_SIGN 0x04 | 61 | #define PKEY_CAN_SIGN 0x04 |
62 | #define PKEY_CAN_VERIFY 0x08 | 62 | #define PKEY_CAN_VERIFY 0x08 |
63 | enum pkey_algo pkey_algo : 8; | ||
63 | enum pkey_id_type id_type : 8; | 64 | enum pkey_id_type id_type : 8; |
64 | union { | 65 | union { |
65 | MPI mpi[5]; | 66 | MPI mpi[5]; |