diff options
author | Stefan Berger <stefanb@linux.ibm.com> | 2021-03-16 17:07:36 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-03-26 19:41:58 +1100 |
commit | 266ee0f9a7250be68d285f7e27dbb6a91dc2f89d (patch) | |
tree | de04346f4056cb5448106ae2e4ef79f7acf729f7 /crypto/asymmetric_keys/x509_public_key.c | |
parent | ba1c2bd22584e3cfcf288e717a7936c6614a75f6 (diff) | |
download | linux-crypto-266ee0f9a7250be68d285f7e27dbb6a91dc2f89d.tar.gz linux-crypto-266ee0f9a7250be68d285f7e27dbb6a91dc2f89d.zip |
x509: Detect sm2 keys by their parameters OID
Detect whether a key is an sm2 type of key by its OID in the parameters
array rather than assuming that everything under OID_id_ecPublicKey
is sm2, which is not the case.
Cc: David Howells <dhowells@redhat.com>
Cc: keyrings@vger.kernel.org
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Tested-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/asymmetric_keys/x509_public_key.c')
0 files changed, 0 insertions, 0 deletions