KEYS: x509: clearly distinguish between key and signature algorithms
authorEric Biggers <ebiggers@google.com>
Wed, 19 Jan 2022 00:54:33 +0000 (16:54 -0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Tue, 8 Mar 2022 08:33:18 +0000 (10:33 +0200)
commit8f2a7b518bb878c9a8c4f86432908a53e060da1f
treeb6926c7d2c37632315e959168b1959ff94f69b1e
parentc51abd96837f600d8fd940b6ab8e2da578575504
KEYS: x509: clearly distinguish between key and signature algorithms

An X.509 certificate has two, potentially different public key
algorithms: the one used by the certificate's key, and the one that was
used to sign the certificate.  Some of the naming made it unclear which
algorithm was meant.  Rename things appropriately:

    - x509_note_pkey_algo() => x509_note_sig_algo()
    - algo_oid => sig_algo

Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
crypto/asymmetric_keys/x509.asn1
crypto/asymmetric_keys/x509_cert_parser.c