]> git.baikalelectronics.ru Git - kernel.git/commit
X.509: Support parsing certificate using SM2 algorithm
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Mon, 27 Jun 2022 09:19:58 +0000 (17:19 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 3 Aug 2022 20:56:20 +0000 (23:56 +0300)
commita6dec3047661cd9e552d7512bc0b0e479b6f3ec7
tree32bb2548c0af069a6f498c247bba5efc0a2e7584
parent037a8e55324da0d4e18a5416d8eda67e2989e16e
X.509: Support parsing certificate using SM2 algorithm

The SM2-with-SM3 certificate generated by latest openssl no longer
reuses the OID_id_ecPublicKey, but directly uses OID_sm2. This patch
supports this type of x509 certificate parsing.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
crypto/asymmetric_keys/x509_cert_parser.c