Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1252946
| From | David Howells <dhowells@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 05/10] KEYS: Add identifier pointers to public_key_signature struct |
| Date | 2015-10-21 17:20 +0200 |
| Message-ID | <qm3lh-6Rp-45@gated-at.bofh.it> (permalink) |
| References | <qm3lf-6Rp-1@gated-at.bofh.it> |
| Organization | Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 |
Add key identifier pointers to public_key_signature struct so that they can
be used to retain the identifier of the key to be used to verify the
signature in both PKCS#7 and X.509.
Signed-off-by: David Howells <dhowells@redhat.com>
---
crypto/asymmetric_keys/public_key.c | 2 ++
include/crypto/public_key.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/crypto/asymmetric_keys/public_key.c b/crypto/asymmetric_keys/public_key.c
index e537aaeafdbf..f5b4824b7c77 100644
--- a/crypto/asymmetric_keys/public_key.c
+++ b/crypto/asymmetric_keys/public_key.c
@@ -72,6 +72,8 @@ void public_key_free(struct public_key *key,
}
if (sig) {
+ for (i = 0; i < ARRAY_SIZE(sig->auth_ids); i++)
+ kfree(sig->auth_ids[i]);
for (i = 0; i < ARRAY_SIZE(sig->mpi); i++)
mpi_free(sig->mpi[i]);
kfree(sig->digest);
diff --git a/include/crypto/public_key.h b/include/crypto/public_key.h
index a3f8f8268e23..ed86bfb23e89 100644
--- a/include/crypto/public_key.h
+++ b/include/crypto/public_key.h
@@ -76,6 +76,7 @@ struct public_key {
* Public key cryptography signature data
*/
struct public_key_signature {
+ struct asymmetric_key_id *auth_ids[2];
u8 *digest;
u8 digest_size; /* Number of bytes in digest */
u8 nr_mpi; /* Occupancy of mpi[] */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/10] KEYS: Change how keys are determined to be trusted David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 04/10] KEYS: Allow authentication data to be stored in an asymmetric key David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 02/10] PKCS#7: Make trust determination dependent on contents of trust keyring David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 06/10] X.509: Retain the key verification data David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 03/10] KEYS: Add facility to check key trustworthiness upon link creation David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 08/10] PKCS#7: Make the signature a pointer rather than embedding it David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 09/10] X.509: Move the trust validation code out to its own file David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 07/10] X.509: Extract signature digest and make self-signed cert checks earlier David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 05/10] KEYS: Add identifier pointers to public_key_signature struct David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 01/10] KEYS: Generalise system_verify_data() to provide access to internal content David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
[PATCH 10/10] KEYS: Move the point of trust determination to __key_link() David Howells <dhowells@redhat.com> - 2015-10-21 17:20 +0200
Re: [PATCH 00/10] KEYS: Change how keys are determined to be trusted Mimi Zohar <zohar@linux.vnet.ibm.com> - 2015-10-21 19:10 +0200
Re: [PATCH 00/10] KEYS: Change how keys are determined to be trusted Josh Boyer <jwboyer@fedoraproject.org> - 2015-10-21 19:30 +0200
Re: [PATCH 00/10] KEYS: Change how keys are determined to be trusted Mimi Zohar <zohar@linux.vnet.ibm.com> - 2015-10-21 20:20 +0200
Re: [PATCH 00/10] KEYS: Change how keys are determined to be trusted Josh Boyer <jwboyer@fedoraproject.org> - 2015-10-21 20:30 +0200
Re: [PATCH 00/10] KEYS: Change how keys are determined to be trusted Mimi Zohar <zohar@linux.vnet.ibm.com> - 2015-10-21 20:40 +0200
Re: [PATCH 00/10] KEYS: Change how keys are determined to be trusted Petko Manolov <petkan@mip-labs.com> - 2015-10-21 21:20 +0200
csiph-web