Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1573801f authored by David Howells's avatar David Howells
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarJosh Boyer <jwboyer@redhat.com>
parent 3d167d68
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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];