linux/crypto/asymmetric_keys
David Howells cd0421dcd0 KEYS: Set the asymmetric-key type default search method
The keyring expansion patches introduces a new search method by which
key_search() attempts to walk directly to the key that has exactly the same
description as the requested one.

However, this causes inexact matching of asymmetric keys to fail.  The
solution to this is to select iterative rather than direct search as the
default search type for asymmetric keys.

As an example, the kernel might have a key like this:

	Magrathea: Glacier signing key: 6a2a0f82bad7e396665f465e4e3e1f9bd24b1226

and:

	keyctl search <keyring-ID> asymmetric id:d24b1226

should find the key, despite that not being its exact description.

Signed-off-by: David Howells <dhowells@redhat.com>
2013-09-25 17:17:01 +01:00
..
.gitignore X.509: Add a crypto key parser for binary (DER) X.509 certificates 2012-10-08 13:50:22 +10:30
asymmetric_keys.h KEYS: Implement asymmetric key type 2012-10-08 13:50:12 +10:30
asymmetric_type.c KEYS: Set the asymmetric-key type default search method 2013-09-25 17:17:01 +01:00
Kconfig KEYS: Move the algorithm pointer array from x509 to public_key.c 2013-09-25 15:51:07 +01:00
Makefile X.509: Add a crypto key parser for binary (DER) X.509 certificates 2012-10-08 13:50:22 +10:30
public_key.c KEYS: Split public_key_verify_signature() and make available 2013-09-25 17:17:00 +01:00
public_key.h KEYS: Split public_key_verify_signature() and make available 2013-09-25 17:17:00 +01:00
rsa.c RSA: Fix signature verification for shorter signatures 2012-10-08 13:50:17 +10:30
signature.c KEYS: Provide signature verification with an asymmetric key 2012-10-08 13:50:15 +10:30
x509_cert_parser.c X.509: Embed public_key_signature struct and create filler function 2013-09-25 17:17:00 +01:00
x509_parser.h X.509: Embed public_key_signature struct and create filler function 2013-09-25 17:17:00 +01:00
x509_public_key.c X.509: Remove certificate date checks 2013-09-25 17:17:01 +01:00
x509_rsakey.asn1 X.509: Add a crypto key parser for binary (DER) X.509 certificates 2012-10-08 13:50:22 +10:30
x509.asn1 X.509: Add a crypto key parser for binary (DER) X.509 certificates 2012-10-08 13:50:22 +10:30