diff options
author | Eric Biggers <ebiggers@google.com> | 2022-01-18 16:54:33 -0800 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2022-03-08 10:33:18 +0200 |
commit | 3e23cc5e456ad14710eb30d7a165c3b243b46732 (patch) | |
tree | b354045dfbf324e6d172733c58a3f3b8f147a771 /crypto/asymmetric_keys/x509.asn1 | |
parent | 24eb1f589f4f6dcb1e6e676c4256cbc246b8ac39 (diff) | |
download | linux-crypto-3e23cc5e456ad14710eb30d7a165c3b243b46732.tar.gz linux-crypto-3e23cc5e456ad14710eb30d7a165c3b243b46732.zip |
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>
Diffstat (limited to 'crypto/asymmetric_keys/x509.asn1')
-rw-r--r-- | crypto/asymmetric_keys/x509.asn1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asymmetric_keys/x509.asn1 b/crypto/asymmetric_keys/x509.asn1 index 5c9f4e4a..92d59c32 100644 --- a/crypto/asymmetric_keys/x509.asn1 +++ b/crypto/asymmetric_keys/x509.asn1 @@ -7,7 +7,7 @@ Certificate ::= SEQUENCE { TBSCertificate ::= SEQUENCE { version [ 0 ] Version DEFAULT, serialNumber CertificateSerialNumber ({ x509_note_serial }), - signature AlgorithmIdentifier ({ x509_note_pkey_algo }), + signature AlgorithmIdentifier ({ x509_note_sig_algo }), issuer Name ({ x509_note_issuer }), validity Validity, subject Name ({ x509_note_subject }), |