Skip to content

Commit

Permalink
KEYS: Store public key algo ID in public_key_signature struct
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Howells committed Sep 25, 2013
1 parent 3d167d6 commit 1573801
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/crypto/public_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1573801

Please sign in to comment.