diff options
author | Eric Biggers <ebiggers@google.com> | 2022-01-19 01:54:33 +0100 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2022-03-08 09:33:18 +0100 |
commit | 8f2a7b518bb878c9a8c4f86432908a53e060da1f (patch) | |
tree | b6926c7d2c37632315e959168b1959ff94f69b1e /crypto/asymmetric_keys/x509.asn1 | |
parent | KEYS: fix length validation in keyctl_pkey_params_get_2() (diff) | |
download | linux-8f2a7b518bb878c9a8c4f86432908a53e060da1f.tar.xz linux-8f2a7b518bb878c9a8c4f86432908a53e060da1f.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 5c9f4e4a5231..92d59c32f96a 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 }), |