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>
Sun, 20 Feb 2022 23:22:06 +0000 (00:22 +0100)
commit4daa9617ef7257e6d86cf899736ca99a8becc30e
treecb5bace3f9d8e92f26b362ef217df8483fd65b4e
parent7bf7254ca15b2cfecd8520489f14e25c71874d89
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